Skip to content

Commit

Permalink
Merge pull request #77 from docksal/develop
Browse files Browse the repository at this point in the history
Release 2.4.0
  • Loading branch information
lmakarov authored Jul 31, 2018
2 parents f694b44 + 04170af commit 3e9dffd
Show file tree
Hide file tree
Showing 12 changed files with 202 additions and 95 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ env:
- VERSION=7.1
- VERSION=7.2

# Skip building master.
# Stable image tags are pushed during release tag builds so that stable and release tags match on Docker Hub.
branches:
except:
- master

before_install:
- sudo apt-get -qq update
- sudo apt-get install libfcgi0ldbl # cgi-fcgi binary used in tests
Expand Down
19 changes: 9 additions & 10 deletions 5.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ RUN set -xe; \
apt-get update >/dev/null; \
apt-get -y --no-install-recommends install >/dev/null \
apt-transport-https \
ca-certificates \
curl \
# ca-certificates and curl come from upstream
#ca-certificates \
#curl \
gnupg \
locales \
wget \
Expand All @@ -41,15 +42,13 @@ ENV LC_ALL C.UTF-8
# Enable additional repos
RUN set -xe; \
sed -i 's/main/main contrib non-free/' /etc/apt/sources.list; \
# backports repo
echo "deb http://ftp.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/backports.list; \
# blackfire.io repo
curl -fsSL https://packagecloud.io/gpg.key | apt-key add -; \
echo "deb https://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list; \
# git-lfs repo
curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | apt-key add -; \
echo 'deb https://packagecloud.io/github/git-lfs/debian/ jessie main' | tee /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb-src https://packagecloud.io/github/git-lfs/debian/ jessie main' | tee -a /etc/apt/sources.list.d/github_git-lfs.list;
echo 'deb https://packagecloud.io/github/git-lfs/debian stretch main' | tee /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb-src https://packagecloud.io/github/git-lfs/debian stretch main' | tee -a /etc/apt/sources.list.d/github_git-lfs.list;

# Additional packages
RUN set -xe; \
Expand All @@ -60,11 +59,13 @@ RUN set -xe; \
apt-get -y --no-install-recommends install >/dev/null \
cron \
dnsutils \
git \
git-lfs \
ghostscript \
# html2text binary - used for self-testing (php-fpm)
html2text \
imagemagick \
iputils-ping \
less \
# cgi-fcgi binary - used for self-testing (php-fpm)
libfcgi-bin \
Expand All @@ -81,10 +82,7 @@ RUN set -xe; \
supervisor \
unzip \
zip \
zsh \
;\
# More recent version of git to get composer's git cache.
apt-get -y --no-install-recommends -t jessie-backports install git >/dev/null ;\
# Cleanup
apt-get clean; rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -120,9 +118,10 @@ ENV NOTVISIBLE "in users profile"

# PHP
RUN set -xe; \
# Note: essential build tools (g++, gcc, make, etc) are included upstream as persistent packages.
# See https://github.com/docker-library/php/blob/4af0a8734a48ab84ee96de513aabc45418b63dc5/7.2/stretch/fpm/Dockerfile#L18-L37
buildDeps=" \
freetds-dev \
g++ \
libc-client2007e-dev \
libfreetype6-dev \
libgpgme11-dev \
Expand Down
4 changes: 2 additions & 2 deletions 5.6/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ convert_secrets
# Make sure permissions are correct (after uid/gid change and COPY operations in Dockerfile)
# To not bloat the image size, permissions on the home folder are reset at runtime.
echo-debug "Resetting permissions on $HOME_DIR and /var/www..."
chown "${HOST_UID-:1000}:${HOST_GID:-1000}" -R "$HOME_DIR"
chown "${HOST_UID:-1000}:${HOST_GID:-1000}" -R "$HOME_DIR"
# Docker resets the project root folder permissions to 0:0 when cli is recreated (e.g. an env variable updated).
# We apply a fix/workaround for this at startup (non-recursive).
chown "${HOST_UID-:1000}:${HOST_GID:-1000}" /var/www
chown "${HOST_UID:-1000}:${HOST_GID:-1000}" /var/www

