mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-18 15:01:14 +00:00
Compare commits
35 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b66ddfbd3e | ||
|
|
1663d3af7d | ||
|
|
46512b05a1 | ||
|
|
a95be98d1c | ||
|
|
ba0709f3f0 | ||
|
|
329e7bf2ec | ||
|
|
d84cc5708c | ||
|
|
21177a801c | ||
|
|
d9ae1e9ff5 | ||
|
|
c6750acfce | ||
|
|
5751f9ae96 | ||
|
|
72b675fa2a | ||
|
|
1c867e1cfc | ||
|
|
e3512da650 | ||
|
|
b2dc2c7704 | ||
|
|
a3819e9add | ||
|
|
c4a75f61a5 | ||
|
|
d081de866b | ||
|
|
4c09729cf3 | ||
|
|
c7389796b4 | ||
|
|
9398cefbe2 | ||
|
|
a1092be181 | ||
|
|
42b811f068 | ||
|
|
6507383d94 | ||
|
|
85f36d7c6b | ||
|
|
8ed060fd60 | ||
|
|
a4924537de | ||
|
|
de3b0dcc17 | ||
|
|
920d656cc1 | ||
|
|
41581bf9a3 | ||
|
|
aab7599eab | ||
|
|
16c113d404 | ||
|
|
90458c9b29 | ||
|
|
7c498fd369 | ||
|
|
9ee2da9fa3 |
@@ -116,6 +116,16 @@ RUN set -x \
|
|||||||
${BUILD_DEPS} \
|
${BUILD_DEPS} \
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
|
&& EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
|
||||||
|
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
|
||||||
|
&& curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \
|
||||||
|
&& tar xvfz ioncube.tar.gz \
|
||||||
|
&& cd ioncube \
|
||||||
|
&& cp "ioncube_loader_lin_5.3.so" "${EXTENSION_DIR}/ioncube.so" \
|
||||||
|
&& cd ../ \
|
||||||
|
&& rm -rf ioncube \
|
||||||
|
&& rm -rf ioncube.tar.gz \
|
||||||
|
\
|
||||||
&& echo "/usr" | pecl install amqp \
|
&& echo "/usr" | pecl install amqp \
|
||||||
&& docker-php-ext-enable amqp \
|
&& docker-php-ext-enable amqp \
|
||||||
&& pecl install apcu-4.0.11 \
|
&& pecl install apcu-4.0.11 \
|
||||||
|
|||||||
@@ -116,6 +116,16 @@ RUN set -x \
|
|||||||
${BUILD_DEPS} \
|
${BUILD_DEPS} \
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
|
&& EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
|
||||||
|
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
|
||||||
|
&& curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \
|
||||||
|
&& tar xvfz ioncube.tar.gz \
|
||||||
|
&& cd ioncube \
|
||||||
|
&& cp "ioncube_loader_lin_5.4.so" "${EXTENSION_DIR}/ioncube.so" \
|
||||||
|
&& cd ../ \
|
||||||
|
&& rm -rf ioncube \
|
||||||
|
&& rm -rf ioncube.tar.gz \
|
||||||
|
\
|
||||||
&& echo "/usr" | pecl install amqp \
|
&& echo "/usr" | pecl install amqp \
|
||||||
&& docker-php-ext-enable amqp \
|
&& docker-php-ext-enable amqp \
|
||||||
&& pecl install apcu-4.0.11 \
|
&& pecl install apcu-4.0.11 \
|
||||||
|
|||||||
@@ -118,6 +118,16 @@ RUN set -x \
|
|||||||
${BUILD_DEPS} \
|
${BUILD_DEPS} \
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
|
&& EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
|
||||||
|
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
|
||||||
|
&& curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \
|
||||||
|
&& tar xvfz ioncube.tar.gz \
|
||||||
|
&& cd ioncube \
|
||||||
|
&& cp "ioncube_loader_lin_5.5.so" "${EXTENSION_DIR}/ioncube.so" \
|
||||||
|
&& cd ../ \
|
||||||
|
&& rm -rf ioncube \
|
||||||
|
&& rm -rf ioncube.tar.gz \
|
||||||
|
\
|
||||||
&& echo "/usr" | pecl install amqp \
|
&& echo "/usr" | pecl install amqp \
|
||||||
&& docker-php-ext-enable amqp \
|
&& docker-php-ext-enable amqp \
|
||||||
&& pecl install apcu-4.0.11 \
|
&& pecl install apcu-4.0.11 \
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ ENV BUILD_DEPS \
|
|||||||
libvpx-dev \
|
libvpx-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
|
libwebp-dev \
|
||||||
libgmp-dev \
|
libgmp-dev \
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
libc-client-dev \
|
libc-client-dev \
|
||||||
@@ -57,7 +58,6 @@ ENV BUILD_DEPS \
|
|||||||
libpq-dev \
|
libpq-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libssl-dev \
|
|
||||||
libpspell-dev \
|
libpspell-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
libreadline-dev \
|
libreadline-dev \
|
||||||
@@ -83,20 +83,21 @@ ENV BUILD_DEPS \
|
|||||||
git
|
git
|
||||||
|
|
||||||
ENV RUN_DEPS \
|
ENV RUN_DEPS \
|
||||||
librabbitmq1 \
|
librabbitmq4 \
|
||||||
libenchant1c2a \
|
libenchant1c2a \
|
||||||
libpng12-0 \
|
libpng16-16 \
|
||||||
libjpeg62-turbo \
|
libjpeg62-turbo \
|
||||||
libxpm4 \
|
libxpm4 \
|
||||||
libvpx1 \
|
libvpx4 \
|
||||||
libfreetype6 \
|
libfreetype6 \
|
||||||
libmagickwand-6.q16-2 \
|
libwebp6 \
|
||||||
|
libmagickwand-6.q16-3 \
|
||||||
libc-client2007e \
|
libc-client2007e \
|
||||||
libfbclient2 \
|
libfbclient2 \
|
||||||
libicu52 \
|
libicu57 \
|
||||||
libmcrypt4 \
|
libmcrypt4 \
|
||||||
libmemcachedutil2 \
|
libmemcachedutil2 \
|
||||||
libmysqlclient18 \
|
libmariadbclient18 \
|
||||||
libsybdb5 \
|
libsybdb5 \
|
||||||
libfbclient2 \
|
libfbclient2 \
|
||||||
libpq5 \
|
libpq5 \
|
||||||
@@ -104,10 +105,10 @@ ENV RUN_DEPS \
|
|||||||
libaspell15 \
|
libaspell15 \
|
||||||
librecode0 \
|
librecode0 \
|
||||||
snmp \
|
snmp \
|
||||||
libnghttp2-5 \
|
libnghttp2-14 \
|
||||||
libtidy-0.99-0 \
|
libtidy5 \
|
||||||
libxslt1.1 \
|
libxslt1.1 \
|
||||||
libzip2 \
|
libzip4 \
|
||||||
ca-certificates
|
ca-certificates
|
||||||
|
|
||||||
|
|
||||||
@@ -120,6 +121,16 @@ RUN set -x \
|
|||||||
${BUILD_DEPS} \
|
${BUILD_DEPS} \
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
|
&& EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
|
||||||
|
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
|
||||||
|
&& curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \
|
||||||
|
&& tar xvfz ioncube.tar.gz \
|
||||||
|
&& cd ioncube \
|
||||||
|
&& cp "ioncube_loader_lin_5.6.so" "${EXTENSION_DIR}/ioncube.so" \
|
||||||
|
&& cd ../ \
|
||||||
|
&& rm -rf ioncube \
|
||||||
|
&& rm -rf ioncube.tar.gz \
|
||||||
|
\
|
||||||
&& echo "/usr" | pecl install amqp \
|
&& echo "/usr" | pecl install amqp \
|
||||||
&& docker-php-ext-enable amqp \
|
&& docker-php-ext-enable amqp \
|
||||||
&& pecl install apcu-4.0.11 \
|
&& pecl install apcu-4.0.11 \
|
||||||
@@ -189,7 +200,6 @@ RUN set -x \
|
|||||||
&& cd build && ./install \
|
&& cd build && ./install \
|
||||||
&& docker-php-ext-enable phalcon \
|
&& docker-php-ext-enable phalcon \
|
||||||
&& cd / && rm -rf /tmp/phalcon \
|
&& cd / && rm -rf /tmp/phalcon \
|
||||||
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) phar \
|
|
||||||
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) posix \
|
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) posix \
|
||||||
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \
|
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \
|
||||||
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) readline \
|
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) readline \
|
||||||
@@ -341,8 +351,6 @@ RUN set -x \
|
|||||||
&& php-fpm -m | grep -oiE '^pgsql$' \
|
&& php-fpm -m | grep -oiE '^pgsql$' \
|
||||||
&& php -m | grep -oiE '^phalcon$' \
|
&& php -m | grep -oiE '^phalcon$' \
|
||||||
&& php-fpm -m | grep -oiE '^phalcon$' \
|
&& php-fpm -m | grep -oiE '^phalcon$' \
|
||||||
&& php -m | grep -oiE '^phar$' \
|
|
||||||
&& php-fpm -m | grep -oiE '^phar$' \
|
|
||||||
&& php -m | grep -oiE '^posix$' \
|
&& php -m | grep -oiE '^posix$' \
|
||||||
&& php-fpm -m | grep -oiE '^posix$' \
|
&& php-fpm -m | grep -oiE '^posix$' \
|
||||||
&& php -m | grep -oiE '^pspell$' \
|
&& php -m | grep -oiE '^pspell$' \
|
||||||
|
|||||||
@@ -81,18 +81,18 @@ ENV BUILD_DEPS \
|
|||||||
git
|
git
|
||||||
|
|
||||||
ENV RUN_DEPS \
|
ENV RUN_DEPS \
|
||||||
librabbitmq1 \
|
librabbitmq4 \
|
||||||
libenchant1c2a \
|
libenchant1c2a \
|
||||||
libpng12-0 \
|
libpng16-16 \
|
||||||
libjpeg62-turbo \
|
libjpeg62-turbo \
|
||||||
libxpm4 \
|
libxpm4 \
|
||||||
libvpx1 \
|
libvpx4 \
|
||||||
libfreetype6 \
|
libfreetype6 \
|
||||||
libwebp-dev \
|
libwebp6 \
|
||||||
libmagickwand-6.q16-2 \
|
libmagickwand-6.q16-3 \
|
||||||
libc-client2007e \
|
libc-client2007e \
|
||||||
libfbclient2 \
|
libfbclient2 \
|
||||||
libicu52 \
|
libicu57 \
|
||||||
libmcrypt4 \
|
libmcrypt4 \
|
||||||
libmemcachedutil2 \
|
libmemcachedutil2 \
|
||||||
libsybdb5 \
|
libsybdb5 \
|
||||||
@@ -102,10 +102,10 @@ ENV RUN_DEPS \
|
|||||||
libaspell15 \
|
libaspell15 \
|
||||||
librecode0 \
|
librecode0 \
|
||||||
snmp \
|
snmp \
|
||||||
libnghttp2-5 \
|
libnghttp2-14 \
|
||||||
libtidy-0.99-0 \
|
libtidy5 \
|
||||||
libxslt1.1 \
|
libxslt1.1 \
|
||||||
libzip2 \
|
libzip4 \
|
||||||
ca-certificates
|
ca-certificates
|
||||||
|
|
||||||
|
|
||||||
@@ -118,6 +118,16 @@ RUN set -x \
|
|||||||
${BUILD_DEPS} \
|
${BUILD_DEPS} \
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
|
&& EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
|
||||||
|
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
|
||||||
|
&& curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \
|
||||||
|
&& tar xvfz ioncube.tar.gz \
|
||||||
|
&& cd ioncube \
|
||||||
|
&& cp "ioncube_loader_lin_7.0.so" "${EXTENSION_DIR}/ioncube.so" \
|
||||||
|
&& cd ../ \
|
||||||
|
&& rm -rf ioncube \
|
||||||
|
&& rm -rf ioncube.tar.gz \
|
||||||
|
\
|
||||||
&& echo "/usr" | pecl install amqp \
|
&& echo "/usr" | pecl install amqp \
|
||||||
&& docker-php-ext-enable amqp \
|
&& docker-php-ext-enable amqp \
|
||||||
&& pecl install apcu \
|
&& pecl install apcu \
|
||||||
@@ -205,7 +215,7 @@ RUN set -x \
|
|||||||
&& /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \
|
&& /usr/local/bin/docker-php-ext-configure soap --with-libxml-dir=/usr \
|
||||||
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \
|
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \
|
||||||
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \
|
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \
|
||||||
&& pecl install swoole \
|
&& pecl install swoole-2.2.0 \
|
||||||
&& docker-php-ext-enable swoole \
|
&& docker-php-ext-enable swoole \
|
||||||
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \
|
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \
|
||||||
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \
|
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \
|
||||||
|
|||||||
@@ -81,18 +81,18 @@ ENV BUILD_DEPS \
|
|||||||
git
|
git
|
||||||
|
|
||||||
ENV RUN_DEPS \
|
ENV RUN_DEPS \
|
||||||
librabbitmq1 \
|
librabbitmq4 \
|
||||||
libenchant1c2a \
|
libenchant1c2a \
|
||||||
libpng12-0 \
|
libpng16-16 \
|
||||||
libjpeg62-turbo \
|
libjpeg62-turbo \
|
||||||
libxpm4 \
|
libxpm4 \
|
||||||
libvpx1 \
|
libvpx4 \
|
||||||
libfreetype6 \
|
libfreetype6 \
|
||||||
libwebp-dev \
|
libwebp6 \
|
||||||
libmagickwand-6.q16-2 \
|
libmagickwand-6.q16-3 \
|
||||||
libc-client2007e \
|
libc-client2007e \
|
||||||
libfbclient2 \
|
libfbclient2 \
|
||||||
libicu52 \
|
libicu57 \
|
||||||
libmcrypt4 \
|
libmcrypt4 \
|
||||||
libmemcachedutil2 \
|
libmemcachedutil2 \
|
||||||
libsybdb5 \
|
libsybdb5 \
|
||||||
@@ -102,10 +102,10 @@ ENV RUN_DEPS \
|
|||||||
libaspell15 \
|
libaspell15 \
|
||||||
librecode0 \
|
librecode0 \
|
||||||
snmp \
|
snmp \
|
||||||
libnghttp2-5 \
|
libnghttp2-14 \
|
||||||
libtidy-0.99-0 \
|
libtidy5 \
|
||||||
libxslt1.1 \
|
libxslt1.1 \
|
||||||
libzip2 \
|
libzip4 \
|
||||||
ca-certificates
|
ca-certificates
|
||||||
|
|
||||||
|
|
||||||
@@ -118,6 +118,16 @@ RUN set -x \
|
|||||||
${BUILD_DEPS} \
|
${BUILD_DEPS} \
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
|
&& EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
|
||||||
|
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
|
||||||
|
&& curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \
|
||||||
|
&& tar xvfz ioncube.tar.gz \
|
||||||
|
&& cd ioncube \
|
||||||
|
&& cp "ioncube_loader_lin_7.1.so" "${EXTENSION_DIR}/ioncube.so" \
|
||||||
|
&& cd ../ \
|
||||||
|
&& rm -rf ioncube \
|
||||||
|
&& rm -rf ioncube.tar.gz \
|
||||||
|
\
|
||||||
&& echo "/usr" | pecl install amqp \
|
&& echo "/usr" | pecl install amqp \
|
||||||
&& docker-php-ext-enable amqp \
|
&& docker-php-ext-enable amqp \
|
||||||
&& pecl install apcu \
|
&& pecl install apcu \
|
||||||
|
|||||||
@@ -119,7 +119,17 @@ RUN set -x \
|
|||||||
${BUILD_DEPS} \
|
${BUILD_DEPS} \
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
&& pecl install amqp \
|
&& EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
|
||||||
|
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
|
||||||
|
&& curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \
|
||||||
|
&& tar xvfz ioncube.tar.gz \
|
||||||
|
&& cd ioncube \
|
||||||
|
&& cp "ioncube_loader_lin_7.2.so" "${EXTENSION_DIR}/ioncube.so" \
|
||||||
|
&& cd ../ \
|
||||||
|
&& rm -rf ioncube \
|
||||||
|
&& rm -rf ioncube.tar.gz \
|
||||||
|
\
|
||||||
|
&& echo "/usr" | pecl install amqp \
|
||||||
&& docker-php-ext-enable amqp \
|
&& docker-php-ext-enable amqp \
|
||||||
&& pecl install apcu \
|
&& pecl install apcu \
|
||||||
&& docker-php-ext-enable apcu \
|
&& docker-php-ext-enable apcu \
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ RUN set -x \
|
|||||||
--enable-mysqlnd \
|
--enable-mysqlnd \
|
||||||
--enable-coroutine \
|
--enable-coroutine \
|
||||||
--enable-picohttpparser \
|
--enable-picohttpparser \
|
||||||
--enable-timewheel \
|
#`--enable-timewheel` \
|
||||||
#`--enable-hugepage` \
|
#`--enable-hugepage` \
|
||||||
#`--enable-asan` \
|
#`--enable-asan` \
|
||||||
#`--with-phpx-dir=` \
|
#`--with-phpx-dir=` \
|
||||||
|
|||||||
51
Dockerfiles/prod/data/docker-entrypoint.d/38-enable-modules.sh
Executable file
51
Dockerfiles/prod/data/docker-entrypoint.d/38-enable-modules.sh
Executable file
@@ -0,0 +1,51 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
|
||||||
|
############################################################
|
||||||
|
# Functions
|
||||||
|
############################################################
|
||||||
|
|
||||||
|
###
|
||||||
|
### Enable PHP Modules
|
||||||
|
###
|
||||||
|
enable_modules() {
|
||||||
|
local mod_varname="${1}"
|
||||||
|
local debug="${2}"
|
||||||
|
local cfg_path="/usr/local/etc/php/conf.d"
|
||||||
|
local mod_path=
|
||||||
|
mod_path="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )"
|
||||||
|
|
||||||
|
|
||||||
|
if ! env_set "${mod_varname}"; then
|
||||||
|
log "info" "\$${mod_varname} not set. Not enabling any PHP modules." "${debug}"
|
||||||
|
else
|
||||||
|
mods="$( env_get "${mod_varname}" )"
|
||||||
|
|
||||||
|
if [ -z "${mods}" ]; then
|
||||||
|
log "info" "\$${mod_varname} set, but empty. Not enabling any PHP modules." "${debug}"
|
||||||
|
else
|
||||||
|
log "info" "Enabling the following PHP modules: ${mods}" "${debug}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
while read -r mod; do
|
||||||
|
mod="$( echo "${mod}" | xargs )" # trim
|
||||||
|
|
||||||
|
# Does the module exist?
|
||||||
|
if [ -f "${mod_path}/${mod}.so" ]; then
|
||||||
|
# Exceptions to load speficially
|
||||||
|
if [ "${mod}" = "ioncube" ]; then
|
||||||
|
run "echo 'zend_extension=${mod_path}/ioncube.so' > '${cfg_path}/docker-ext-php-ext-ioncube.ini'" "${debug}"
|
||||||
|
# Generic Load
|
||||||
|
else
|
||||||
|
run "docker-php-ext-enable ${mod} || true" "${debug}"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
log "warn" "Enabling PHP Module: '${mod}' does not exist" "${debug}"
|
||||||
|
fi
|
||||||
|
done <<< "$( echo "${mods}" | tr ',' '\n' )"
|
||||||
|
fi
|
||||||
|
}
|
||||||
47
Dockerfiles/prod/data/docker-entrypoint.d/39-disable-modules.sh
Executable file
47
Dockerfiles/prod/data/docker-entrypoint.d/39-disable-modules.sh
Executable file
@@ -0,0 +1,47 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
|
||||||
|
############################################################
|
||||||
|
# Functions
|
||||||
|
############################################################
|
||||||
|
|
||||||
|
###
|
||||||
|
### Disable PHP Modules
|
||||||
|
###
|
||||||
|
disable_modules() {
|
||||||
|
local mod_varname="${1}"
|
||||||
|
local debug="${2}"
|
||||||
|
local cfg_path="/usr/local/etc/php/conf.d"
|
||||||
|
|
||||||
|
if ! env_set "${mod_varname}"; then
|
||||||
|
log "info" "\$${mod_varname} not set. Not disabling any PHP modules." "${debug}"
|
||||||
|
else
|
||||||
|
mods="$( env_get "${mod_varname}" )"
|
||||||
|
|
||||||
|
if [ -z "${mods}" ]; then
|
||||||
|
log "info" "\$${mod_varname} set, but empty. Not disabling any PHP modules." "${debug}"
|
||||||
|
else
|
||||||
|
log "info" "Disabling the following PHP modules: ${mods}" "${debug}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
while read -r mod; do
|
||||||
|
mod="$( echo "${mod}" | xargs )" # trim
|
||||||
|
|
||||||
|
# Find all config files that enable that module
|
||||||
|
files="$( grep -Er "^(zend_)?extension.*(=|/)${mod}\.so" "${cfg_path}" || true )"
|
||||||
|
|
||||||
|
if [ -n "${files}" ]; then
|
||||||
|
while read -r f; do
|
||||||
|
# Get filename
|
||||||
|
f="$( echo "${f}" | awk -F':' '{ print $1 }' )"
|
||||||
|
# Remove file
|
||||||
|
run "rm ${f}" "${debug}"
|
||||||
|
done <<< "${files}"
|
||||||
|
fi
|
||||||
|
done <<< "$( echo "${mods}" | tr ',' '\n' )"
|
||||||
|
fi
|
||||||
|
}
|
||||||
@@ -160,6 +160,18 @@ copy_ini_files "${PHP_CUST_INI_DIR}" "${PHP_INI_DIR}" "${DEBUG_LEVEL}"
|
|||||||
copy_fpm_files "${PHP_CUST_FPM_DIR}" "${PHP_FPM_DIR}" "${DEBUG_LEVEL}"
|
copy_fpm_files "${PHP_CUST_FPM_DIR}" "${PHP_FPM_DIR}" "${DEBUG_LEVEL}"
|
||||||
|
|
||||||
|
|
||||||
|
###
|
||||||
|
### Enable PHP Modules
|
||||||
|
###
|
||||||
|
enable_modules "ENABLE_MODULES" "${DEBUG_LEVEL}"
|
||||||
|
|
||||||
|
|
||||||
|
###
|
||||||
|
### Disable PHP Modules
|
||||||
|
###
|
||||||
|
disable_modules "DISABLE_MODULES" "${DEBUG_LEVEL}"
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Startup
|
### Startup
|
||||||
###
|
###
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ RUN set -x \
|
|||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl \
|
curl \
|
||||||
@@ -62,6 +63,8 @@ RUN set -x \
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
less \
|
less \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
|
libffi-dev\
|
||||||
|
libssl-dev\
|
||||||
make \
|
make \
|
||||||
mongodb-org-shell \
|
mongodb-org-shell \
|
||||||
mongodb-org-tools \
|
mongodb-org-tools \
|
||||||
@@ -72,8 +75,12 @@ RUN set -x \
|
|||||||
netcat \
|
netcat \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
patch \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
python-cffi \
|
||||||
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python-wheel \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
rubygems \
|
rubygems \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
@@ -95,6 +102,10 @@ RUN set -x \
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
# composer
|
# composer
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# ansible
|
||||||
|
&& pip install --upgrade setuptools \
|
||||||
|
&& pip install ansible \
|
||||||
|
\
|
||||||
# awesomeci
|
# awesomeci
|
||||||
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
||||||
&& cd /usr/local/src/awesome-ci \
|
&& cd /usr/local/src/awesome-ci \
|
||||||
@@ -112,6 +123,10 @@ RUN set -x \
|
|||||||
&& npm install -g mdlint \
|
&& npm install -g mdlint \
|
||||||
&& npm install -g gulp \
|
&& npm install -g gulp \
|
||||||
\
|
\
|
||||||
|
# codeception
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require codeception/codeception --dev \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/codeception/codeception/codecept /usr/local/bin/codecept \
|
||||||
|
\
|
||||||
# drush
|
# drush
|
||||||
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
||||||
&& cd /usr/local/src/drush \
|
&& cd /usr/local/src/drush \
|
||||||
@@ -134,18 +149,27 @@ RUN set -x \
|
|||||||
\
|
\
|
||||||
# grunt
|
# grunt
|
||||||
&& npm install -g grunt grunt-cli \
|
&& npm install -g grunt grunt-cli \
|
||||||
|
# linkcheck
|
||||||
|
&& curl https://raw.githubusercontent.com/cytopia/linkcheck/master/linkcheck > /usr/local/bin/linkcheck \
|
||||||
|
&& chmod +x /usr/local/bin/linkcheck \
|
||||||
|
\
|
||||||
# linuxbrew
|
# linuxbrew
|
||||||
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
||||||
\
|
\
|
||||||
|
# mhsendmail
|
||||||
|
&& wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 \
|
||||||
|
&& chmod +x mhsendmail_linux_amd64 \
|
||||||
|
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmai \
|
||||||
|
\
|
||||||
# mysqldumpsecure
|
# mysqldumpsecure
|
||||||
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
||||||
&& cd /usr/local/src/mysqldump-secure \
|
&& cd /usr/local/src/mysqldump-secure \
|
||||||
@@ -187,6 +211,10 @@ RUN set -x \
|
|||||||
&& curl -qL https://github.com/squizlabs/PHP_CodeSniffer/releases/download/2.9.0/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
&& curl -qL https://github.com/squizlabs/PHP_CodeSniffer/releases/download/2.9.0/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
||||||
&& chmod +x /usr/local/bin/phpcbf \
|
&& chmod +x /usr/local/bin/phpcbf \
|
||||||
\
|
\
|
||||||
|
# phpunit
|
||||||
|
&& curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
\
|
||||||
# sass
|
# sass
|
||||||
&& gem install sass \
|
&& gem install sass \
|
||||||
# webpack
|
# webpack
|
||||||
@@ -253,6 +281,7 @@ RUN set -x \
|
|||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
||||||
|
&& ansible --version | grep -E '^ansible [.0-9]+$' \
|
||||||
&& mdl --version | grep -E '[.0-9]+' \
|
&& mdl --version | grep -E '[.0-9]+' \
|
||||||
&& scss-lint --version | grep -E '[.0-9]+' \
|
&& scss-lint --version | grep -E '[.0-9]+' \
|
||||||
&& eslint -v | grep -E '[.0-9]+' \
|
&& eslint -v | grep -E '[.0-9]+' \
|
||||||
@@ -260,14 +289,17 @@ RUN set -x \
|
|||||||
&& mdlint --version | grep -E '[.0-9]+' \
|
&& mdlint --version | grep -E '[.0-9]+' \
|
||||||
&& gulp --version | grep -E '[.0-9]+' \
|
&& gulp --version | grep -E '[.0-9]+' \
|
||||||
\
|
\
|
||||||
|
&& codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$' \
|
||||||
&& drush --version | grep -E '[.0-9]+' \
|
&& drush --version | grep -E '[.0-9]+' \
|
||||||
&& git-flow version | grep -E '[.0-9]+' \
|
&& git-flow version | grep -E '[.0-9]+' \
|
||||||
&& grunt --version | grep -E '[.0-9]+' \
|
&& grunt --version | grep -E '[.0-9]+' \
|
||||||
|
&& linkcheck --version | grep -E '^linkcheck\sv[.0-9]+' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
||||||
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
||||||
&& phalcon commands | grep -E '[.0-9]+' \
|
&& phalcon commands | grep -E '[.0-9]+' \
|
||||||
&& phpcs --version | grep -E 'version [.0-9]+' \
|
&& phpcs --version | grep -E 'version [.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
||||||
|
&& phpunit --version | grep -iE '^PHPUnit\s[.0-9]+' \
|
||||||
&& sass --version | grep -E '[.0-9]+' \
|
&& sass --version | grep -E '[.0-9]+' \
|
||||||
&& webpack --version | grep -E '[.0-9]+' \
|
&& webpack --version | grep -E '[.0-9]+' \
|
||||||
&& wp --allow-root --version | grep -E '[.0-9]+' \
|
&& wp --allow-root --version | grep -E '[.0-9]+' \
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ RUN set -x \
|
|||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl \
|
curl \
|
||||||
@@ -62,6 +63,8 @@ RUN set -x \
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
less \
|
less \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
|
libffi-dev\
|
||||||
|
libssl-dev\
|
||||||
make \
|
make \
|
||||||
mongodb-org-shell \
|
mongodb-org-shell \
|
||||||
mongodb-org-tools \
|
mongodb-org-tools \
|
||||||
@@ -72,8 +75,12 @@ RUN set -x \
|
|||||||
netcat \
|
netcat \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
patch \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
python-cffi \
|
||||||
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python-wheel \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
rubygems \
|
rubygems \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
@@ -95,6 +102,10 @@ RUN set -x \
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
# composer
|
# composer
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# ansible
|
||||||
|
&& pip install --upgrade setuptools \
|
||||||
|
&& pip install ansible \
|
||||||
|
\
|
||||||
# awesomeci
|
# awesomeci
|
||||||
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
||||||
&& cd /usr/local/src/awesome-ci \
|
&& cd /usr/local/src/awesome-ci \
|
||||||
@@ -112,6 +123,10 @@ RUN set -x \
|
|||||||
&& npm install -g mdlint \
|
&& npm install -g mdlint \
|
||||||
&& npm install -g gulp \
|
&& npm install -g gulp \
|
||||||
\
|
\
|
||||||
|
# codeception
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require codeception/codeception --dev \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/codeception/codeception/codecept /usr/local/bin/codecept \
|
||||||
|
\
|
||||||
# drush
|
# drush
|
||||||
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
||||||
&& cd /usr/local/src/drush \
|
&& cd /usr/local/src/drush \
|
||||||
@@ -144,18 +159,27 @@ RUN set -x \
|
|||||||
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
||||||
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
||||||
\
|
\
|
||||||
|
# linkcheck
|
||||||
|
&& curl https://raw.githubusercontent.com/cytopia/linkcheck/master/linkcheck > /usr/local/bin/linkcheck \
|
||||||
|
&& chmod +x /usr/local/bin/linkcheck \
|
||||||
|
\
|
||||||
# linuxbrew
|
# linuxbrew
|
||||||
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
||||||
\
|
\
|
||||||
|
# mhsendmail
|
||||||
|
&& wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 \
|
||||||
|
&& chmod +x mhsendmail_linux_amd64 \
|
||||||
|
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmai \
|
||||||
|
\
|
||||||
# mysqldumpsecure
|
# mysqldumpsecure
|
||||||
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
||||||
&& cd /usr/local/src/mysqldump-secure \
|
&& cd /usr/local/src/mysqldump-secure \
|
||||||
@@ -197,6 +221,10 @@ RUN set -x \
|
|||||||
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
||||||
&& chmod +x /usr/local/bin/phpcbf \
|
&& chmod +x /usr/local/bin/phpcbf \
|
||||||
\
|
\
|
||||||
|
# phpunit
|
||||||
|
&& curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
\
|
||||||
# sass
|
# sass
|
||||||
&& gem install sass \
|
&& gem install sass \
|
||||||
# symfony
|
# symfony
|
||||||
@@ -266,6 +294,7 @@ RUN set -x \
|
|||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
||||||
|
&& ansible --version | grep -E '^ansible [.0-9]+$' \
|
||||||
&& mdl --version | grep -E '[.0-9]+' \
|
&& mdl --version | grep -E '[.0-9]+' \
|
||||||
&& scss-lint --version | grep -E '[.0-9]+' \
|
&& scss-lint --version | grep -E '[.0-9]+' \
|
||||||
&& eslint -v | grep -E '[.0-9]+' \
|
&& eslint -v | grep -E '[.0-9]+' \
|
||||||
@@ -273,15 +302,18 @@ RUN set -x \
|
|||||||
&& mdlint --version | grep -E '[.0-9]+' \
|
&& mdlint --version | grep -E '[.0-9]+' \
|
||||||
&& gulp --version | grep -E '[.0-9]+' \
|
&& gulp --version | grep -E '[.0-9]+' \
|
||||||
\
|
\
|
||||||
|
&& codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$' \
|
||||||
&& drush --version | grep -E '[.0-9]+' \
|
&& drush --version | grep -E '[.0-9]+' \
|
||||||
&& git-flow version | grep -E '[.0-9]+' \
|
&& git-flow version | grep -E '[.0-9]+' \
|
||||||
&& grunt --version | grep -E '[.0-9]+' \
|
&& grunt --version | grep -E '[.0-9]+' \
|
||||||
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
||||||
|
&& linkcheck --version | grep -E '^linkcheck\sv[.0-9]+' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
||||||
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
||||||
&& phalcon commands | grep -E '[.0-9]+' \
|
&& phalcon commands | grep -E '[.0-9]+' \
|
||||||
&& phpcs --version | grep -E 'version [.0-9]+' \
|
&& phpcs --version | grep -E 'version [.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
||||||
|
&& phpunit --version | grep -iE '^PHPUnit\s[.0-9]+' \
|
||||||
&& sass --version | grep -E '[.0-9]+' \
|
&& sass --version | grep -E '[.0-9]+' \
|
||||||
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
||||||
&& webpack --version | grep -E '[.0-9]+' \
|
&& webpack --version | grep -E '[.0-9]+' \
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ RUN set -x \
|
|||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl \
|
curl \
|
||||||
@@ -62,6 +63,8 @@ RUN set -x \
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
less \
|
less \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
|
libffi-dev\
|
||||||
|
libssl-dev\
|
||||||
make \
|
make \
|
||||||
mongodb-org-shell \
|
mongodb-org-shell \
|
||||||
mongodb-org-tools \
|
mongodb-org-tools \
|
||||||
@@ -72,8 +75,12 @@ RUN set -x \
|
|||||||
netcat \
|
netcat \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
patch \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
python-cffi \
|
||||||
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python-wheel \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
rubygems \
|
rubygems \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
@@ -95,6 +102,10 @@ RUN set -x \
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
# composer
|
# composer
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# ansible
|
||||||
|
&& pip install --upgrade setuptools \
|
||||||
|
&& pip install ansible \
|
||||||
|
\
|
||||||
# awesomeci
|
# awesomeci
|
||||||
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
||||||
&& cd /usr/local/src/awesome-ci \
|
&& cd /usr/local/src/awesome-ci \
|
||||||
@@ -112,6 +123,10 @@ RUN set -x \
|
|||||||
&& npm install -g mdlint \
|
&& npm install -g mdlint \
|
||||||
&& npm install -g gulp \
|
&& npm install -g gulp \
|
||||||
\
|
\
|
||||||
|
# codeception
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require codeception/codeception --dev \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/codeception/codeception/codecept /usr/local/bin/codecept \
|
||||||
|
\
|
||||||
# drush
|
# drush
|
||||||
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
||||||
&& cd /usr/local/src/drush \
|
&& cd /usr/local/src/drush \
|
||||||
@@ -147,18 +162,27 @@ RUN set -x \
|
|||||||
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
||||||
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
||||||
\
|
\
|
||||||
|
# linkcheck
|
||||||
|
&& curl https://raw.githubusercontent.com/cytopia/linkcheck/master/linkcheck > /usr/local/bin/linkcheck \
|
||||||
|
&& chmod +x /usr/local/bin/linkcheck \
|
||||||
|
\
|
||||||
# linuxbrew
|
# linuxbrew
|
||||||
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
||||||
\
|
\
|
||||||
|
# mhsendmail
|
||||||
|
&& wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 \
|
||||||
|
&& chmod +x mhsendmail_linux_amd64 \
|
||||||
|
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmai \
|
||||||
|
\
|
||||||
# mysqldumpsecure
|
# mysqldumpsecure
|
||||||
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
||||||
&& cd /usr/local/src/mysqldump-secure \
|
&& cd /usr/local/src/mysqldump-secure \
|
||||||
@@ -200,6 +224,14 @@ RUN set -x \
|
|||||||
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
||||||
&& chmod +x /usr/local/bin/phpcbf \
|
&& chmod +x /usr/local/bin/phpcbf \
|
||||||
\
|
\
|
||||||
|
# phpunit
|
||||||
|
&& curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
\
|
||||||
|
# photon
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
|
||||||
|
\
|
||||||
# sass
|
# sass
|
||||||
&& gem install sass \
|
&& gem install sass \
|
||||||
# symfony
|
# symfony
|
||||||
@@ -269,6 +301,7 @@ RUN set -x \
|
|||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
||||||
|
&& ansible --version | grep -E '^ansible [.0-9]+$' \
|
||||||
&& mdl --version | grep -E '[.0-9]+' \
|
&& mdl --version | grep -E '[.0-9]+' \
|
||||||
&& scss-lint --version | grep -E '[.0-9]+' \
|
&& scss-lint --version | grep -E '[.0-9]+' \
|
||||||
&& eslint -v | grep -E '[.0-9]+' \
|
&& eslint -v | grep -E '[.0-9]+' \
|
||||||
@@ -276,16 +309,20 @@ RUN set -x \
|
|||||||
&& mdlint --version | grep -E '[.0-9]+' \
|
&& mdlint --version | grep -E '[.0-9]+' \
|
||||||
&& gulp --version | grep -E '[.0-9]+' \
|
&& gulp --version | grep -E '[.0-9]+' \
|
||||||
\
|
\
|
||||||
|
&& codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$' \
|
||||||
&& drush --version | grep -E '[.0-9]+' \
|
&& drush --version | grep -E '[.0-9]+' \
|
||||||
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
||||||
&& git-flow version | grep -E '[.0-9]+' \
|
&& git-flow version | grep -E '[.0-9]+' \
|
||||||
&& grunt --version | grep -E '[.0-9]+' \
|
&& grunt --version | grep -E '[.0-9]+' \
|
||||||
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
||||||
|
&& linkcheck --version | grep -E '^linkcheck\sv[.0-9]+' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
||||||
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
||||||
&& phalcon commands | grep -E '[.0-9]+' \
|
&& phalcon commands | grep -E '[.0-9]+' \
|
||||||
&& phpcs --version | grep -E 'version [.0-9]+' \
|
&& phpcs --version | grep -E 'version [.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
||||||
|
&& phpunit --version | grep -iE '^PHPUnit\s[.0-9]+' \
|
||||||
|
&& photon --version | grep -E 'Installer [.0-9]+' \
|
||||||
&& sass --version | grep -E '[.0-9]+' \
|
&& sass --version | grep -E '[.0-9]+' \
|
||||||
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
||||||
&& webpack --version | grep -E '[.0-9]+' \
|
&& webpack --version | grep -E '[.0-9]+' \
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ RUN set -x \
|
|||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl \
|
curl \
|
||||||
@@ -62,6 +63,8 @@ RUN set -x \
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
less \
|
less \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
|
libffi-dev\
|
||||||
|
libssl-dev\
|
||||||
make \
|
make \
|
||||||
mongodb-org-shell \
|
mongodb-org-shell \
|
||||||
mongodb-org-tools \
|
mongodb-org-tools \
|
||||||
@@ -72,8 +75,12 @@ RUN set -x \
|
|||||||
netcat \
|
netcat \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
patch \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
python-cffi \
|
||||||
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python-wheel \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
rubygems \
|
rubygems \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
@@ -95,6 +102,10 @@ RUN set -x \
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
# composer
|
# composer
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# ansible
|
||||||
|
&& pip install --upgrade setuptools \
|
||||||
|
&& pip install ansible \
|
||||||
|
\
|
||||||
# awesomeci
|
# awesomeci
|
||||||
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
||||||
&& cd /usr/local/src/awesome-ci \
|
&& cd /usr/local/src/awesome-ci \
|
||||||
@@ -112,6 +123,10 @@ RUN set -x \
|
|||||||
&& npm install -g mdlint \
|
&& npm install -g mdlint \
|
||||||
&& npm install -g gulp \
|
&& npm install -g gulp \
|
||||||
\
|
\
|
||||||
|
# codeception
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require codeception/codeception --dev \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/codeception/codeception/codecept /usr/local/bin/codecept \
|
||||||
|
\
|
||||||
# drush
|
# drush
|
||||||
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
||||||
&& cd /usr/local/src/drush \
|
&& cd /usr/local/src/drush \
|
||||||
@@ -147,18 +162,27 @@ RUN set -x \
|
|||||||
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
||||||
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
||||||
\
|
\
|
||||||
|
# linkcheck
|
||||||
|
&& curl https://raw.githubusercontent.com/cytopia/linkcheck/master/linkcheck > /usr/local/bin/linkcheck \
|
||||||
|
&& chmod +x /usr/local/bin/linkcheck \
|
||||||
|
\
|
||||||
# linuxbrew
|
# linuxbrew
|
||||||
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
||||||
\
|
\
|
||||||
|
# mhsendmail
|
||||||
|
&& wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 \
|
||||||
|
&& chmod +x mhsendmail_linux_amd64 \
|
||||||
|
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmai \
|
||||||
|
\
|
||||||
# mysqldumpsecure
|
# mysqldumpsecure
|
||||||
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
||||||
&& cd /usr/local/src/mysqldump-secure \
|
&& cd /usr/local/src/mysqldump-secure \
|
||||||
@@ -200,6 +224,14 @@ RUN set -x \
|
|||||||
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
||||||
&& chmod +x /usr/local/bin/phpcbf \
|
&& chmod +x /usr/local/bin/phpcbf \
|
||||||
\
|
\
|
||||||
|
# phpunit
|
||||||
|
&& curl -qL https://phar.phpunit.de/phpunit-5.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
\
|
||||||
|
# photon
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
|
||||||
|
\
|
||||||
# sass
|
# sass
|
||||||
&& gem install sass \
|
&& gem install sass \
|
||||||
# symfony
|
# symfony
|
||||||
@@ -269,6 +301,7 @@ RUN set -x \
|
|||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
||||||
|
&& ansible --version | grep -E '^ansible [.0-9]+$' \
|
||||||
&& mdl --version | grep -E '[.0-9]+' \
|
&& mdl --version | grep -E '[.0-9]+' \
|
||||||
&& scss-lint --version | grep -E '[.0-9]+' \
|
&& scss-lint --version | grep -E '[.0-9]+' \
|
||||||
&& eslint -v | grep -E '[.0-9]+' \
|
&& eslint -v | grep -E '[.0-9]+' \
|
||||||
@@ -276,16 +309,20 @@ RUN set -x \
|
|||||||
&& mdlint --version | grep -E '[.0-9]+' \
|
&& mdlint --version | grep -E '[.0-9]+' \
|
||||||
&& gulp --version | grep -E '[.0-9]+' \
|
&& gulp --version | grep -E '[.0-9]+' \
|
||||||
\
|
\
|
||||||
|
&& codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$' \
|
||||||
&& drush --version | grep -E '[.0-9]+' \
|
&& drush --version | grep -E '[.0-9]+' \
|
||||||
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
||||||
&& git-flow version | grep -E '[.0-9]+' \
|
&& git-flow version | grep -E '[.0-9]+' \
|
||||||
&& grunt --version | grep -E '[.0-9]+' \
|
&& grunt --version | grep -E '[.0-9]+' \
|
||||||
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
||||||
|
&& linkcheck --version | grep -E '^linkcheck\sv[.0-9]+' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
||||||
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
||||||
&& phalcon commands | grep -E '[.0-9]+' \
|
&& phalcon commands | grep -E '[.0-9]+' \
|
||||||
&& phpcs --version | grep -E 'version [.0-9]+' \
|
&& phpcs --version | grep -E 'version [.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
||||||
|
&& phpunit --version | grep -iE '^PHPUnit\s[.0-9]+' \
|
||||||
|
&& photon --version | grep -E 'Installer [.0-9]+' \
|
||||||
&& sass --version | grep -E '[.0-9]+' \
|
&& sass --version | grep -E '[.0-9]+' \
|
||||||
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
||||||
&& webpack --version | grep -E '[.0-9]+' \
|
&& webpack --version | grep -E '[.0-9]+' \
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ RUN set -x \
|
|||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl \
|
curl \
|
||||||
@@ -62,6 +63,8 @@ RUN set -x \
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
less \
|
less \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
|
libffi-dev\
|
||||||
|
libssl-dev\
|
||||||
make \
|
make \
|
||||||
mongodb-org-shell \
|
mongodb-org-shell \
|
||||||
mongodb-org-tools \
|
mongodb-org-tools \
|
||||||
@@ -72,8 +75,12 @@ RUN set -x \
|
|||||||
netcat \
|
netcat \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
patch \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
python-cffi \
|
||||||
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python-wheel \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
rubygems \
|
rubygems \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
@@ -95,6 +102,10 @@ RUN set -x \
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
# composer
|
# composer
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# ansible
|
||||||
|
&& pip install --upgrade setuptools \
|
||||||
|
&& pip install ansible \
|
||||||
|
\
|
||||||
# awesomeci
|
# awesomeci
|
||||||
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
||||||
&& cd /usr/local/src/awesome-ci \
|
&& cd /usr/local/src/awesome-ci \
|
||||||
@@ -112,6 +123,10 @@ RUN set -x \
|
|||||||
&& npm install -g mdlint \
|
&& npm install -g mdlint \
|
||||||
&& npm install -g gulp \
|
&& npm install -g gulp \
|
||||||
\
|
\
|
||||||
|
# codeception
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require codeception/codeception --dev \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/codeception/codeception/codecept /usr/local/bin/codecept \
|
||||||
|
\
|
||||||
# drush
|
# drush
|
||||||
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
||||||
&& cd /usr/local/src/drush \
|
&& cd /usr/local/src/drush \
|
||||||
@@ -147,18 +162,27 @@ RUN set -x \
|
|||||||
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
||||||
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
||||||
\
|
\
|
||||||
|
# linkcheck
|
||||||
|
&& curl https://raw.githubusercontent.com/cytopia/linkcheck/master/linkcheck > /usr/local/bin/linkcheck \
|
||||||
|
&& chmod +x /usr/local/bin/linkcheck \
|
||||||
|
\
|
||||||
# linuxbrew
|
# linuxbrew
|
||||||
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
||||||
\
|
\
|
||||||
|
# mhsendmail
|
||||||
|
&& wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 \
|
||||||
|
&& chmod +x mhsendmail_linux_amd64 \
|
||||||
|
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmai \
|
||||||
|
\
|
||||||
# mysqldumpsecure
|
# mysqldumpsecure
|
||||||
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
||||||
&& cd /usr/local/src/mysqldump-secure \
|
&& cd /usr/local/src/mysqldump-secure \
|
||||||
@@ -200,6 +224,14 @@ RUN set -x \
|
|||||||
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
||||||
&& chmod +x /usr/local/bin/phpcbf \
|
&& chmod +x /usr/local/bin/phpcbf \
|
||||||
\
|
\
|
||||||
|
# phpunit
|
||||||
|
&& curl -qL https://phar.phpunit.de/phpunit-6.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
\
|
||||||
|
# photon
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
|
||||||
|
\
|
||||||
# sass
|
# sass
|
||||||
&& gem install sass \
|
&& gem install sass \
|
||||||
# symfony
|
# symfony
|
||||||
@@ -269,6 +301,7 @@ RUN set -x \
|
|||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
||||||
|
&& ansible --version | grep -E '^ansible [.0-9]+$' \
|
||||||
&& mdl --version | grep -E '[.0-9]+' \
|
&& mdl --version | grep -E '[.0-9]+' \
|
||||||
&& scss-lint --version | grep -E '[.0-9]+' \
|
&& scss-lint --version | grep -E '[.0-9]+' \
|
||||||
&& eslint -v | grep -E '[.0-9]+' \
|
&& eslint -v | grep -E '[.0-9]+' \
|
||||||
@@ -276,16 +309,20 @@ RUN set -x \
|
|||||||
&& mdlint --version | grep -E '[.0-9]+' \
|
&& mdlint --version | grep -E '[.0-9]+' \
|
||||||
&& gulp --version | grep -E '[.0-9]+' \
|
&& gulp --version | grep -E '[.0-9]+' \
|
||||||
\
|
\
|
||||||
|
&& codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$' \
|
||||||
&& drush --version | grep -E '[.0-9]+' \
|
&& drush --version | grep -E '[.0-9]+' \
|
||||||
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
||||||
&& git-flow version | grep -E '[.0-9]+' \
|
&& git-flow version | grep -E '[.0-9]+' \
|
||||||
&& grunt --version | grep -E '[.0-9]+' \
|
&& grunt --version | grep -E '[.0-9]+' \
|
||||||
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
||||||
|
&& linkcheck --version | grep -E '^linkcheck\sv[.0-9]+' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
||||||
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
||||||
&& phalcon commands | grep -E '[.0-9]+' \
|
&& phalcon commands | grep -E '[.0-9]+' \
|
||||||
&& phpcs --version | grep -E 'version [.0-9]+' \
|
&& phpcs --version | grep -E 'version [.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
||||||
|
&& phpunit --version | grep -iE '^PHPUnit\s[.0-9]+' \
|
||||||
|
&& photon --version | grep -E 'Installer [.0-9]+' \
|
||||||
&& sass --version | grep -E '[.0-9]+' \
|
&& sass --version | grep -E '[.0-9]+' \
|
||||||
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
||||||
&& webpack --version | grep -E '[.0-9]+' \
|
&& webpack --version | grep -E '[.0-9]+' \
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ RUN set -x \
|
|||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl \
|
curl \
|
||||||
@@ -62,6 +63,8 @@ RUN set -x \
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
less \
|
less \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
|
libffi-dev\
|
||||||
|
libssl-dev\
|
||||||
make \
|
make \
|
||||||
mongodb-org-shell \
|
mongodb-org-shell \
|
||||||
mongodb-org-tools \
|
mongodb-org-tools \
|
||||||
@@ -72,8 +75,12 @@ RUN set -x \
|
|||||||
netcat \
|
netcat \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
patch \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
python-cffi \
|
||||||
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python-wheel \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
rubygems \
|
rubygems \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
@@ -95,6 +102,10 @@ RUN set -x \
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
# composer
|
# composer
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# ansible
|
||||||
|
&& pip install --upgrade setuptools \
|
||||||
|
&& pip install ansible \
|
||||||
|
\
|
||||||
# awesomeci
|
# awesomeci
|
||||||
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
||||||
&& cd /usr/local/src/awesome-ci \
|
&& cd /usr/local/src/awesome-ci \
|
||||||
@@ -112,6 +123,10 @@ RUN set -x \
|
|||||||
&& npm install -g mdlint \
|
&& npm install -g mdlint \
|
||||||
&& npm install -g gulp \
|
&& npm install -g gulp \
|
||||||
\
|
\
|
||||||
|
# codeception
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require codeception/codeception --dev \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/codeception/codeception/codecept /usr/local/bin/codecept \
|
||||||
|
\
|
||||||
# drush
|
# drush
|
||||||
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
||||||
&& cd /usr/local/src/drush \
|
&& cd /usr/local/src/drush \
|
||||||
@@ -147,18 +162,27 @@ RUN set -x \
|
|||||||
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
||||||
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
||||||
\
|
\
|
||||||
|
# linkcheck
|
||||||
|
&& curl https://raw.githubusercontent.com/cytopia/linkcheck/master/linkcheck > /usr/local/bin/linkcheck \
|
||||||
|
&& chmod +x /usr/local/bin/linkcheck \
|
||||||
|
\
|
||||||
# linuxbrew
|
# linuxbrew
|
||||||
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
||||||
\
|
\
|
||||||
|
# mhsendmail
|
||||||
|
&& wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 \
|
||||||
|
&& chmod +x mhsendmail_linux_amd64 \
|
||||||
|
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmai \
|
||||||
|
\
|
||||||
# mysqldumpsecure
|
# mysqldumpsecure
|
||||||
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
||||||
&& cd /usr/local/src/mysqldump-secure \
|
&& cd /usr/local/src/mysqldump-secure \
|
||||||
@@ -200,6 +224,14 @@ RUN set -x \
|
|||||||
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
||||||
&& chmod +x /usr/local/bin/phpcbf \
|
&& chmod +x /usr/local/bin/phpcbf \
|
||||||
\
|
\
|
||||||
|
# phpunit
|
||||||
|
&& curl -qL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
\
|
||||||
|
# photon
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
|
||||||
|
\
|
||||||
# sass
|
# sass
|
||||||
&& gem install sass \
|
&& gem install sass \
|
||||||
# symfony
|
# symfony
|
||||||
@@ -269,6 +301,7 @@ RUN set -x \
|
|||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
||||||
|
&& ansible --version | grep -E '^ansible [.0-9]+$' \
|
||||||
&& mdl --version | grep -E '[.0-9]+' \
|
&& mdl --version | grep -E '[.0-9]+' \
|
||||||
&& scss-lint --version | grep -E '[.0-9]+' \
|
&& scss-lint --version | grep -E '[.0-9]+' \
|
||||||
&& eslint -v | grep -E '[.0-9]+' \
|
&& eslint -v | grep -E '[.0-9]+' \
|
||||||
@@ -276,16 +309,20 @@ RUN set -x \
|
|||||||
&& mdlint --version | grep -E '[.0-9]+' \
|
&& mdlint --version | grep -E '[.0-9]+' \
|
||||||
&& gulp --version | grep -E '[.0-9]+' \
|
&& gulp --version | grep -E '[.0-9]+' \
|
||||||
\
|
\
|
||||||
|
&& codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$' \
|
||||||
&& drush --version | grep -E '[.0-9]+' \
|
&& drush --version | grep -E '[.0-9]+' \
|
||||||
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
||||||
&& git-flow version | grep -E '[.0-9]+' \
|
&& git-flow version | grep -E '[.0-9]+' \
|
||||||
&& grunt --version | grep -E '[.0-9]+' \
|
&& grunt --version | grep -E '[.0-9]+' \
|
||||||
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
||||||
|
&& linkcheck --version | grep -E '^linkcheck\sv[.0-9]+' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
||||||
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
||||||
&& phalcon commands | grep -E '[.0-9]+' \
|
&& phalcon commands | grep -E '[.0-9]+' \
|
||||||
&& phpcs --version | grep -E 'version [.0-9]+' \
|
&& phpcs --version | grep -E 'version [.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
||||||
|
&& phpunit --version | grep -iE '^PHPUnit\s[.0-9]+' \
|
||||||
|
&& photon --version | grep -E 'Installer [.0-9]+' \
|
||||||
&& sass --version | grep -E '[.0-9]+' \
|
&& sass --version | grep -E '[.0-9]+' \
|
||||||
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
||||||
&& webpack --version | grep -E '[.0-9]+' \
|
&& webpack --version | grep -E '[.0-9]+' \
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ RUN set -x \
|
|||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl \
|
curl \
|
||||||
@@ -62,6 +63,8 @@ RUN set -x \
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
less \
|
less \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
|
libffi-dev\
|
||||||
|
libssl-dev\
|
||||||
make \
|
make \
|
||||||
mongodb-org-shell \
|
mongodb-org-shell \
|
||||||
mongodb-org-tools \
|
mongodb-org-tools \
|
||||||
@@ -72,8 +75,12 @@ RUN set -x \
|
|||||||
netcat \
|
netcat \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
patch \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
python-cffi \
|
||||||
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python-wheel \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
rubygems \
|
rubygems \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
@@ -95,6 +102,10 @@ RUN set -x \
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
# composer
|
# composer
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# ansible
|
||||||
|
&& pip install --upgrade setuptools \
|
||||||
|
&& pip install ansible \
|
||||||
|
\
|
||||||
# awesomeci
|
# awesomeci
|
||||||
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
||||||
&& cd /usr/local/src/awesome-ci \
|
&& cd /usr/local/src/awesome-ci \
|
||||||
@@ -112,6 +123,10 @@ RUN set -x \
|
|||||||
&& npm install -g mdlint \
|
&& npm install -g mdlint \
|
||||||
&& npm install -g gulp \
|
&& npm install -g gulp \
|
||||||
\
|
\
|
||||||
|
# codeception
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require codeception/codeception --dev \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/codeception/codeception/codecept /usr/local/bin/codecept \
|
||||||
|
\
|
||||||
# drush
|
# drush
|
||||||
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
||||||
&& cd /usr/local/src/drush \
|
&& cd /usr/local/src/drush \
|
||||||
@@ -147,18 +162,27 @@ RUN set -x \
|
|||||||
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
||||||
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
||||||
\
|
\
|
||||||
|
# linkcheck
|
||||||
|
&& curl https://raw.githubusercontent.com/cytopia/linkcheck/master/linkcheck > /usr/local/bin/linkcheck \
|
||||||
|
&& chmod +x /usr/local/bin/linkcheck \
|
||||||
|
\
|
||||||
# linuxbrew
|
# linuxbrew
|
||||||
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
||||||
\
|
\
|
||||||
|
# mhsendmail
|
||||||
|
&& wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 \
|
||||||
|
&& chmod +x mhsendmail_linux_amd64 \
|
||||||
|
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmai \
|
||||||
|
\
|
||||||
# mysqldumpsecure
|
# mysqldumpsecure
|
||||||
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
||||||
&& cd /usr/local/src/mysqldump-secure \
|
&& cd /usr/local/src/mysqldump-secure \
|
||||||
@@ -200,6 +224,14 @@ RUN set -x \
|
|||||||
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
||||||
&& chmod +x /usr/local/bin/phpcbf \
|
&& chmod +x /usr/local/bin/phpcbf \
|
||||||
\
|
\
|
||||||
|
# phpunit
|
||||||
|
&& curl -qL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
\
|
||||||
|
# photon
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
|
||||||
|
\
|
||||||
# sass
|
# sass
|
||||||
&& gem install sass \
|
&& gem install sass \
|
||||||
# symfony
|
# symfony
|
||||||
@@ -269,6 +301,7 @@ RUN set -x \
|
|||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
||||||
|
&& ansible --version | grep -E '^ansible [.0-9]+$' \
|
||||||
&& mdl --version | grep -E '[.0-9]+' \
|
&& mdl --version | grep -E '[.0-9]+' \
|
||||||
&& scss-lint --version | grep -E '[.0-9]+' \
|
&& scss-lint --version | grep -E '[.0-9]+' \
|
||||||
&& eslint -v | grep -E '[.0-9]+' \
|
&& eslint -v | grep -E '[.0-9]+' \
|
||||||
@@ -276,16 +309,20 @@ RUN set -x \
|
|||||||
&& mdlint --version | grep -E '[.0-9]+' \
|
&& mdlint --version | grep -E '[.0-9]+' \
|
||||||
&& gulp --version | grep -E '[.0-9]+' \
|
&& gulp --version | grep -E '[.0-9]+' \
|
||||||
\
|
\
|
||||||
|
&& codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$' \
|
||||||
&& drush --version | grep -E '[.0-9]+' \
|
&& drush --version | grep -E '[.0-9]+' \
|
||||||
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
||||||
&& git-flow version | grep -E '[.0-9]+' \
|
&& git-flow version | grep -E '[.0-9]+' \
|
||||||
&& grunt --version | grep -E '[.0-9]+' \
|
&& grunt --version | grep -E '[.0-9]+' \
|
||||||
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
||||||
|
&& linkcheck --version | grep -E '^linkcheck\sv[.0-9]+' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
||||||
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
||||||
&& phalcon commands | grep -E '[.0-9]+' \
|
&& phalcon commands | grep -E '[.0-9]+' \
|
||||||
&& phpcs --version | grep -E 'version [.0-9]+' \
|
&& phpcs --version | grep -E 'version [.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
||||||
|
&& phpunit --version | grep -iE '^PHPUnit\s[.0-9]+' \
|
||||||
|
&& photon --version | grep -E 'Installer [.0-9]+' \
|
||||||
&& sass --version | grep -E '[.0-9]+' \
|
&& sass --version | grep -E '[.0-9]+' \
|
||||||
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
||||||
&& webpack --version | grep -E '[.0-9]+' \
|
&& webpack --version | grep -E '[.0-9]+' \
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ RUN set -x \
|
|||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl \
|
curl \
|
||||||
@@ -62,6 +63,8 @@ RUN set -x \
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
less \
|
less \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
|
libffi-dev\
|
||||||
|
libssl-dev\
|
||||||
make \
|
make \
|
||||||
mongodb-org-shell \
|
mongodb-org-shell \
|
||||||
mongodb-org-tools \
|
mongodb-org-tools \
|
||||||
@@ -72,8 +75,12 @@ RUN set -x \
|
|||||||
netcat \
|
netcat \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
patch \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
python-cffi \
|
||||||
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python-wheel \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
rubygems \
|
rubygems \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
@@ -95,6 +102,10 @@ RUN set -x \
|
|||||||
RUN set -x \
|
RUN set -x \
|
||||||
# composer
|
# composer
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# ansible
|
||||||
|
&& pip install --upgrade setuptools \
|
||||||
|
&& pip install ansible \
|
||||||
|
\
|
||||||
# awesomeci
|
# awesomeci
|
||||||
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
&& git clone https://github.com/cytopia/awesome-ci.git /usr/local/src/awesome-ci \
|
||||||
&& cd /usr/local/src/awesome-ci \
|
&& cd /usr/local/src/awesome-ci \
|
||||||
@@ -112,6 +123,10 @@ RUN set -x \
|
|||||||
&& npm install -g mdlint \
|
&& npm install -g mdlint \
|
||||||
&& npm install -g gulp \
|
&& npm install -g gulp \
|
||||||
\
|
\
|
||||||
|
# codeception
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require codeception/codeception --dev \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/codeception/codeception/codecept /usr/local/bin/codecept \
|
||||||
|
\
|
||||||
# drush
|
# drush
|
||||||
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
&& git clone https://github.com/drush-ops/drush.git /usr/local/src/drush \
|
||||||
&& cd /usr/local/src/drush \
|
&& cd /usr/local/src/drush \
|
||||||
@@ -147,18 +162,27 @@ RUN set -x \
|
|||||||
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
||||||
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
||||||
\
|
\
|
||||||
|
# linkcheck
|
||||||
|
&& curl https://raw.githubusercontent.com/cytopia/linkcheck/master/linkcheck > /usr/local/bin/linkcheck \
|
||||||
|
&& chmod +x /usr/local/bin/linkcheck \
|
||||||
|
\
|
||||||
# linuxbrew
|
# linuxbrew
|
||||||
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
&& git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
||||||
\
|
\
|
||||||
|
# mhsendmail
|
||||||
|
&& wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 \
|
||||||
|
&& chmod +x mhsendmail_linux_amd64 \
|
||||||
|
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmai \
|
||||||
|
\
|
||||||
# mysqldumpsecure
|
# mysqldumpsecure
|
||||||
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
&& git clone https://github.com/cytopia/mysqldump-secure.git /usr/local/src/mysqldump-secure \
|
||||||
&& cd /usr/local/src/mysqldump-secure \
|
&& cd /usr/local/src/mysqldump-secure \
|
||||||
@@ -189,6 +213,14 @@ RUN set -x \
|
|||||||
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
&& curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
||||||
&& chmod +x /usr/local/bin/phpcbf \
|
&& chmod +x /usr/local/bin/phpcbf \
|
||||||
\
|
\
|
||||||
|
# phpunit
|
||||||
|
&& curl -qL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
\
|
||||||
|
# photon
|
||||||
|
&& COMPOSER_HOME="/usr/local/src/composer" composer global require "photoncms/installer" \
|
||||||
|
&& ln -s /usr/local/src/composer/vendor/photoncms/installer/photon /usr/local/bin/photon \
|
||||||
|
\
|
||||||
# sass
|
# sass
|
||||||
&& gem install sass \
|
&& gem install sass \
|
||||||
# symfony
|
# symfony
|
||||||
@@ -258,6 +290,7 @@ RUN set -x \
|
|||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
&& composer --version 2>/dev/null | grep -E 'version\s*[.0-9]+' \
|
||||||
|
&& ansible --version | grep -E '^ansible [.0-9]+$' \
|
||||||
&& mdl --version | grep -E '[.0-9]+' \
|
&& mdl --version | grep -E '[.0-9]+' \
|
||||||
&& scss-lint --version | grep -E '[.0-9]+' \
|
&& scss-lint --version | grep -E '[.0-9]+' \
|
||||||
&& eslint -v | grep -E '[.0-9]+' \
|
&& eslint -v | grep -E '[.0-9]+' \
|
||||||
@@ -265,15 +298,19 @@ RUN set -x \
|
|||||||
&& mdlint --version | grep -E '[.0-9]+' \
|
&& mdlint --version | grep -E '[.0-9]+' \
|
||||||
&& gulp --version | grep -E '[.0-9]+' \
|
&& gulp --version | grep -E '[.0-9]+' \
|
||||||
\
|
\
|
||||||
|
&& codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$' \
|
||||||
&& drush --version | grep -E '[.0-9]+' \
|
&& drush --version | grep -E '[.0-9]+' \
|
||||||
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
&& drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]' \
|
||||||
&& git-flow version | grep -E '[.0-9]+' \
|
&& git-flow version | grep -E '[.0-9]+' \
|
||||||
&& grunt --version | grep -E '[.0-9]+' \
|
&& grunt --version | grep -E '[.0-9]+' \
|
||||||
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
&& laravel --version | grep -E '(Installer|version)\s*[.0-9]+' \
|
||||||
|
&& linkcheck --version | grep -E '^linkcheck\sv[.0-9]+' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+' \
|
||||||
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
&& mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+' \
|
||||||
&& phpcs --version | grep -E 'version [.0-9]+' \
|
&& phpcs --version | grep -E 'version [.0-9]+' \
|
||||||
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
&& phpcbf --version | grep -E 'version [.0-9]+' \
|
||||||
|
&& phpunit --version | grep -iE '^PHPUnit\s[.0-9]+' \
|
||||||
|
&& photon --version | grep -E 'Installer [.0-9]+' \
|
||||||
&& sass --version | grep -E '[.0-9]+' \
|
&& sass --version | grep -E '[.0-9]+' \
|
||||||
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
&& symfony --version | grep -E 'version\s*[.0-9]+' \
|
||||||
&& webpack --version | grep -E '[.0-9]+' \
|
&& webpack --version | grep -E '[.0-9]+' \
|
||||||
|
|||||||
26
Dockerfiles/work/data/docker-entrypoint.d/41-update-ca-certificates.sh
Executable file
26
Dockerfiles/work/data/docker-entrypoint.d/41-update-ca-certificates.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
|
||||||
|
############################################################
|
||||||
|
# Functions
|
||||||
|
############################################################
|
||||||
|
|
||||||
|
###
|
||||||
|
### Include certificates/CAs into own system
|
||||||
|
###
|
||||||
|
update_ca_certificates() {
|
||||||
|
local dir="${1}"
|
||||||
|
local debug="${2}"
|
||||||
|
|
||||||
|
if [ -d "${dir}" ]; then
|
||||||
|
for cert in $( find "${dir}" -name \*.crt ); do
|
||||||
|
name="$( basename "${cert}" )"
|
||||||
|
run "cp ${cert} /usr/local/share/ca-certificates/devilbox-${name}" "${debug}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
run "update-ca-certificates" "${debug}"
|
||||||
|
}
|
||||||
@@ -160,6 +160,18 @@ copy_ini_files "${PHP_CUST_INI_DIR}" "${PHP_INI_DIR}" "${DEBUG_LEVEL}"
|
|||||||
copy_fpm_files "${PHP_CUST_FPM_DIR}" "${PHP_FPM_DIR}" "${DEBUG_LEVEL}"
|
copy_fpm_files "${PHP_CUST_FPM_DIR}" "${PHP_FPM_DIR}" "${DEBUG_LEVEL}"
|
||||||
|
|
||||||
|
|
||||||
|
###
|
||||||
|
### Enable PHP Modules
|
||||||
|
###
|
||||||
|
enable_modules "ENABLE_MODULES" "${DEBUG_LEVEL}"
|
||||||
|
|
||||||
|
|
||||||
|
###
|
||||||
|
### Disable PHP Modules
|
||||||
|
###
|
||||||
|
disable_modules "DISABLE_MODULES" "${DEBUG_LEVEL}"
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### mysqldump-secure
|
### mysqldump-secure
|
||||||
###
|
###
|
||||||
@@ -182,6 +194,12 @@ run "chmod 0755 /shared/backups" "${DEBUG_LEVEL}"
|
|||||||
run "chmod 0755 /shared/httpd" "${DEBUG_LEVEL}"
|
run "chmod 0755 /shared/httpd" "${DEBUG_LEVEL}"
|
||||||
|
|
||||||
|
|
||||||
|
###
|
||||||
|
### Update ca-certificates
|
||||||
|
###
|
||||||
|
update_ca_certificates "/ca" "${DEBUG_LEVEL}"
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Startup
|
### Startup
|
||||||
###
|
###
|
||||||
|
|||||||
24
README.md
24
README.md
@@ -610,7 +610,7 @@ Have a look at the following table to see all supported environment variables fo
|
|||||||
<td colspan="5"></td>
|
<td colspan="5"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="4"><strong>prod</strong><br/><br/><strong>work</strong></td>
|
<td rowspan="6"><strong>prod</strong><br/><br/><strong>work</strong></td>
|
||||||
<td><code>TIMEZONE</code></td>
|
<td><code>TIMEZONE</code></td>
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td><code>UTC</code></td>
|
<td><code>UTC</code></td>
|
||||||
@@ -622,6 +622,18 @@ Have a look at the following table to see all supported environment variables fo
|
|||||||
<td><code>1</code></td>
|
<td><code>1</code></td>
|
||||||
<td>By default all Docker images are configured to output their PHP-FPM access and error logs to stdout and stderr. Those which support it can change the behaviour to log into files inside the container. Their respective directories are available as volumes that can be mounted to the host computer. This feature might help developer who are more comfortable with tailing or searching through actual files instead of using docker logs.<br/><br/>Set this variable to <code>0</code> in order to enable logging to files. Log files are avilable under <code>/var/log/php/</code> which is also a docker volume that can be mounted locally.</td>
|
<td>By default all Docker images are configured to output their PHP-FPM access and error logs to stdout and stderr. Those which support it can change the behaviour to log into files inside the container. Their respective directories are available as volumes that can be mounted to the host computer. This feature might help developer who are more comfortable with tailing or searching through actual files instead of using docker logs.<br/><br/>Set this variable to <code>0</code> in order to enable logging to files. Log files are avilable under <code>/var/log/php/</code> which is also a docker volume that can be mounted locally.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>ENABLE_MODULES</code></td>
|
||||||
|
<td>string</td>
|
||||||
|
<td><code>''</code></td>
|
||||||
|
<td>Comma separated list of PHP modules to enable, which are not enabled by default.<br/><strong>Example:</strong><br/><code>ENABLE_MODULES=ioncube</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>DISABLE_MODULES</code></td>
|
||||||
|
<td>string</td>
|
||||||
|
<td><code>''</code></td>
|
||||||
|
<td>Comma separated list of PHP modules to disable.<br/><strong>Example:</strong><br/><code>DISABLE_MODULES=swoole,imagick</code></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>ENABLE_MAIL</code></td>
|
<td><code>ENABLE_MAIL</code></td>
|
||||||
<td>bool</td>
|
<td>bool</td>
|
||||||
@@ -697,7 +709,7 @@ Have a look at the following table to see all offered volumes for each Docker im
|
|||||||
<td colspan="3"></td>
|
<td colspan="3"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="2"><strong>work</strong></td>
|
<td rowspan="3"><strong>work</strong></td>
|
||||||
<td><code>/etc/bashrc-devilbox.d</code></td>
|
<td><code>/etc/bashrc-devilbox.d</code></td>
|
||||||
<td>Mount this directory into your host computer and add custom configuration files for <code>bash</code> and other tools.</td>
|
<td>Mount this directory into your host computer and add custom configuration files for <code>bash</code> and other tools.</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -705,6 +717,10 @@ Have a look at the following table to see all offered volumes for each Docker im
|
|||||||
<td><code>/shared/backups</code></td>
|
<td><code>/shared/backups</code></td>
|
||||||
<td>Mount this directory into your host computer to access MySQL backups created by <a href="https://mysqldump-secure.org" >mysqldump-secure</a>.</td>
|
<td>Mount this directory into your host computer to access MySQL backups created by <a href="https://mysqldump-secure.org" >mysqldump-secure</a>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>/ca</code></td>
|
||||||
|
<td>Mount this directory into your host computer to bake any *.crt file that is located in there as a trusted SSL entity.</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@@ -830,6 +846,10 @@ You want to use tools such as `git`, `drush`, `composer`, `npm`, `eslint`, `phpc
|
|||||||
<td><a href="https://github.com/squizlabs/PHP_CodeSniffer">phpcbf</a></td>
|
<td><a href="https://github.com/squizlabs/PHP_CodeSniffer">phpcbf</a></td>
|
||||||
<td>PHP Code Beautifier and Fixer.</td>
|
<td>PHP Code Beautifier and Fixer.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><a href="https://photoncms.com/resources/installing">photon</a></td>
|
||||||
|
<td>Photon CMS cli.</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="http://sass-lang.com/">sass</a></td>
|
<td><a href="http://sass-lang.com/">sass</a></td>
|
||||||
<td>Sass CSS compiler.</td>
|
<td>Sass CSS compiler.</td>
|
||||||
|
|||||||
@@ -113,6 +113,9 @@ RUN set -x \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
&& docker-php-ext-enable {{ ext }} \
|
&& docker-php-ext-enable {{ ext }} \
|
||||||
&& cd / && rm -rf /tmp/{{ ext }} \
|
&& cd / && rm -rf /tmp/{{ ext }} \
|
||||||
|
{# ---- 4.) CUSTOM ---- #}
|
||||||
|
{% elif extensions_available[ext][php_version]['type'] == 'custom' %}
|
||||||
|
&& {{ extensions_available[ext][php_version]['command'] }} \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# ---------- Installation (generic) ---------- #}
|
{# ---------- Installation (generic) ---------- #}
|
||||||
{% elif 'all' in extensions_available[ext] and 'type' in extensions_available[ext]['all'] %}
|
{% elif 'all' in extensions_available[ext] and 'type' in extensions_available[ext]['all'] %}
|
||||||
@@ -147,6 +150,9 @@ RUN set -x \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
&& docker-php-ext-enable {{ ext }} \
|
&& docker-php-ext-enable {{ ext }} \
|
||||||
&& cd / && rm -rf /tmp/{{ ext }} \
|
&& cd / && rm -rf /tmp/{{ ext }} \
|
||||||
|
{# ---- 4.) CUSTOM ---- #}
|
||||||
|
{% elif extensions_available[ext]['all']['type'] == 'custom' %}
|
||||||
|
&& {{ extensions_available[ext]['all']['command'] }} \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -181,6 +187,8 @@ RUN set -x \
|
|||||||
{% if ext == 'opcache' %}
|
{% if ext == 'opcache' %}
|
||||||
&& php -m | grep -oiE '^Zend Opcache$' \
|
&& php -m | grep -oiE '^Zend Opcache$' \
|
||||||
&& php-fpm -m | grep -oiE '^Zend Opcache$' \
|
&& php-fpm -m | grep -oiE '^Zend Opcache$' \
|
||||||
|
{% elif ext == 'ioncube' %}
|
||||||
|
{# Not enabled #}
|
||||||
{% else %}
|
{% else %}
|
||||||
&& php -m | grep -oiE '^{{ ext }}$' \
|
&& php -m | grep -oiE '^{{ ext }}$' \
|
||||||
&& php-fpm -m | grep -oiE '^{{ ext }}$' \
|
&& php-fpm -m | grep -oiE '^{{ ext }}$' \
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ RUN set -x \
|
|||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl \
|
curl \
|
||||||
@@ -77,6 +78,8 @@ RUN set -x \
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
less \
|
less \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
|
libffi-dev\
|
||||||
|
libssl-dev\
|
||||||
make \
|
make \
|
||||||
mongodb-org-shell \
|
mongodb-org-shell \
|
||||||
mongodb-org-tools \
|
mongodb-org-tools \
|
||||||
@@ -87,8 +90,12 @@ RUN set -x \
|
|||||||
netcat \
|
netcat \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
patch \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
python-cffi \
|
||||||
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python-wheel \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
rubygems \
|
rubygems \
|
||||||
ruby-dev \
|
ruby-dev \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
# All available Docker flavours (for each version)
|
||||||
template_files:
|
template_files:
|
||||||
- src: DOCKERFILES/Dockerfile-base.j2
|
- src: DOCKERFILES/Dockerfile-base.j2
|
||||||
dst: "../../Dockerfiles/base/Dockerfile-{{ php_version }}"
|
dst: "../../Dockerfiles/base/Dockerfile-{{ php_version }}"
|
||||||
@@ -11,13 +12,12 @@ template_files:
|
|||||||
dst: "../../Dockerfiles/work/Dockerfile-{{ php_version }}"
|
dst: "../../Dockerfiles/work/Dockerfile-{{ php_version }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Adds self-validating checks to Dockerfile
|
# Adds self-validating checks to Dockerfile
|
||||||
# turn off for final build
|
# turn off for final build
|
||||||
debug: True
|
debug: True
|
||||||
|
|
||||||
|
|
||||||
|
# All available PHP version
|
||||||
php_all_versions:
|
php_all_versions:
|
||||||
- 5.3
|
- 5.3
|
||||||
- 5.4
|
- 5.4
|
||||||
@@ -29,6 +29,9 @@ php_all_versions:
|
|||||||
- 7.3
|
- 7.3
|
||||||
|
|
||||||
|
|
||||||
|
# Global variables
|
||||||
|
compose_home: /usr/local/src/composer
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Defines for Dockerfile "work"
|
# Defines for Dockerfile "work"
|
||||||
@@ -54,17 +57,23 @@ software_enabled:
|
|||||||
# Composer needs to be first, others rely on it
|
# Composer needs to be first, others rely on it
|
||||||
- composer
|
- composer
|
||||||
# Normal packages start here
|
# Normal packages start here
|
||||||
|
- ansible
|
||||||
- awesomeci
|
- awesomeci
|
||||||
|
- codeception
|
||||||
- drush
|
- drush
|
||||||
- drupalconsole
|
- drupalconsole
|
||||||
- gitflow
|
- gitflow
|
||||||
- grunt
|
- grunt
|
||||||
- laravel
|
- laravel
|
||||||
|
- linkcheck
|
||||||
- linuxbrew
|
- linuxbrew
|
||||||
|
- mhsendmail
|
||||||
- mysqldumpsecure
|
- mysqldumpsecure
|
||||||
- phalcon
|
- phalcon
|
||||||
- phpcs
|
- phpcs
|
||||||
- phpcbf
|
- phpcbf
|
||||||
|
- phpunit
|
||||||
|
- photon
|
||||||
- sass
|
- sass
|
||||||
- symfony
|
- symfony
|
||||||
- webpack
|
- webpack
|
||||||
@@ -139,6 +148,12 @@ apt_repositories_available:
|
|||||||
# pre: [optional] Run command after 'command:' statement
|
# pre: [optional] Run command after 'command:' statement
|
||||||
#
|
#
|
||||||
software_available:
|
software_available:
|
||||||
|
ansible:
|
||||||
|
check: ansible --version | grep -E '^ansible [.0-9]+$'
|
||||||
|
all:
|
||||||
|
command: |
|
||||||
|
pip install --upgrade setuptools \
|
||||||
|
&& pip install ansible \
|
||||||
awesomeci:
|
awesomeci:
|
||||||
check: |
|
check: |
|
||||||
mdl --version | grep -E '[.0-9]+' \
|
mdl --version | grep -E '[.0-9]+' \
|
||||||
@@ -200,6 +215,12 @@ software_available:
|
|||||||
&& rm -rf /usr/local/src/drush/examples \
|
&& rm -rf /usr/local/src/drush/examples \
|
||||||
&& rm -rf /usr/local/src/drush/misc \
|
&& rm -rf /usr/local/src/drush/misc \
|
||||||
&& rm -rf /usr/local/src/drush/tests \
|
&& rm -rf /usr/local/src/drush/tests \
|
||||||
|
codeception:
|
||||||
|
check: codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$'
|
||||||
|
all:
|
||||||
|
command: |
|
||||||
|
COMPOSER_HOME="{{ compose_home }}" composer global require codeception/codeception --dev \
|
||||||
|
&& ln -s {{ compose_home }}/vendor/codeception/codeception/codecept /usr/local/bin/codecept \
|
||||||
drupalconsole:
|
drupalconsole:
|
||||||
disabled: [5.3, 5.4]
|
disabled: [5.3, 5.4]
|
||||||
check: drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]'
|
check: drupal --version | grep -E 'Drupal Console Launcher\s*[.0-9]'
|
||||||
@@ -251,6 +272,12 @@ software_available:
|
|||||||
&& su - ${MY_USER} -c 'PATH=/usr/local/bin:$PATH; cd /usr/local/src/laravel-installer && composer install' \
|
&& su - ${MY_USER} -c 'PATH=/usr/local/bin:$PATH; cd /usr/local/src/laravel-installer && composer install' \
|
||||||
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
&& ln -s /usr/local/src/laravel-installer/laravel /usr/local/bin/laravel \
|
||||||
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
&& rm -rf /usr/local/src/laravel-installer/laravel/.git \
|
||||||
|
linkcheck:
|
||||||
|
check: linkcheck --version | grep -E '^linkcheck\sv[.0-9]+'
|
||||||
|
all:
|
||||||
|
command: |
|
||||||
|
curl https://raw.githubusercontent.com/cytopia/linkcheck/master/linkcheck > /usr/local/bin/linkcheck \
|
||||||
|
&& chmod +x /usr/local/bin/linkcheck \
|
||||||
linuxbrew:
|
linuxbrew:
|
||||||
check: su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+'
|
check: su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew --version' | grep -E 'Homebrew\s*[.0-9]+'
|
||||||
all:
|
all:
|
||||||
@@ -258,13 +285,19 @@ software_available:
|
|||||||
git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
git clone https://github.com/Linuxbrew/brew.git /usr/local/src/linuxbrew \
|
||||||
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
&& chown -R ${MY_USER}:${MY_GROUP} /usr/local/src/linuxbrew \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
'echo "PATH=/usr/local/src/linuxbrew/bin:/usr/local/src/linuxbrew/sbin:/usr/bin:/usr/sbin:/bin:/sbin" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
'echo "export MANPATH=/usr/local/src/linuxbrew/share/man:${MANPATH}" >> /home/devilbox/${v}' \
|
||||||
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
&& v="${BASH_PROFILE}" su ${MY_USER} -c -p \
|
||||||
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
'echo "export INFOPATH=/usr/local/src/linuxbrew/share/man:${INFOPATH}" >> /home/devilbox/${v}' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew update' \
|
||||||
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
&& su - ${MY_USER} -c '/usr/local/src/linuxbrew/bin/brew config' \
|
||||||
|
mhsendmail:
|
||||||
|
all:
|
||||||
|
command: |
|
||||||
|
wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 \
|
||||||
|
&& chmod +x mhsendmail_linux_amd64 \
|
||||||
|
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmai \
|
||||||
mysqldumpsecure:
|
mysqldumpsecure:
|
||||||
check: mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+'
|
check: mysqldump-secure --version | grep -E 'Version:\s*[.0-9]+'
|
||||||
all:
|
all:
|
||||||
@@ -333,6 +366,39 @@ software_available:
|
|||||||
command: |
|
command: |
|
||||||
curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
curl -q https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
|
||||||
&& chmod +x /usr/local/bin/phpcbf \
|
&& chmod +x /usr/local/bin/phpcbf \
|
||||||
|
phpunit:
|
||||||
|
check: phpunit --version | grep -iE '^PHPUnit\s[.0-9]+'
|
||||||
|
5.3:
|
||||||
|
command: |
|
||||||
|
curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
5.4:
|
||||||
|
command: |
|
||||||
|
curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
5.5:
|
||||||
|
command: |
|
||||||
|
curl -qL https://phar.phpunit.de/phpunit-4.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
5.6:
|
||||||
|
command: |
|
||||||
|
curl -qL https://phar.phpunit.de/phpunit-5.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
7.0:
|
||||||
|
command: |
|
||||||
|
curl -qL https://phar.phpunit.de/phpunit-6.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
all:
|
||||||
|
command: |
|
||||||
|
curl -qL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit 2>/dev/null \
|
||||||
|
&& chmod +x /usr/local/bin/phpunit \
|
||||||
|
photon:
|
||||||
|
check: photon --version | grep -E 'Installer [.0-9]+'
|
||||||
|
disabled: [5.3, 5.4]
|
||||||
|
all:
|
||||||
|
command: |
|
||||||
|
COMPOSER_HOME="{{ compose_home }}" composer global require "photoncms/installer" \
|
||||||
|
&& ln -s {{ compose_home }}/vendor/photoncms/installer/photon /usr/local/bin/photon \
|
||||||
sass:
|
sass:
|
||||||
check: sass --version | grep -E '[.0-9]+'
|
check: sass --version | grep -E '[.0-9]+'
|
||||||
all:
|
all:
|
||||||
@@ -390,6 +456,8 @@ software_available:
|
|||||||
### Extensions to actually enable
|
### Extensions to actually enable
|
||||||
###
|
###
|
||||||
extensions_enabled:
|
extensions_enabled:
|
||||||
|
# ioncube must be loaded first
|
||||||
|
- ioncube
|
||||||
- amqp
|
- amqp
|
||||||
- apcu
|
- apcu
|
||||||
- bcmath
|
- bcmath
|
||||||
@@ -497,17 +565,22 @@ extensions_enabled:
|
|||||||
# git_ref: [optional] Tag, branch, commit to checkout
|
# git_ref: [optional] Tag, branch, commit to checkout
|
||||||
# configure: [optional] Add './configure' arguments
|
# configure: [optional] Add './configure' arguments
|
||||||
# command: [optional] Overwrite default command (phpize && ./configure && make && make install)
|
# command: [optional] Overwrite default command (phpize && ./configure && make && make install)
|
||||||
|
# type: custom
|
||||||
|
# command: [required] Custom command to install and enable a module
|
||||||
extensions_available:
|
extensions_available:
|
||||||
amqp:
|
amqp:
|
||||||
disabled: [7.3]
|
disabled: [7.3]
|
||||||
7.2:
|
5.3:
|
||||||
type: pecl
|
run_dep: [librabbitmq1]
|
||||||
run_dep: [librabbitmq4]
|
5.4:
|
||||||
|
run_dep: [librabbitmq1]
|
||||||
|
5.5:
|
||||||
|
run_dep: [librabbitmq1]
|
||||||
all:
|
all:
|
||||||
type: pecl
|
type: pecl
|
||||||
command: echo "/usr" | pecl install amqp
|
command: echo "/usr" | pecl install amqp
|
||||||
build_dep: [librabbitmq-dev]
|
build_dep: [librabbitmq-dev]
|
||||||
run_dep: [librabbitmq1]
|
run_dep: [librabbitmq4]
|
||||||
apcu:
|
apcu:
|
||||||
5.3:
|
5.3:
|
||||||
type: pecl
|
type: pecl
|
||||||
@@ -573,32 +646,40 @@ extensions_available:
|
|||||||
configure: --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
configure: --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
||||||
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev]
|
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev]
|
||||||
run_dep: [libpng12-0, libjpeg62-turbo, libxpm4, libvpx1, libfreetype6]
|
run_dep: [libpng12-0, libjpeg62-turbo, libxpm4, libvpx1, libfreetype6]
|
||||||
7.0:
|
5.4:
|
||||||
type: builtin
|
|
||||||
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
|
||||||
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev]
|
|
||||||
run_dep: [libpng12-0, libjpeg62-turbo, libxpm4, libvpx1, libfreetype6, libwebp-dev]
|
|
||||||
7.1:
|
|
||||||
type: builtin
|
|
||||||
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
|
||||||
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev]
|
|
||||||
run_dep: [libpng12-0, libjpeg62-turbo, libxpm4, libvpx1, libfreetype6, libwebp-dev]
|
|
||||||
7.2:
|
|
||||||
type: builtin
|
|
||||||
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv
|
|
||||||
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev]
|
|
||||||
run_dep: [libpng16-16, libjpeg62-turbo, libxpm4, libvpx4, libfreetype6, libwebp6]
|
|
||||||
7.3:
|
|
||||||
type: builtin
|
|
||||||
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv
|
|
||||||
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev]
|
|
||||||
run_dep: [libpng16-16, libjpeg62-turbo, libxpm4, libvpx4, libfreetype6, libwebp6]
|
|
||||||
all:
|
|
||||||
type: builtin
|
type: builtin
|
||||||
pre: ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/
|
pre: ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/
|
||||||
configure: --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
configure: --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
||||||
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev]
|
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev]
|
||||||
run_dep: [libpng12-0, libjpeg62-turbo, libxpm4, libvpx1, libfreetype6]
|
run_dep: [libpng12-0, libjpeg62-turbo, libxpm4, libvpx1, libfreetype6]
|
||||||
|
5.5:
|
||||||
|
type: builtin
|
||||||
|
pre: ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/
|
||||||
|
configure: --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
||||||
|
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev]
|
||||||
|
run_dep: [libpng12-0, libjpeg62-turbo, libxpm4, libvpx1, libfreetype6]
|
||||||
|
5.6:
|
||||||
|
type: builtin
|
||||||
|
pre: ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/
|
||||||
|
configure: --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
||||||
|
7.0:
|
||||||
|
type: builtin
|
||||||
|
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
||||||
|
7.1:
|
||||||
|
type: builtin
|
||||||
|
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
||||||
|
7.2:
|
||||||
|
type: builtin
|
||||||
|
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv
|
||||||
|
7.3:
|
||||||
|
type: builtin
|
||||||
|
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv
|
||||||
|
all:
|
||||||
|
type: builtin
|
||||||
|
pre: ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/
|
||||||
|
configure: --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv --enable-gd-native-ttf
|
||||||
|
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev]
|
||||||
|
run_dep: [libpng16-16, libjpeg62-turbo, libxpm4, libvpx4, libfreetype6, libwebp6]
|
||||||
gettext:
|
gettext:
|
||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
@@ -620,18 +701,17 @@ extensions_available:
|
|||||||
5.3:
|
5.3:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 3.3.0
|
version: 3.3.0
|
||||||
build_dep: [libmagickwand-dev]
|
|
||||||
run_dep: [libmagickwand-6.q16-2]
|
run_dep: [libmagickwand-6.q16-2]
|
||||||
7.2:
|
5.4:
|
||||||
type: pecl
|
type: pecl
|
||||||
run_dep: [libmagickwand-6.q16-3]
|
run_dep: [libmagickwand-6.q16-2]
|
||||||
7.3:
|
5.5:
|
||||||
type: pecl
|
type: pecl
|
||||||
run_dep: [libmagickwand-6.q16-3]
|
run_dep: [libmagickwand-6.q16-2]
|
||||||
all:
|
all:
|
||||||
type: pecl
|
type: pecl
|
||||||
build_dep: [libmagickwand-dev]
|
build_dep: [libmagickwand-dev]
|
||||||
run_dep: [libmagickwand-6.q16-2]
|
run_dep: [libmagickwand-6.q16-3]
|
||||||
imap:
|
imap:
|
||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
@@ -645,16 +725,33 @@ extensions_available:
|
|||||||
build_dep: [libfbclient2, libib-util, firebird-dev]
|
build_dep: [libfbclient2, libib-util, firebird-dev]
|
||||||
run_dep: [libfbclient2]
|
run_dep: [libfbclient2]
|
||||||
intl:
|
intl:
|
||||||
7.2:
|
5.3:
|
||||||
type: builtin
|
type: builtin
|
||||||
run_dep: [libicu57]
|
run_dep: [libicu52]
|
||||||
7.3:
|
5.4:
|
||||||
type: builtin
|
type: builtin
|
||||||
run_dep: [libicu57]
|
run_dep: [libicu52]
|
||||||
|
5.5:
|
||||||
|
type: builtin
|
||||||
|
run_dep: [libicu52]
|
||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
build_dep: [libicu-dev]
|
build_dep: [libicu-dev]
|
||||||
run_dep: [libicu52]
|
run_dep: [libicu57]
|
||||||
|
ioncube:
|
||||||
|
disabled: [7.3]
|
||||||
|
all:
|
||||||
|
type: custom
|
||||||
|
command: |
|
||||||
|
EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \
|
||||||
|
&& if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \
|
||||||
|
&& curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \
|
||||||
|
&& tar xvfz ioncube.tar.gz \
|
||||||
|
&& cd ioncube \
|
||||||
|
&& cp "ioncube_loader_lin_{{ php_version }}.so" "${EXTENSION_DIR}/ioncube.so" \
|
||||||
|
&& cd ../ \
|
||||||
|
&& rm -rf ioncube \
|
||||||
|
&& rm -rf ioncube.tar.gz \
|
||||||
json:
|
json:
|
||||||
7.0:
|
7.0:
|
||||||
type: builtin
|
type: builtin
|
||||||
@@ -733,11 +830,9 @@ extensions_available:
|
|||||||
5.3:
|
5.3:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 0.6.3
|
version: 0.6.3
|
||||||
build_dep: [libssl-dev, libsasl2-dev]
|
|
||||||
5.4:
|
5.4:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 1.2.11
|
version: 1.2.11
|
||||||
build_dep: [libssl-dev, libsasl2-dev]
|
|
||||||
all:
|
all:
|
||||||
type: pecl
|
type: pecl
|
||||||
build_dep: [libssl-dev, libsasl2-dev]
|
build_dep: [libssl-dev, libsasl2-dev]
|
||||||
@@ -759,6 +854,9 @@ extensions_available:
|
|||||||
type: pecl
|
type: pecl
|
||||||
mysql:
|
mysql:
|
||||||
disabled: [7.0, 7.1, 7.2, 7.3] # Deprecated in newer versions
|
disabled: [7.0, 7.1, 7.2, 7.3] # Deprecated in newer versions
|
||||||
|
5.6:
|
||||||
|
type: builtin
|
||||||
|
run_dep: [libmariadbclient18]
|
||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
run_dep: [libmysqlclient18]
|
run_dep: [libmysqlclient18]
|
||||||
@@ -851,7 +949,7 @@ extensions_available:
|
|||||||
command: cd build && ./install
|
command: cd build && ./install
|
||||||
phar:
|
phar:
|
||||||
# https://github.com/docker-library/php/issues/618
|
# https://github.com/docker-library/php/issues/618
|
||||||
disabled: [7.0] # TODO: Currently disabled due to bug in built
|
disabled: [5.6, 7.0] # TODO: Currently disabled due to bug in built
|
||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
build_dep: [libssl-dev]
|
build_dep: [libssl-dev]
|
||||||
@@ -905,10 +1003,7 @@ extensions_available:
|
|||||||
type: builtin
|
type: builtin
|
||||||
sodium:
|
sodium:
|
||||||
disabled: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1]
|
disabled: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1]
|
||||||
7.2:
|
all:
|
||||||
type: builtin
|
|
||||||
build_dep: [libsodium-dev]
|
|
||||||
7.3:
|
|
||||||
type: builtin
|
type: builtin
|
||||||
build_dep: [libsodium-dev]
|
build_dep: [libsodium-dev]
|
||||||
spl:
|
spl:
|
||||||
@@ -917,18 +1012,21 @@ extensions_available:
|
|||||||
5.3:
|
5.3:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 1.9.23
|
version: 1.9.23
|
||||||
|
run_dep: [libnghttp2-5]
|
||||||
5.4:
|
5.4:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 1.9.23
|
version: 1.9.23
|
||||||
|
run_dep: [libnghttp2-5]
|
||||||
5.5:
|
5.5:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 1.9.23
|
version: 1.9.23
|
||||||
|
run_dep: [libnghttp2-5]
|
||||||
5.6:
|
5.6:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 1.9.23
|
version: 1.9.23
|
||||||
7.2:
|
7.0:
|
||||||
type: pecl
|
type: pecl
|
||||||
run_dep: [libnghttp2-14]
|
version: 2.2.0
|
||||||
7.3:
|
7.3:
|
||||||
type: git
|
type: git
|
||||||
git_url: https://github.com/swoole/swoole-src
|
git_url: https://github.com/swoole/swoole-src
|
||||||
@@ -955,7 +1053,7 @@ extensions_available:
|
|||||||
--enable-mysqlnd \
|
--enable-mysqlnd \
|
||||||
--enable-coroutine \
|
--enable-coroutine \
|
||||||
--enable-picohttpparser \
|
--enable-picohttpparser \
|
||||||
--enable-timewheel \
|
#`--enable-timewheel` \
|
||||||
#`--enable-hugepage` \
|
#`--enable-hugepage` \
|
||||||
#`--enable-asan` \
|
#`--enable-asan` \
|
||||||
#`--with-phpx-dir=` \
|
#`--with-phpx-dir=` \
|
||||||
@@ -971,7 +1069,7 @@ extensions_available:
|
|||||||
all:
|
all:
|
||||||
type: pecl
|
type: pecl
|
||||||
build_dep: [libnghttp2-dev, libssl-dev]
|
build_dep: [libnghttp2-dev, libssl-dev]
|
||||||
run_dep: [libnghttp2-5]
|
run_dep: [libnghttp2-14]
|
||||||
sysvmsg:
|
sysvmsg:
|
||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
@@ -982,16 +1080,19 @@ extensions_available:
|
|||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
tidy:
|
tidy:
|
||||||
7.2:
|
5.3:
|
||||||
type: builtin
|
type: builtin
|
||||||
run_dep: [libtidy5]
|
run_dep: [libtidy-0.99-0]
|
||||||
7.3:
|
5.4:
|
||||||
type: builtin
|
type: builtin
|
||||||
run_dep: [libtidy5]
|
run_dep: [libtidy-0.99-0]
|
||||||
|
5.5:
|
||||||
|
type: builtin
|
||||||
|
run_dep: [libtidy-0.99-0]
|
||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
build_dep: [libtidy-dev]
|
build_dep: [libtidy-dev]
|
||||||
run_dep: [libtidy-0.99-0]
|
run_dep: [libtidy5]
|
||||||
tokenizer:
|
tokenizer:
|
||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
@@ -1077,16 +1178,8 @@ extensions_available:
|
|||||||
configure: --with-zlib-dir=/usr --with-pcre-dir=/usr
|
configure: --with-zlib-dir=/usr --with-pcre-dir=/usr
|
||||||
build_dep: [zlib1g-dev]
|
build_dep: [zlib1g-dev]
|
||||||
run_dep: []
|
run_dep: []
|
||||||
7.2:
|
|
||||||
type: builtin
|
|
||||||
configure: --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip
|
|
||||||
run_dep: [libzip4]
|
|
||||||
7.3:
|
|
||||||
type: builtin
|
|
||||||
configure: --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip
|
|
||||||
run_dep: [libzip4]
|
|
||||||
all:
|
all:
|
||||||
type: builtin
|
type: builtin
|
||||||
configure: --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip
|
configure: --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip
|
||||||
build_dep: [zlib1g-dev, libzip-dev]
|
build_dep: [zlib1g-dev, libzip-dev]
|
||||||
run_dep: [libzip2]
|
run_dep: [libzip4]
|
||||||
|
|||||||
Reference in New Issue
Block a user