Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extracted php src #256

Merged
merged 4 commits into from
Jul 13, 2016
Merged

Remove extracted php src #256

merged 4 commits into from
Jul 13, 2016

Conversation

yosifkit
Copy link
Member

@yosifkit yosifkit commented Jul 8, 2016

Builds upon and closes #245. Thanks to @shouze for all his work on this. I was debugging his changes and decided that it would be clearer to add my improvements on top.

Fixes #234.

shouze and others added 3 commits July 8, 2016 15:25
 - swap spaces to tabs to match
 - use gnu tar for `--strip-components`
 - cache known extension list in `/usr/src/`
 - remove extra output
&& curl -fSL "http://php.net/get/$PHP_FILENAME.asc/from/this/mirror" -o "$PHP_FILENAME.asc" \
&& mkdir -p /usr/src \
&& cd /usr/src/ \
&& curl -fSL "http://php.net/get/$PHP_FILENAME/from/this/mirror" -o php.tar.xz \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@shouze
Copy link
Contributor

shouze commented Jul 9, 2016

LGTM

&& cd /usr/src/php \
&& gpg --batch --verify php.tar.xz.asc php.tar.xz \
&& rm -r "$GNUPGHOME" \
&& docker-php-source extract \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the tar file sticks around in the image after this point, couldn't we split this here and move the COPY down further? (ie, download PHP, then COPY, then RUN docker-php-source extract && ... etc)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly more explicitly stated:

ENV PHP_...
RUN curl ...
COPY docker-php-source ...
RUN docker-php-source ...

@tianon
Copy link
Member

tianon commented Jul 13, 2016

LGTM

@tianon tianon merged commit 1a47630 into docker-library:master Jul 13, 2016
@tianon tianon deleted the php-src branch July 13, 2016 00:12
yosifkit added a commit to infosiftr/stackbrew that referenced this pull request Jul 13, 2016
 - `drupal` bump `8.1.6` and docker-library/drupal#51
 - `haproxy` bump to `1.6.7`
 - `memcached` bump to `1.4.29`
 - `mongo` bump to `3.2.8`
 - `owncloud` docker-library/owncloud#74 and docker-library/owncloud#75
 - `php` docker-library/php#256
 - `tomcat` bump to `8.5.4` and `9.0.0.M9`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove php src the right way for lightweight containers
3 participants