Skip to content

Commit 9d48139

Browse files
committed
Add cleanup for centos
1 parent 308bd80 commit 9d48139

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

docker/php/centos-7-php56/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ RUN rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm \
5151
&& pecl install imagick \
5252
# && pecl install redis \
5353
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
54+
# Cleanup
55+
&& yum erase -y php-devel gcc \
56+
&& yum clean all \
5457
&& /opt/docker/bin/provision run --tag bootstrap --role webdevops-php \
5558
&& /opt/docker/bin/bootstrap.sh
5659

docker/php/centos-7/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ RUN /usr/local/bin/yum-install \
5555
&& pear config-set auto_discover 1 \
5656
&& pecl install imagick \
5757
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
58+
# Cleanup
59+
&& yum erase -y php-devel gcc \
60+
&& yum clean all \
5861
&& /opt/docker/bin/provision run --tag bootstrap --role webdevops-php \
5962
&& /opt/docker/bin/bootstrap.sh
6063

template/Dockerfile/images/php5.jinja2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ RUN /usr/local/bin/yum-install \
101101
&& pear config-set auto_discover 1 \
102102
&& pecl install imagick \
103103
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
104+
# Cleanup
105+
&& yum erase -y php-devel gcc \
106+
&& yum clean all \
104107
{{ provision.runRoleInline('php', role) }}
105108
{%- endmacro %}
106109

@@ -140,6 +143,9 @@ RUN rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm \
140143
&& pecl install imagick \
141144
# && pecl install redis \
142145
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
146+
# Cleanup
147+
&& yum erase -y php-devel gcc \
148+
&& yum clean all \
143149
{{ provision.runRoleInline('php', role) }}
144150
{%- endmacro %}
145151

0 commit comments

Comments
 (0)