Skip to content

Commit

Permalink
Set errexit nounset before apt operations
Browse files Browse the repository at this point in the history
  • Loading branch information
keeganwitt committed Mar 4, 2024
1 parent 43a45fc commit 25f6bdc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion jdk11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ VOLUME /home/groovy/.groovy/grapes

WORKDIR /home/groovy

RUN apt-get update \
RUN set -o errexit -o nounset \
&& apt-get update \
&& echo "Installing build dependencies" \
&& apt-get install --yes --no-install-recommends \
dirmngr \
Expand Down
3 changes: 2 additions & 1 deletion jdk17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ VOLUME /home/groovy/.groovy/grapes

WORKDIR /home/groovy

RUN apt-get update \
RUN set -o errexit -o nounset \
&& apt-get update \
&& echo "Installing build dependencies" \
&& apt-get install --yes --no-install-recommends \
dirmngr \
Expand Down
3 changes: 2 additions & 1 deletion jdk21/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ VOLUME /home/groovy/.groovy/grapes

WORKDIR /home/groovy

RUN apt-get update \
RUN set -o errexit -o nounset \
&& apt-get update \
&& echo "Installing build dependencies" \
&& apt-get install --yes --no-install-recommends \
dirmngr \
Expand Down
3 changes: 2 additions & 1 deletion jdk8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ VOLUME /home/groovy/.groovy/grapes

WORKDIR /home/groovy

RUN apt-get update \
RUN set -o errexit -o nounset \
&& apt-get update \
&& echo "Installing build dependencies" \
&& apt-get install --yes --no-install-recommends \
dirmngr \
Expand Down

0 comments on commit 25f6bdc

Please sign in to comment.