# Automatically authenticate with Pantheon in Terminus token is present
# Note: this has to happen after th home directory permissions are reset,
Expand Down
21 changes: 10 additions & 11 deletions 7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ RUN set -xe; \
apt-get update >/dev/null; \
apt-get -y --no-install-recommends install >/dev/null \
apt-transport-https \
ca-certificates \
curl \
# ca-certificates and curl come from upstream
#ca-certificates \
#curl \
gnupg \
locales \
wget \
Expand All @@ -41,18 +42,16 @@ ENV LC_ALL C.UTF-8
# Enable additional repos
RUN set -xe; \
sed -i 's/main/main contrib non-free/' /etc/apt/sources.list; \
# backports repo
echo "deb http://ftp.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/backports.list; \
# blackfire.io repo
curl -fsSL https://packagecloud.io/gpg.key | apt-key add -; \
echo "deb https://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list; \
# git-lfs repo
curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | apt-key add -; \
echo 'deb https://packagecloud.io/github/git-lfs/debian/ jessie main' | tee /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb-src https://packagecloud.io/github/git-lfs/debian/ jessie main' | tee -a /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb https://packagecloud.io/github/git-lfs/debian stretch main' | tee /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb-src https://packagecloud.io/github/git-lfs/debian stretch main' | tee -a /etc/apt/sources.list.d/github_git-lfs.list; \
# MSQSQL repo - msodbcsql17, pecl/sqlsrv and pecl/pdo_sqlsrv (PHP 7.0+ only)
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | apt-key add -; \
echo 'deb https://packages.microsoft.com/debian/8/prod jessie main' | tee /etc/apt/sources.list.d/mssql.list;
echo 'deb https://packages.microsoft.com/debian/9/prod stretch main' | tee /etc/apt/sources.list.d/mssql.list;

# Additional packages
RUN set -xe; \
Expand All @@ -63,11 +62,13 @@ RUN set -xe; \
apt-get -y --no-install-recommends install >/dev/null \
cron \
dnsutils \
git \
git-lfs \
ghostscript \
# html2text binary - used for self-testing (php-fpm)
html2text \
imagemagick \
iputils-ping \
less \
# cgi-fcgi binary - used for self-testing (php-fpm)
libfcgi-bin \
Expand All @@ -84,10 +85,7 @@ RUN set -xe; \
supervisor \
unzip \
zip \
zsh \
;\
# More recent version of git to get composer's git cache.
apt-get -y --no-install-recommends -t jessie-backports install git >/dev/null ;\
# Cleanup
apt-get clean; rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -123,8 +121,9 @@ ENV NOTVISIBLE "in users profile"

# PHP
RUN set -xe; \
# Note: essential build tools (g++, gcc, make, etc) are included upstream as persistent packages.
# See https://github.com/docker-library/php/blob/4af0a8734a48ab84ee96de513aabc45418b63dc5/7.2/stretch/fpm/Dockerfile#L18-L37
buildDeps=" \
g++ \
libc-client2007e-dev \
libfreetype6-dev \
libgpgme11-dev \
Expand Down
4 changes: 2 additions & 2 deletions 7.0/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ convert_secrets
# Make sure permissions are correct (after uid/gid change and COPY operations in Dockerfile)
# To not bloat the image size, permissions on the home folder are reset at runtime.
echo-debug "Resetting permissions on $HOME_DIR and /var/www..."
chown "${HOST_UID-:1000}:${HOST_GID:-1000}" -R "$HOME_DIR"
chown "${HOST_UID:-1000}:${HOST_GID:-1000}" -R "$HOME_DIR"
# Docker resets the project root folder permissions to 0:0 when cli is recreated (e.g. an env variable updated).
# We apply a fix/workaround for this at startup (non-recursive).
chown "${HOST_UID-:1000}:${HOST_GID:-1000}" /var/www
chown "${HOST_UID:-1000}:${HOST_GID:-1000}" /var/www

