Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Use community php docker images. Test against nts and zts#94

Merged
chingor13 merged 3 commits intomasterfrom
community-images
Dec 23, 2017
Merged

Use community php docker images. Test against nts and zts#94
chingor13 merged 3 commits intomasterfrom
community-images

Conversation

@chingor13
Copy link
Copy Markdown
Member

No description provided.

@chingor13 chingor13 requested a review from tmatsuo December 23, 2017 00:01
Comment thread Dockerfile Outdated

RUN composer install && \
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The hash value occasionally changes.

In php-docker, it fetchs the signature on demand:
https://github.com/GoogleCloudPlatform/php-docker/blob/master/php-base/build-scripts/install_composer.sh#L21

It has been working well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok will adapt something like this to install composer.

@chingor13 chingor13 merged commit b0717a0 into master Dec 23, 2017
@chingor13 chingor13 deleted the community-images branch December 23, 2017 00:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants