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

Add FPM variants (styled after OwnCloud's script updates for this same thing) #32

Merged
merged 1 commit into from
Feb 12, 2016

Conversation

tianon
Copy link
Member

@tianon tianon commented Jan 21, 2016

Closes #17
Closes #31 (adapted from)

cc @iBobik @bluefoxicy

@tianon
Copy link
Member Author

tianon commented Jan 21, 2016

diff --git a/7/apache/Dockerfile b/7/fpm/Dockerfile
index f61607e..b6675d8 100644
--- a/7/apache/Dockerfile
+++ b/7/fpm/Dockerfile
@@ -1,8 +1,6 @@
 # from https://www.drupal.org/requirements/php#drupalversions
 FROM php:5.6-apache

-RUN a2enmod rewrite
-
 # install the PHP extensions we need
 RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
    && rm -rf /var/lib/apt/lists/* \
diff --git a/8/apache/Dockerfile b/8/fpm/Dockerfile
index 212ec74..fe010d2 100644
--- a/8/apache/Dockerfile
+++ b/8/fpm/Dockerfile
@@ -1,7 +1,5 @@
 # from https://www.drupal.org/requirements/php#drupalversions
-FROM php:5.6-apache
-
-RUN a2enmod rewrite
+FROM php:5.6-fpm

 # install the PHP extensions we need
 RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \

@tianon
Copy link
Member Author

tianon commented Jan 21, 2016

diff --git a/owncloud/generate-stackbrew-library.sh b/drupal/generate-stackbrew-library.sh
index 27cc015..5c37295 100755
--- a/owncloud/generate-stackbrew-library.sh
+++ b/drupal/generate-stackbrew-library.sh
@@ -3,26 +3,21 @@ set -e

 declare -A aliases
 aliases=(
-   [8.2]='8 latest'
-   [7.0]='7'
-   [6.0]='6'
+   [8]='latest'
 )

 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

 versions=( */ )
 versions=( "${versions[@]%/}" )
-url='git://github.com/docker-library/owncloud'
+url='git://github.com/docker-library/drupal'

 echo '# maintainer: InfoSiftr <[email protected]> (@infosiftr)'

-echo
-echo '# https://github.com/owncloud/core/wiki/Maintenance-and-Release-Schedule'
-
 for version in "${versions[@]}"; do
    for variant in apache fpm; do
        commit="$(cd "$version/$variant" && git log -1 --format='format:%H' -- Dockerfile $(awk 'toupper($1) == "COPY" { for (i = 2; i < NF; i++) { print $i } }' Dockerfile))"
-       fullVersion="$(grep -m1 'ENV OWNCLOUD_VERSION ' "$version/$variant/Dockerfile" | cut -d' ' -f3)"
+       fullVersion="$(grep -m1 'ENV DRUPAL_VERSION ' "$version/$variant/Dockerfile" | cut -d' ' -f3)"

        versionAliases=()
        while [ "$fullVersion" != "$version" -a "${fullVersion%[.-]*}" != "$fullVersion" ]; do

@@ -0,0 +1,20 @@
# from https://www.drupal.org/requirements/php#drupalversions
FROM php:5.6-apache
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a typo? Should be FROM php:5.6-fpm

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice catch, fixed! 👍

@skyred
Copy link
Contributor

skyred commented Feb 4, 2016

Also, shall we take this chance to switch to PHP 7 for Drupal?

Here is why: http://fabianx.drupalgardens.com/blog/why-drupal-8-defaulting-its-testing-php7-and-why-you-should-too

And the current status of PHP 7 Support in D8:

Drupal 8 currently has 100% pass on PHP 7
https://www.drupal.org/node/2454439

@iBobik
Copy link
Contributor

iBobik commented Feb 4, 2016

About Drupal 8, PHP 7 is ok, but not for D7 yet.

Jan Pobořil

2016-02-04 4:41 GMT+01:00 Jingsheng Wang [email protected]:

Also, shall we take this chance to switch to PHP 7 for Drupal?

Here is why:
http://fabianx.drupalgardens.com/blog/why-drupal-8-defaulting-its-testing-php7-and-why-you-should-too

And the current status of PHP 7 Support in D8:

Drupal 8 currently has 100% pass on PHP 7
https://www.drupal.org/node/2454439


Reply to this email directly or view it on GitHub
#32 (comment).

@yosifkit
Copy link
Member

yosifkit commented Feb 8, 2016

@tianon, this needs a rebase 😉.

@tianon
Copy link
Member Author

tianon commented Feb 8, 2016

Rebased -- I think it is appropriate to have the PHP 7 discussion orthogonal to this since consistency is important so we're not going to switch PHP versions just for FPM.

@yosifkit
Copy link
Member

LGTM

yosifkit added a commit that referenced this pull request Feb 12, 2016
Add FPM variants (styled after OwnCloud's script updates for this same thing)
@yosifkit yosifkit merged commit 1d6be48 into docker-library:master Feb 12, 2016
@yosifkit yosifkit deleted the fpm branch February 12, 2016 19:52
yosifkit added a commit to infosiftr/stackbrew that referenced this pull request Feb 12, 2016
- `buildpack-deps` drop EOL vivid
- `drupal` add `fpm` variant docker-library/drupal#32
- `kibana` resync Dockerfile changes docker-library/kibana#33
- `mariadb` bump `5.5.48` MariaDB/mariadb-docker@1f29c30
- `mysql` version bumps docker-library/mysql#138
- `postgres` version bumps docker-library/postgres#123
- `tomcat` bump to 8 and 6 docker-library/tomcat@7d7d625...31289
tianon added a commit to tianon/jenkins-groovy that referenced this pull request Feb 19, 2016
RichardScothern pushed a commit to RichardScothern/official-images that referenced this pull request Jun 14, 2016
- `buildpack-deps` drop EOL vivid
- `drupal` add `fpm` variant docker-library/drupal#32
- `kibana` resync Dockerfile changes docker-library/kibana#33
- `mariadb` bump `5.5.48` MariaDB/mariadb-docker@1f29c30
- `mysql` version bumps docker-library/mysql#138
- `postgres` version bumps docker-library/postgres#123
- `tomcat` bump to 8 and 6 docker-library/tomcat@7d7d625...31289
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.

4 participants