diff --git a/Dockerfile b/Dockerfile index a0277b1..a0eb0a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,25 +1,27 @@ FROM adoptopenjdk:11-jdk-hotspot -RUN curl -Ls "https://github.com/jbangdev/jbang/releases/download/v0.38.0/jbang-0.38.0.zip" --output jbang.zip \ +RUN curl -Ls "https://github.com/jbangdev/jbang/releases/download/v0.39.0/jbang-0.39.0.zip" --output jbang.zip \ && jar xf jbang.zip && rm jbang.zip && mv jbang-* jbang && chmod +x jbang/bin/jbang ADD ./entrypoint /bin/entrypoint ENV SCRIPTS_HOME /scripts -ENV JBANG_VERSION 0.38.0 - -RUN useradd -u 10001 -r -g 0 -m \ - -d ${SCRIPTS_HOME} -s /sbin/nologin -c "jbang user" jo \ - && chmod -R g+w /scripts \ - && chmod -R g+w /jbang \ - && chgrp -R root /scripts \ - && chgrp -R root /jbang \ - && chmod g+w /etc/passwd \ - && chmod +x /bin/entrypoint +ENV JBANG_VERSION 0.39.0 + +# Needed for secure run on openshift but breaks github actions +# removed until can find better alternative +# RUN useradd -u 10001 -r -g 0 -m \ +# -d ${SCRIPTS_HOME} -s /sbin/nologin -c "jbang user" jo \ +# && chmod -R g+w /scripts \ +# && chmod -R g+w /jbang \ +# && chgrp -R root /scripts \ +# && chgrp -R root /jbang \ +# && chmod g+w /etc/passwd \ +# && chmod +x /bin/entrypoint VOLUME /scripts -USER 10001 +# USER 10001 ENV PATH="${PATH}:/jbang/bin" diff --git a/README.md b/README.md index 9c5cc3c..b618526 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ jobs: restore-keys: | ${{ runner.os }}-jbang- - name: jbang - uses: jbangdev/jbang-action@v0.38.0 + uses: jbangdev/jbang-action@v0.39.0 with: script: createissue.java scriptargs: "my world"