-
Notifications
You must be signed in to change notification settings - Fork 204
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
Conversation
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 \ |
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, fixed! 👍
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:
|
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]:
|
@tianon, this needs a rebase 😉. |
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. |
LGTM |
Add FPM variants (styled after OwnCloud's script updates for this same thing)
- `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
- `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
Closes #17
Closes #31 (adapted from)
cc @iBobik @bluefoxicy