# Automatically authenticate with Pantheon in Terminus token is present
# Note: this has to happen after th home directory permissions are reset,
Expand Down
21 changes: 10 additions & 11 deletions 7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ RUN set -xe; \
apt-get update >/dev/null; \
apt-get -y --no-install-recommends install >/dev/null \
apt-transport-https \
ca-certificates \
curl \
# ca-certificates and curl come from upstream
#ca-certificates \
#curl \
gnupg \
locales \
wget \
Expand All @@ -41,18 +42,16 @@ ENV LC_ALL C.UTF-8
# Enable additional repos
RUN set -xe; \
sed -i 's/main/main contrib non-free/' /etc/apt/sources.list; \
# backports repo
echo "deb http://ftp.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/backports.list; \
# blackfire.io repo
curl -fsSL https://packagecloud.io/gpg.key | apt-key add -; \
echo "deb https://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list; \
# git-lfs repo
curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | apt-key add -; \
echo 'deb https://packagecloud.io/github/git-lfs/debian/ jessie main' | tee /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb-src https://packagecloud.io/github/git-lfs/debian/ jessie main' | tee -a /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb https://packagecloud.io/github/git-lfs/debian stretch main' | tee /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb-src https://packagecloud.io/github/git-lfs/debian stretch main' | tee -a /etc/apt/sources.list.d/github_git-lfs.list; \
# MSQSQL repo - msodbcsql17, pecl/sqlsrv and pecl/pdo_sqlsrv (PHP 7.0+ only)
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | apt-key add -; \
echo 'deb https://packages.microsoft.com/debian/8/prod jessie main' | tee /etc/apt/sources.list.d/mssql.list;
echo 'deb https://packages.microsoft.com/debian/9/prod stretch main' | tee /etc/apt/sources.list.d/mssql.list;

# Additional packages
RUN set -xe; \
Expand All @@ -63,11 +62,13 @@ RUN set -xe; \
apt-get -y --no-install-recommends install >/dev/null \
cron \
dnsutils \
git \
git-lfs \
ghostscript \
# html2text binary - used for self-testing (php-fpm)
html2text \
imagemagick \
iputils-ping \
less \
# cgi-fcgi binary - used for self-testing (php-fpm)
libfcgi-bin \
Expand All @@ -84,10 +85,7 @@ RUN set -xe; \
supervisor \
unzip \
zip \
zsh \
;\
# More recent version of git to get composer's git cache.
apt-get -y --no-install-recommends -t jessie-backports install git >/dev/null ;\
# Cleanup
apt-get clean; rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -123,8 +121,9 @@ ENV NOTVISIBLE "in users profile"

# PHP
RUN set -xe; \
# Note: essential build tools (g++, gcc, make, etc) are included upstream as persistent packages.
# See https://github.com/docker-library/php/blob/4af0a8734a48ab84ee96de513aabc45418b63dc5/7.2/stretch/fpm/Dockerfile#L18-L37
buildDeps=" \
g++ \
libc-client2007e-dev \
libfreetype6-dev \
libgpgme11-dev \
Expand Down
4 changes: 2 additions & 2 deletions 7.1/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ convert_secrets
# Make sure permissions are correct (after uid/gid change and COPY operations in Dockerfile)
# To not bloat the image size, permissions on the home folder are reset at runtime.
echo-debug "Resetting permissions on $HOME_DIR and /var/www..."
chown "${HOST_UID-:1000}:${HOST_GID:-1000}" -R "$HOME_DIR"
chown "${HOST_UID:-1000}:${HOST_GID:-1000}" -R "$HOME_DIR"
# Docker resets the project root folder permissions to 0:0 when cli is recreated (e.g. an env variable updated).
# We apply a fix/workaround for this at startup (non-recursive).
chown "${HOST_UID-:1000}:${HOST_GID:-1000}" /var/www
chown "${HOST_UID:-1000}:${HOST_GID:-1000}" /var/www

