Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install fastlane #13

Open
Horkyze opened this issue Aug 10, 2021 · 5 comments
Open

Unable to install fastlane #13

Horkyze opened this issue Aug 10, 2021 · 5 comments
Assignees
Labels

Comments

@Horkyze
Copy link

Horkyze commented Aug 10, 2021

Adding fastlane to android-30-jdk11 seems to fail.

Dockerfile

FROM alvrme/alpine-android:android-30-jdk11
RUN extras fastlane

docker build -t builder .

Sending build context to Docker daemon  3.072kB
Step 1/2 : FROM alvrme/alpine-android:android-30-jdk11
 ---> 6633c34baa73
Step 2/2 : RUN extras fastlane
 ---> Running in d0448a74ac71
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/24) Installing libstdc++ (10.3.1_git20210424-r2)
(2/24) Installing binutils (2.35.2-r2)
(3/24) Installing libgomp (10.3.1_git20210424-r2)
(4/24) Installing libatomic (10.3.1_git20210424-r2)
(5/24) Installing libgphobos (10.3.1_git20210424-r2)
(6/24) Installing gmp (6.2.1-r0)
(7/24) Installing isl22 (0.22-r0)
(8/24) Installing mpfr4 (4.1.0-r0)
(9/24) Installing mpc1 (1.2.1-r0)
(10/24) Installing gcc (10.3.1_git20210424-r2)
(11/24) Installing musl-dev (1.2.2-r3)
(12/24) Installing libc-dev (0.7.2-r3)
(13/24) Installing g++ (10.3.1_git20210424-r2)
(14/24) Installing make (4.3-r0)
(15/24) Installing gdbm (1.19-r0)
(16/24) Installing yaml (0.2.5-r0)
(17/24) Installing ruby-libs (2.7.4-r0)
(18/24) Installing ruby (2.7.4-r0)
(19/24) Installing libgmpxx (6.2.1-r0)
(20/24) Installing pkgconf (1.7.4-r0)
(21/24) Installing gmp-dev (6.2.1-r0)
(22/24) Installing libucontext (1.1-r0)
(23/24) Installing libucontext-dev (1.1-r0)
(24/24) Installing ruby-dev (2.7.4-r0)
Executing busybox-1.33.1-r2.trigger
Executing glibc-bin-2.33-r0.trigger
/usr/glibc-compat/sbin/ldconfig: /usr/glibc-compat/lib/ld-linux-x86-64.so.2 is not a symbolic link

OK: 236 MiB in 57 packages
No version specified, using latest
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/lib/ruby/gems/2.7.0 directory.
The command '/bin/sh -c extras fastlane' returned a non-zero code: 1
@Horkyze
Copy link
Author

Horkyze commented Aug 13, 2021

When i explicitly set the fastlane version like this

RUN extras fastlane 2.191.0

The build succeeds.

@alvr
Copy link
Owner

alvr commented Aug 14, 2021

Hi @Horkyze,

can you try with:

FROM alvrme/alpine-android:android-30-jdk11
USER root
RUN extras fastlane

If not I will specify a default version for fastlane.

@alvr alvr added the bug label Aug 14, 2021
@alvr alvr self-assigned this Aug 14, 2021
@Horkyze
Copy link
Author

Horkyze commented Aug 18, 2021

USER root works only with combination with jdk8.

jdk11 seems to have a problem with even if USER root is specified, see:

FROM alvrme/alpine-android:android-30-jdk11

USER root
RUN id
RUN extras fastlane

produces:

Sending build context to Docker daemon  3.072kB
Step 1/4 : FROM alvrme/alpine-android:android-30-jdk11
 ---> 6633c34baa73
Step 2/4 : USER root
 ---> Running in 9ba05d76cbc7
Removing intermediate container 9ba05d76cbc7
 ---> f2a3bb5b55da
Step 3/4 : RUN id
 ---> Running in 03352e9d901f
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
Removing intermediate container 03352e9d901f
 ---> 6f40eac46020
Step 4/4 : RUN extras fastlane
 ---> Running in c15b31984db3
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/24) Installing libstdc++ (10.3.1_git20210424-r2)
(2/24) Installing binutils (2.35.2-r2)
(3/24) Installing libgomp (10.3.1_git20210424-r2)
(4/24) Installing libatomic (10.3.1_git20210424-r2)
(5/24) Installing libgphobos (10.3.1_git20210424-r2)
(6/24) Installing gmp (6.2.1-r0)
(7/24) Installing isl22 (0.22-r0)
(8/24) Installing mpfr4 (4.1.0-r0)
(9/24) Installing mpc1 (1.2.1-r0)
(10/24) Installing gcc (10.3.1_git20210424-r2)
(11/24) Installing musl-dev (1.2.2-r3)
(12/24) Installing libc-dev (0.7.2-r3)
(13/24) Installing g++ (10.3.1_git20210424-r2)
(14/24) Installing make (4.3-r0)
(15/24) Installing gdbm (1.19-r0)
(16/24) Installing yaml (0.2.5-r0)
(17/24) Installing ruby-libs (2.7.4-r0)
(18/24) Installing ruby (2.7.4-r0)
(19/24) Installing libgmpxx (6.2.1-r0)
(20/24) Installing pkgconf (1.7.4-r0)
(21/24) Installing gmp-dev (6.2.1-r0)
(22/24) Installing libucontext (1.1-r0)
(23/24) Installing libucontext-dev (1.1-r0)
(24/24) Installing ruby-dev (2.7.4-r0)
Executing busybox-1.33.1-r2.trigger
Executing glibc-bin-2.33-r0.trigger
/usr/glibc-compat/sbin/ldconfig: /usr/glibc-compat/lib/ld-linux-x86-64.so.2 is not a symbolic link

OK: 236 MiB in 57 packages
No version specified, using latest
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/lib/ruby/gems/2.7.0 directory.
The command '/bin/sh -c extras fastlane' returned a non-zero code: 1

@dmarin
Copy link

dmarin commented May 12, 2022

In alvrme/alpine-android:android-31-jdk11 I am facing a similar problem, but none of the workarounds seem to be working

@FilipObornik
Copy link

Are there any plans to fix this issue in the near future? I use your docker images for quite a some time but now when I need to use fastlane and it is not working correctly, i will be forced to switch 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants