Skip to content

Commit

Permalink
Use newer pip version
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Nov 1, 2018
1 parent b257ffb commit 61224df
Show file tree
Hide file tree
Showing 31 changed files with 250 additions and 160 deletions.
8 changes: 4 additions & 4 deletions Dockerfiles/mods/Dockerfile-5.2
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,10 @@ ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype
\
&& update-ca-certificates \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
8 changes: 4 additions & 4 deletions Dockerfiles/mods/Dockerfile-5.3
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,10 @@ RUN set -x \
\
&& update-ca-certificates \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
8 changes: 4 additions & 4 deletions Dockerfiles/mods/Dockerfile-5.4
Original file line number Diff line number Diff line change
Expand Up @@ -509,10 +509,10 @@ RUN set -x \
\
&& update-ca-certificates \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
8 changes: 4 additions & 4 deletions Dockerfiles/mods/Dockerfile-5.5
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,10 @@ RUN set -x \
\
&& update-ca-certificates \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
8 changes: 4 additions & 4 deletions Dockerfiles/mods/Dockerfile-5.6
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,10 @@ RUN set -x \
\
&& update-ca-certificates \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
8 changes: 4 additions & 4 deletions Dockerfiles/mods/Dockerfile-7.0
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,10 @@ RUN set -x \
\
&& update-ca-certificates \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
8 changes: 4 additions & 4 deletions Dockerfiles/mods/Dockerfile-7.1
Original file line number Diff line number Diff line change
Expand Up @@ -509,10 +509,10 @@ RUN set -x \
\
&& update-ca-certificates \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
8 changes: 4 additions & 4 deletions Dockerfiles/mods/Dockerfile-7.2
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,10 @@ RUN set -x \
\
&& update-ca-certificates \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
8 changes: 4 additions & 4 deletions Dockerfiles/mods/Dockerfile-7.3
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,10 @@ RUN set -x \
\
&& update-ca-certificates \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find "$(php -r 'echo ini_get("extension_dir");')" -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/prod/Dockerfile-5.2
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RUN set -x \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true



Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/prod/Dockerfile-5.3
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RUN set -x \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true



Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/prod/Dockerfile-5.4
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RUN set -x \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true



Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/prod/Dockerfile-5.5
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RUN set -x \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true



Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/prod/Dockerfile-5.6
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RUN set -x \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true



Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/prod/Dockerfile-7.0
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RUN set -x \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true



Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/prod/Dockerfile-7.1
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RUN set -x \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true



Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/prod/Dockerfile-7.2
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RUN set -x \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true



Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/prod/Dockerfile-7.3
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RUN set -x \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true



Expand Down
27 changes: 18 additions & 9 deletions Dockerfiles/work/Dockerfile-5.2
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,21 @@ RUN set -x \
zsh \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
\
# Get newer pip version
&& pip install --upgrade pip \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false python-pip \
&& rm -rf /var/lib/apt/lists/* \
\
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


RUN set -x \
# ansible
&& pip install --no-cache-dir --upgrade setuptools \
&& pip install --no-cache-dir ansible \
&& /usr/local/bin/pip install --no-cache-dir --upgrade setuptools \
&& /usr/local/bin/pip install --no-cache-dir ansible \
\
# awesomeci
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
Expand Down Expand Up @@ -199,7 +205,7 @@ RUN set -x \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests libpython-dev python-setuptools libyaml-dev \
\
&& pip install --no-cache-dir yamllint \
&& /usr/local/bin/pip install --no-cache-dir yamllint \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libpython-dev python-setuptools libyaml-dev \
&& rm -rf /var/lib/apt/lists/* \
\
Expand All @@ -224,9 +230,12 @@ RUN set -x \
\
&& rm -rf /tmp/* \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
\
&& rm -rf /usr/local/src/composer/cache/* || true \
\
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
27 changes: 18 additions & 9 deletions Dockerfiles/work/Dockerfile-5.3
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,23 @@ RUN set -x \
zsh \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
\
# Get newer pip version
&& pip install --upgrade pip \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false python-pip \
&& rm -rf /var/lib/apt/lists/* \
\
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


RUN set -x \
# composer
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
# ansible
&& pip install --no-cache-dir --upgrade setuptools \
&& pip install --no-cache-dir ansible \
&& /usr/local/bin/pip install --no-cache-dir --upgrade setuptools \
&& /usr/local/bin/pip install --no-cache-dir ansible \
\
# awesomeci
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
Expand Down Expand Up @@ -236,7 +242,7 @@ RUN set -x \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests libpython-dev python-setuptools libyaml-dev \
\
&& pip install --no-cache-dir yamllint \
&& /usr/local/bin/pip install --no-cache-dir yamllint \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libpython-dev python-setuptools libyaml-dev \
&& rm -rf /var/lib/apt/lists/* \
\
Expand All @@ -261,9 +267,12 @@ RUN set -x \
\
&& rm -rf /tmp/* \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true
\
&& rm -rf /usr/local/src/composer/cache/* || true \
\
&& find /usr/local/bin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/lib -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true \
&& find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true


###
Expand Down
Loading

0 comments on commit 61224df

Please sign in to comment.