Skip to content
Snippets Groups Projects

fix: run heredoc with `set -ex` for fast fail

Merged Wouter Deconinck requested to merge heredoc-set-ex into master
Files
3
@@ -10,6 +10,10 @@ LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
@@ -10,6 +10,10 @@ LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
COPY bashrc /root/.bashrc
COPY bashrc /root/.bashrc
 
## With heredocs for multi-line scripts, we want to fail on error and the print failing line.
 
## Ref: https://docs.docker.com/engine/reference/builder/#example-running-a-multi-line-script
 
SHELL ["bash", "-ex", "-c"]
 
ENV CLICOLOR_FORCE=1 \
ENV CLICOLOR_FORCE=1 \
LANGUAGE=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LANG=en_US.UTF-8 \
LANG=en_US.UTF-8 \
Loading