AdoptOpenJDK / openjdk-docker

Scripts for creating Docker images of OpenJDK binaries.

Home Page:https://hub.docker.com/_/adoptopenjdk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JDK15_openj9 Alpine image build failing due to lack of bash

ReillyTevera opened this issue · comments

I've been looking into why Alpine images are not present in the adoptopenjdk/openjdk15-openj9 Docker repo and I think I've narrowed it down to the openj9_generate_scc.sh script having Bash in the shebang and the Alpine images not having that:

Step 9/11 : RUN /scripts/generate_openj9_scc.sh
 ---> Running in 910e6eba80b0
/bin/sh: /scripts/generate_openj9_scc.sh: not found
The command '/bin/sh -c /scripts/generate_openj9_scc.sh' returned a non-zero code: 127

Adding bash at any point before this issue.

We encountered similar issue for our test scripts (related: adoptium/aqa-tests#1956)

@smlambert Ah, I figured this had to be reported somewhere.

Because of the newly added generate_openj9_scc.sh script in this repo, its good that you opened this issue, thanks @ReillyTevera ! A PR will have to be created to fix for this repo too.

@smlambert I'm currently converting the generate_openj9_scc.sh script to work with Dash instead.