Skip to content

Commit

Permalink
jbang v0.39.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maxandersen committed Aug 23, 2020
1 parent f8aa802 commit 24d3876
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 24d3876

Please sign in to comment.