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 run OpenJDK #19

Open
alexks02 opened this issue Jul 17, 2019 · 0 comments
Open

Unable to run OpenJDK #19

alexks02 opened this issue Jul 17, 2019 · 0 comments

Comments

@alexks02
Copy link

Hi there!

Let me attach contents of my Dockerfile sample

FROM arm32v7/openjdk:8-jdk-alpine
COPY bin/ /usr/bin/
RUN [ "cross-build-start" ]
ARG JAVA=/usr/lib/jvm/java-1.8-openjdk/bin/java
RUN ls -la $JAVA
RUN ldd $JAVA
RUN $JAVA -version

Output

xander@debian:~/jenkins$ docker build -f Dockerfile.test .
Sending build context to Docker daemon   9.67MB
Step 1/7 : FROM arm32v7/openjdk:8-jdk-alpine
 ---> d8c7d7d53e33
Step 2/7 : COPY bin/ /usr/bin/
 ---> 39a68ff390fa
Step 3/7 : RUN [ "cross-build-start" ]
 ---> Running in 628d7d0cf015
Removing intermediate container 628d7d0cf015
 ---> 3aa4eb70d081
Step 4/7 : ARG JAVA=/usr/lib/jvm/java-1.8-openjdk/bin/java
 ---> Running in 84c51d739806
Removing intermediate container 84c51d739806
 ---> 5dc5e28291f9
Step 5/7 : RUN ls -la $JAVA
 ---> Running in 7c82e93a8bab
-rwxr-xr-x    1 root     root          5476 May  4 23:12 /usr/lib/jvm/java-1.8-openjdk/bin/java
Removing intermediate container 7c82e93a8bab
 ---> 39660b85b8a7
Step 6/7 : RUN ldd $JAVA
 ---> Running in de599b6ea630
        /lib/ld-musl-armhf.so.1 (0x40000000)
        libjli.so => /usr/lib/jvm/java-1.8-openjdk/bin/../lib/aarch32/jli/libjli.so (0x40899000)
        libc.musl-armv7.so.1 => /lib/ld-musl-armhf.so.1 (0x40000000)
        libz.so.1 => /lib/libz.so.1 (0x408b4000)
Removing intermediate container de599b6ea630
 ---> 4a89765f7c82
Step 7/7 : RUN $JAVA -version
 **---> Running in bc77e7e5e4c3
^C**

It hangs on the last step. If I comment cross-build-start line and run it on armhf device, so it works fine. Do anyone have some ideas?

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

No branches or pull requests

1 participant