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

JAVA8 Alpine JRE and JDK image tags are broken since last update #285

Closed
sachingharge opened this issue Mar 7, 2019 · 8 comments
Closed

Comments

@sachingharge
Copy link

Hi Team,

We are seeing below errors for JAVA8 Alpine JRE and JDK image tags.
/bin/sh: /app/start.sh: not found

Can you please look into this?
We have also noticed that jre-alpine tag is no more supported but still exist. Is there any plan to stop supporting this tag in future and should use version specific tags only like 8-jre-alpine

@sachingharge sachingharge changed the title Alpine JRE and JDK image tags are broken since last update JAVA8 Alpine JRE and JDK image tags are broken since last update Mar 7, 2019
@wglambert
Copy link

Are you referring to the java image tags, or the OpenJDK tags

@sachingharge
Copy link
Author

I am referring to OpenJDK tags.

@wglambert
Copy link

This might help with seeing the layout of OpenJDK and what is supported #272

OpenJDK 11 doesn't have Alpine support #212 (comment)
OpenJDK 12 dropped Alpine support #281
OpenJDK 13 does support Alpine http://jdk.java.net/13/

$ docker pull openjdk:13-alpine
13-alpine: Pulling from library/openjdk
Digest: sha256:3a99d04ea2b4114b57e710cab2560ed86d0629b241a77dea60f0df57704818d8
Status: Downloaded newer image for openjdk:13-alpine

Since OpenJDK 11+ is from Oracle; there aren't JRE versions, just JDK. But for 11 we still have the JRE variant which isn't from Oracle

As for your specific error /bin/sh: /app/start.sh: not found can you give all the commands you ran and any relevant contextual information or files for reproducing that

@sachingharge
Copy link
Author

sachingharge commented Mar 7, 2019

Here is the example Dockerfile for reference where we are getting error "/bin/sh: /app/start.sh: not found"
We are just copying jar file in /app and start.sh in /app.

FROM openjdk:8-jre-alpine

ADD build/libs /app
ADD docker-bin /app

RUN chown -R daemon:daemon /app && \
    chmod -R 0777 /app && \
    chmod 0500 /app/start.sh

EXPOSE 8080
WORKDIR /app
USER daemon

CMD /app/start.sh

@tianon
Copy link
Member

tianon commented Mar 7, 2019 via email

@wglambert
Copy link

Closing since this doesn't seem to be an issue with the image

If you have further questions you could try asking the Docker Community Forums, the Docker Community Slack, or Stack Overflow. Since these repositories are for issues with the image and not necessarily for questions of usability

@sachingharge
Copy link
Author

sachingharge commented Mar 19, 2019

If the shebang of your "start.sh" script is bash, that's a common cause of that error (the Alpine images don't include Bash).

Thanks for your reply and indeed start.sh script was having bash.

@sachingharge
Copy link
Author

Another question, does 8-jre-alpine docker tag is deprecated for openjdk:jre-alpine?

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

3 participants