# Automatically authenticate with Pantheon in Terminus token is present
# Note: this has to happen after th home directory permissions are reset,
Expand Down
21 changes: 10 additions & 11 deletions 7.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ RUN set -xe; \
apt-get update >/dev/null; \
apt-get -y --no-install-recommends install >/dev/null \
apt-transport-https \
ca-certificates \
curl \
# ca-certificates and curl come from upstream
#ca-certificates \
#curl \
gnupg \
locales \
wget \
Expand All @@ -41,18 +42,16 @@ ENV LC_ALL C.UTF-8
# Enable additional repos
RUN set -xe; \
sed -i 's/main/main contrib non-free/' /etc/apt/sources.list; \
# backports repo
echo "deb http://ftp.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/backports.list; \
# blackfire.io repo
curl -fsSL https://packagecloud.io/gpg.key | apt-key add -; \
echo "deb https://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list; \
# git-lfs repo
curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | apt-key add -; \
echo 'deb https://packagecloud.io/github/git-lfs/debian/ jessie main' | tee /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb-src https://packagecloud.io/github/git-lfs/debian/ jessie main' | tee -a /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb https://packagecloud.io/github/git-lfs/debian stretch main' | tee /etc/apt/sources.list.d/github_git-lfs.list; \
echo 'deb-src https://packagecloud.io/github/git-lfs/debian stretch main' | tee -a /etc/apt/sources.list.d/github_git-lfs.list; \
# MSQSQL repo - msodbcsql17, pecl/sqlsrv and pecl/pdo_sqlsrv (PHP 7.0+ only)
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | apt-key add -; \
echo 'deb https://packages.microsoft.com/debian/8/prod jessie main' | tee /etc/apt/sources.list.d/mssql.list;
echo 'deb https://packages.microsoft.com/debian/9/prod stretch main' | tee /etc/apt/sources.list.d/mssql.list;

# Additional packages
RUN set -xe; \
Expand All @@ -63,11 +62,13 @@ RUN set -xe; \
apt-get -y --no-install-recommends install >/dev/null \
cron \
dnsutils \
git \
git-lfs \
ghostscript \
# html2text binary - used for self-testing (php-fpm)
html2text \
imagemagick \
iputils-ping \
less \
# cgi-fcgi binary - used for self-testing (php-fpm)
libfcgi-bin \
Expand All @@ -84,10 +85,7 @@ RUN set -xe; \
supervisor \
unzip \
zip \
zsh \
;\
# More recent version of git to get composer's git cache.
apt-get -y --no-install-recommends -t jessie-backports install git >/dev/null ;\
# Cleanup
apt-get clean; rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -123,8 +121,9 @@ ENV NOTVISIBLE "in users profile"

# PHP
RUN set -xe; \
# Note: essential build tools (g++, gcc, make, etc) are included upstream as persistent packages.
# See https://github.com/docker-library/php/blob/4af0a8734a48ab84ee96de513aabc45418b63dc5/7.2/stretch/fpm/Dockerfile#L18-L37
buildDeps=" \
g++ \
libc-client2007e-dev \
libfreetype6-dev \
libgpgme11-dev \
Expand Down
4 changes: 2 additions & 2 deletions 7.2/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ convert_secrets
# Make sure permissions are correct (after uid/gid change and COPY operations in Dockerfile)
# To not bloat the image size, permissions on the home folder are reset at runtime.
echo-debug "Resetting permissions on $HOME_DIR and /var/www..."
chown "${HOST_UID-:1000}:${HOST_GID:-1000}" -R "$HOME_DIR"
chown "${HOST_UID:-1000}:${HOST_GID:-1000}" -R "$HOME_DIR"
# Docker resets the project root folder permissions to 0:0 when cli is recreated (e.g. an env variable updated).
# We apply a fix/workaround for this at startup (non-recursive).
chown "${HOST_UID-:1000}:${HOST_GID:-1000}" /var/www
chown "${HOST_UID:-1000}:${HOST_GID:-1000}" /var/www

# Automatically authenticate with Pantheon in Terminus token is present
# Note: this has to happen after th home directory permissions are reset,
Expand Down
Loading

0 comments on commit 3e9dffd

Please sign in to comment.