Make RUN commands more strict

This commit is contained in:
cytopia
2019-11-03 18:20:23 +01:00
parent 31864f8335
commit 67017e494e
36 changed files with 173 additions and 173 deletions

View File

@@ -31,7 +31,7 @@ ENV BASH_PROFILE=".bashrc"
###
### Install Tools
###
RUN set -x \
RUN set -eux \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests apt-utils \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
@@ -124,7 +124,7 @@ RUN set -x \
###
### Install custom software
###
RUN set -x \
RUN set -eux \
# pip
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
@@ -268,7 +268,7 @@ RUN set -x \
###
### Install Composer (PHP)
###
RUN set -x \
RUN set -eux \
\
&& rm -rf /tmp/* \
&& (rm -rf /tmp/.* || true) \
@@ -281,7 +281,7 @@ RUN set -x \
###
### Install npm (Node)
###
RUN set -x \
RUN set -eux \
# angular_cli
&& su -c '. /opt/nvm/nvm.sh; npm install -g @angular/cli' devilbox \
# eslint
@@ -322,7 +322,7 @@ RUN set -x \
###
### Install gem (Ruby)
###
RUN set -x \
RUN set -eux \
# mixlib_config
&& gem install mixlib-config -v 2.2.4 \
# rb_inotify
@@ -346,7 +346,7 @@ RUN set -x \
###
### Install pip (Python) packages
###
RUN set -x \
RUN set -eux \
# ansible
&& pip install --no-cache-dir --force-reinstall ansible \
# yamllint
@@ -386,7 +386,7 @@ RUN \
###
### Verify
###
RUN set -x \
RUN set -eux \
&& echo "date.timezone=UTC" > /usr/local/etc/php/php.ini \
&& php -v | grep -oE 'PHP\s[.0-9]+' | grep -oE '[.0-9]+' | grep '^5.2' \
&& /usr/local/sbin/php-fpm --test \
@@ -402,7 +402,7 @@ RUN set -x \
&& if [ -n "${PHP_FPM_ERROR}" ]; then echo "${PHP_FPM_ERROR}"; false; fi \
&& rm -f /usr/local/etc/php/php.ini
RUN set -x \
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; nvm --version' devilbox | grep -E '^[.0-9]+' \
&& mdl --version | grep -E '[.0-9]+' \
&& scss-lint --version | grep -E '[.0-9]+' \