Use a makefile to use docker directly so we can use DOCKER_BUILDKIT=1

This commit is contained in:
Greyscale 2019-08-15 13:21:29 +02:00
parent c48e26a5f1
commit 1855fce089
4 changed files with 412 additions and 73 deletions

View file

@ -6,16 +6,13 @@ before_script:
- curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- git rev-parse --short HEAD > marshall/marshall_version
- date +%Y-%m-%d\ %H:%M:%S > marshall/marshall_build_date
- hostname > marshall/marshall_build_host
script:
- docker-compose -f build.yml build $IMAGE
- make $BUILD
deploy:
provider: script
script: docker-compose -f build.yml push $IMAGE
script: docker push $BUILD
on:
branch: master
@ -24,61 +21,61 @@ notifications:
- matthew@baggett.me
env:
- IMAGE=marshall
- IMAGE=node-8
- IMAGE=node-8-onbuild
- IMAGE=node-8-compiler
- IMAGE=node-8-compiler-onbuild
- IMAGE=node-10
- IMAGE=node-10-onbuild
- IMAGE=node-10-compiler
- IMAGE=node-10-compiler-onbuild
- IMAGE=node-11
- IMAGE=node-11-onbuild
- IMAGE=node-11-compiler
- IMAGE=node-11-compiler-onbuild
- IMAGE=node-12
- IMAGE=node-12-onbuild
- IMAGE=node-12-compiler
- IMAGE=node-12-compiler-onbuild
- IMAGE=php-core-56
- IMAGE=php-core-70
- IMAGE=php-core-71
- IMAGE=php-core-72
- IMAGE=php-core-73
- IMAGE=php-cli-56
- IMAGE=php-cli-56-onbuild
- IMAGE=php-cli-70
- IMAGE=php-cli-70-onbuild
- IMAGE=php-cli-71
- IMAGE=php-cli-71-onbuild
- IMAGE=php-cli-72
- IMAGE=php-cli-72-onbuild
- IMAGE=php-cli-73
- IMAGE=php-cli-73-onbuild
- IMAGE=php-apache-56
- IMAGE=php-apache-56-onbuild
- IMAGE=php-apache-70
- IMAGE=php-apache-70-onbuild
- IMAGE=php-apache-71
- IMAGE=php-apache-71-onbuild
- IMAGE=php-apache-72
- IMAGE=php-apache-72-onbuild
- IMAGE=php-apache-73
- IMAGE=php-apache-73-onbuild
- IMAGE=php-nginx-56
- IMAGE=php-nginx-56-onbuild
- IMAGE=php-nginx-70
- IMAGE=php-nginx-70-onbuild
- IMAGE=php-nginx-71
- IMAGE=php-nginx-71-onbuild
- IMAGE=php-nginx-72
- IMAGE=php-nginx-72-onbuild
- IMAGE=php-nginx-73
- IMAGE=php-nginx-73-onbuild
- IMAGE=php-cli-latest
- IMAGE=php-cli-onbuild-latest
- IMAGE=php-apache-latest
- IMAGE=php-apache-onbuild-latest
- IMAGE=php-nginx-latest
- IMAGE=php-nginx-onbuild-latest
- BUILD=gone/marshall
- BUILD=gone/node:8
- BUILD=gone/node:8-onbuild
- BUILD=gone/node:8-compiler
- BUILD=gone/node:8-compiler-onbuild
- BUILD=gone/node:10
- BUILD=gone/node:10-onbuild
- BUILD=gone/node:10-compiler
- BUILD=gone/node:10-compiler-onbuild
- BUILD=gone/node:11
- BUILD=gone/node:11-onbuild
- BUILD=gone/node:11-compiler
- BUILD=gone/node:11-compiler-onbuild
- BUILD=gone/node:12
- BUILD=gone/node:12-onbuild
- BUILD=gone/node:12-compiler
- BUILD=gone/node:12-compiler-onbuild
- BUILD=gone/php:core-56
- BUILD=gone/php:core-70
- BUILD=gone/php:core-71
- BUILD=gone/php:core-72
- BUILD=gone/php:core-73
- BUILD=gone/php:cli-56
- BUILD=gone/php:cli-56-onbuild
- BUILD=gone/php:cli-70
- BUILD=gone/php:cli-70-onbuild
- BUILD=gone/php:cli-71
- BUILD=gone/php:cli-71-onbuild
- BUILD=gone/php:cli-72
- BUILD=gone/php:cli-72-onbuild
- BUILD=gone/php:cli-73
- BUILD=gone/php:cli-73-onbuild
- BUILD=gone/php:apache-56
- BUILD=gone/php:apache-56-onbuild
- BUILD=gone/php:apache-70
- BUILD=gone/php:apache-70-onbuild
- BUILD=gone/php:apache-71
- BUILD=gone/php:apache-71-onbuild
- BUILD=gone/php:apache-72
- BUILD=gone/php:apache-72-onbuild
- BUILD=gone/php:apache-73
- BUILD=gone/php:apache-73-onbuild
- BUILD=gone/php:nginx-56
- BUILD=gone/php:nginx-56-onbuild
- BUILD=gone/php:nginx-70
- BUILD=gone/php:nginx-70-onbuild
- BUILD=gone/php:nginx-71
- BUILD=gone/php:nginx-71-onbuild
- BUILD=gone/php:nginx-72
- BUILD=gone/php:nginx-72-onbuild
- BUILD=gone/php:nginx-73
- BUILD=gone/php:nginx-73-onbuild
- BUILD=gone/php:cli-latest
- BUILD=gone/php:cli-onbuild-latest
- BUILD=gone/php:apache-latest
- BUILD=gone/php:apache-onbuild-latest
- BUILD=gone/php:nginx-latest
- BUILD=gone/php:nginx-onbuild-latest

View file

@ -25,20 +25,20 @@ FROM marshall AS php-core
ARG PHP_PACKAGES
COPY php-core/install-report.sh /usr/bin/install-report
RUN apt-get -qq update && \
apt-get -yq install --no-install-recommends \
apt-get -yqq install --no-install-recommends \
python3-software-properties \
software-properties-common \
&& \
add-apt-repository -y ppa:ondrej/php && \
apt-get -qq update && \
apt-get -yq install --no-install-recommends $PHP_PACKAGES &&\
apt-get remove -yq \
apt-get -yqq install --no-install-recommends $PHP_PACKAGES &&\
apt-get remove -yqq \
software-properties-common \
python-apt-common \
python3-software-properties \
python3.5 python3.5-minimal libpython3.5-minimal \
&& \
apt-get autoremove -y && \
apt-get autoremove -yqq && \
rm -rf \
/usr/bin/mysqlslap \
/usr/bin/mysqldump \
@ -93,7 +93,7 @@ RUN apt-get -qq update && \
nginx \
php$PHP_VERSION-fpm \
&& \
apt-get remove -yq \
apt-get remove -yqq \
lsb-core \
cups-common \
software-properties-common \
@ -101,7 +101,7 @@ RUN apt-get -qq update && \
python3-software-properties \
python3.5 python3.5-minimal libpython3.5-minimal \
&& \
apt-get autoremove -y && \
apt-get autoremove -yqq && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
sed -i "s/cgi.fix_pathinfo.*/cgi.fix_pathinfo=0/g" /etc/php/$PHP_VERSION/fpm/php.ini && \
@ -152,7 +152,7 @@ ONBUILD RUN /usr/bin/install-report
FROM php-core AS php-apache
RUN apt-get -qq update && \
apt-get -yq install --no-install-recommends \
apt-get -yqq install --no-install-recommends \
apache2 \
libapache2-mod-php$PHP_VERSION \
&& \
@ -207,7 +207,7 @@ ARG PATH="/app/node_modules/.bin:${PATH}"
RUN mkdir ~/.gnupg && \
echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf && \
apt-get -qq update && \
apt-get -yq install --no-install-recommends \
apt-get -yqq install --no-install-recommends \
lsb-core \
gnupg \
&& \
@ -276,7 +276,7 @@ RUN mkdir ~/.gnupg && \
FROM nodejs AS nodejs-compiler
RUN apt-get -qq update && \
apt-get -yq install --no-install-recommends \
apt-get -yqq install --no-install-recommends \
python \
build-essential \
&& \

342
Makefile Normal file
View file

@ -0,0 +1,342 @@
CMD_BUILD=DOCKER_BUILDKIT=1 docker build --progress=plain
PHP_PACKAGES_56=mysql-client \
php-apcu \
php-xdebug \
php5.6-bcmath \
php5.6-bz2 \
php5.6-cli \
php5.6-curl \
php5.6-gd \
php5.6-imap \
php5.6-intl \
php5.6-json \
php5.6-ldap \
php5.6-mbstring \
php5.6-mcrypt \
php5.6-memcache \
php5.6-memcached \
php5.6-mongodb \
php5.6-mysql \
php5.6-opcache \
php5.6-pgsql \
php5.6-pspell \
php5.6-redis \
php5.6-soap \
php5.6-sqlite \
php5.6-xml \
php5.6-zip \
postgresql-client
PHP_PACKAGES_70=mysql-client \
php-apcu \
php-xdebug \
php7.0-bcmath \
php7.0-bz2 \
php7.0-cli \
php7.0-curl \
php7.0-gd \
php7.0-imap \
php7.0-intl \
php7.0-json \
php7.0-ldap \
php7.0-mbstring \
php7.0-mcrypt \
php7.0-memcache \
php7.0-memcached \
php7.0-mongodb \
php7.0-mysql \
php7.0-opcache \
php7.0-pgsql \
php7.0-pspell \
php7.0-redis \
php7.0-soap \
php7.0-sqlite \
php7.0-xml \
php7.0-zip \
postgresql-client
PHP_PACKAGES_71=mysql-client \
php-apcu \
php-xdebug \
php7.1-bcmath \
php7.1-bz2 \
php7.1-cli \
php7.1-curl \
php7.1-gd \
php7.1-imap \
php7.1-intl \
php7.1-json \
php7.1-ldap \
php7.1-mbstring \
php7.1-mcrypt \
php7.1-memcache \
php7.1-memcached \
php7.1-mongodb \
php7.1-mysql \
php7.1-opcache \
php7.1-pgsql \
php7.1-pspell \
php7.1-redis \
php7.1-soap \
php7.1-sqlite \
php7.1-xml \
php7.1-zip \
postgresql-client
PHP_PACKAGES_72=mysql-client \
php-apcu \
php-xdebug \
php7.2-bcmath \
php7.2-bz2 \
php7.2-cli \
php7.2-curl \
php7.2-gd \
php7.2-imap \
php7.2-intl \
php7.2-json \
php7.2-ldap \
php7.2-mbstring \
php7.2-memcache \
php7.2-memcached \
php7.2-mongodb \
php7.2-mysql \
php7.2-opcache \
php7.2-pgsql \
php7.2-pspell \
php7.2-redis \
php7.2-soap \
php7.2-sqlite \
php7.2-xml \
php7.2-zip \
postgresql-client
PHP_PACKAGES_73=mysql-client \
php-apcu \
php-xdebug \
php7.3-bcmath \
php7.3-bz2 \
php7.3-cli \
php7.3-curl \
php7.3-gd \
php7.3-imap \
php7.3-intl \
php7.3-json \
php7.3-ldap \
php7.3-mbstring \
php7.3-memcache \
php7.3-memcached \
php7.3-mongodb \
php7.3-mysql \
php7.3-opcache \
php7.3-pgsql \
php7.3-pspell \
php7.3-redis \
php7.3-soap \
php7.3-sqlite \
php7.3-xml \
php7.3-zip \
postgresql-client
# ███▄ ▄███▓ ▄▄▄ ██▀███ ██████ ██░ ██ ▄▄▄ ██▓ ██▓
# ▓██▒▀█▀ ██▒▒████▄ ▓██ ▒ ██▒▒██ ▒ ▓██░ ██▒▒████▄ ▓██▒ ▓██▒
# ▓██ ▓██░▒██ ▀█▄ ▓██ ░▄█ ▒░ ▓██▄ ▒██▀▀██░▒██ ▀█▄ ▒██░ ▒██░
# ▒██ ▒██ ░██▄▄▄▄██ ▒██▀▀█▄ ▒ ██▒░▓█ ░██ ░██▄▄▄▄██ ▒██░ ▒██░
# ▒██▒ ░██▒ ▓█ ▓██▒░██▓ ▒██▒▒██████▒▒░▓█▒░██▓ ▓█ ▓██▒░██████▒░██████▒
# ░ ▒░ ░ ░ ▒▒ ▓▒█░░ ▒▓ ░▒▓░▒ ▒▓▒ ▒ ░ ▒ ░░▒░▒ ▒▒ ▓▒█░░ ▒░▓ ░░ ▒░▓ ░
# ░ ░ ░ ▒ ▒▒ ░ ░▒ ░ ▒░░ ░▒ ░ ░ ▒ ░▒░ ░ ▒ ▒▒ ░░ ░ ▒ ░░ ░ ▒ ░
# ░ ░ ░ ▒ ░░ ░ ░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░
# ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
gone/marshall:
git rev-parse --short HEAD > marshall/marshall_version
date +%Y-%m-%d\ %H:%M:%S > marshall/marshall_build_date
hostname > marshall/marshall_build_host
$(CMD_BUILD) -t gone/marshall:latest --target=marshall .
# ██▓███ ██░ ██ ██▓███ ▄████▄ ▒█████ ██▀███ ▓█████
# ▓██░ ██▒▓██░ ██▒▓██░ ██▒ ▒██▀ ▀█ ▒██▒ ██▒▓██ ▒ ██▒▓█ ▀
# ▓██░ ██▓▒▒██▀▀██░▓██░ ██▓▒ ▒▓█ ▄ ▒██░ ██▒▓██ ░▄█ ▒▒███
# ▒██▄█▓▒ ▒░▓█ ░██ ▒██▄█▓▒ ▒ ▒▓▓▄ ▄██▒▒██ ██░▒██▀▀█▄ ▒▓█ ▄
# ▒██▒ ░ ░░▓█▒░██▓▒██▒ ░ ░ ▒ ▓███▀ ░░ ████▓▒░░██▓ ▒██▒░▒████▒
# ▒▓▒░ ░ ░ ▒ ░░▒░▒▒▓▒░ ░ ░ ░ ░▒ ▒ ░░ ▒░▒░▒░ ░ ▒▓ ░▒▓░░░ ▒░ ░
# ░▒ ░ ▒ ░▒░ ░░▒ ░ ░ ▒ ░ ▒ ▒░ ░▒ ░ ▒░ ░ ░ ░
# ░░ ░ ░░ ░░░ ░ ░ ░ ░ ▒ ░░ ░ ░
# ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
# ░
gone/php\:core-5.6:
$(CMD_BUILD) -t gone/php:core-5.6 --target=php-core --build-arg "PHP_VERSION=5.6" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_56)" .
gone/php\:core-7.0:
$(CMD_BUILD) -t gone/php:core-7.0 --target=php-core --build-arg "PHP_VERSION=7.0" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_70)" .
gone/php\:core-7.1:
$(CMD_BUILD) -t gone/php:core-7.1 --target=php-core --build-arg "PHP_VERSION=7.1" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_71)" .
gone/php\:core-7.2:
$(CMD_BUILD) -t gone/php:core-7.2 --target=php-core --build-arg "PHP_VERSION=7.2" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_72)" .
gone/php\:core-7.3:
$(CMD_BUILD) -t gone/php:core-7.3 --target=php-core --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
# ██▓███ ██░ ██ ██▓███ ▄████▄ ██▓ ██▓
# ▓██░ ██▒▓██░ ██▒▓██░ ██▒ ▒██▀ ▀█ ▓██▒ ▓██▒
# ▓██░ ██▓▒▒██▀▀██░▓██░ ██▓▒ ▒▓█ ▄ ▒██░ ▒██▒
# ▒██▄█▓▒ ▒░▓█ ░██ ▒██▄█▓▒ ▒ ▒▓▓▄ ▄██▒▒██░ ░██░
# ▒██▒ ░ ░░▓█▒░██▓▒██▒ ░ ░ ▒ ▓███▀ ░░██████▒░██░
# ▒▓▒░ ░ ░ ▒ ░░▒░▒▒▓▒░ ░ ░ ░ ░▒ ▒ ░░ ▒░▓ ░░▓
# ░▒ ░ ▒ ░▒░ ░░▒ ░ ░ ▒ ░ ░ ▒ ░ ▒ ░
# ░░ ░ ░░ ░░░ ░ ░ ░ ▒ ░
# ░ ░ ░ ░ ░ ░ ░ ░
# ░
gone/php\:cli-5.6:
$(CMD_BUILD) -t gone/php:cli-5.6 --target=php-cli --build-arg "PHP_VERSION=5.6" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_56)" .
gone/php\:cli-5.6-onbuild:
$(CMD_BUILD) -t gone/php:cli-5.6-onbuild --target=php-cli-onbuild --build-arg "PHP_VERSION=5.6" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_56)" .
gone/php\:cli-7.0:
$(CMD_BUILD) -t gone/php:cli-7.0 --target=php-cli --build-arg "PHP_VERSION=7.0" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_70)" .
gone/php\:cli-7.0-onbuild:
$(CMD_BUILD) -t gone/php:cli-7.0-onbuild --target=php-cli-onbuild --build-arg "PHP_VERSION=7.0" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_70)" .
gone/php\:cli-7.1:
$(CMD_BUILD) -t gone/php:cli-7.1 --target=php-cli --build-arg "PHP_VERSION=7.1" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_71)" .
gone/php\:cli-7.1-onbuild:
$(CMD_BUILD) -t gone/php:cli-7.1-onbuild --target=php-cli-onbuild --build-arg "PHP_VERSION=7.1" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_71)" .
gone/php\:cli-7.2:
$(CMD_BUILD) -t gone/php:cli-7.2 --target=php-cli --build-arg "PHP_VERSION=7.2" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_72)" .
gone/php\:cli-7.2-onbuild:
$(CMD_BUILD) -t gone/php:cli-7.2-onbuild --target=php-cli-onbuild --build-arg "PHP_VERSION=7.2" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_72)" .
gone/php\:cli-7.3:
$(CMD_BUILD) -t gone/php:cli-7.3 --target=php-cli --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
gone/php\:cli-7.3-onbuild:
$(CMD_BUILD) -t gone/php:cli-7.3-onbuild --target=php-cli-onbuild --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
# ██▓███ ██░ ██ ██▓███ ███▄ █ ▄████ ██▓ ███▄ █ ▒██ ██▒
# ▓██░ ██▒▓██░ ██▒▓██░ ██▒ ██ ▀█ █ ██▒ ▀█▒▓██▒ ██ ▀█ █ ▒▒ █ █ ▒░
# ▓██░ ██▓▒▒██▀▀██░▓██░ ██▓▒ ▓██ ▀█ ██▒▒██░▄▄▄░▒██▒▓██ ▀█ ██▒░░ █ ░
# ▒██▄█▓▒ ▒░▓█ ░██ ▒██▄█▓▒ ▒ ▓██▒ ▐▌██▒░▓█ ██▓░██░▓██▒ ▐▌██▒ ░ █ █ ▒
# ▒██▒ ░ ░░▓█▒░██▓▒██▒ ░ ░ ▒██░ ▓██░░▒▓███▀▒░██░▒██░ ▓██░▒██▒ ▒██▒
# ▒▓▒░ ░ ░ ▒ ░░▒░▒▒▓▒░ ░ ░ ░ ▒░ ▒ ▒ ░▒ ▒ ░▓ ░ ▒░ ▒ ▒ ▒▒ ░ ░▓ ░
# ░▒ ░ ▒ ░▒░ ░░▒ ░ ░ ░░ ░ ▒░ ░ ░ ▒ ░░ ░░ ░ ▒░░░ ░▒ ░
# ░░ ░ ░░ ░░░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░
# ░ ░ ░ ░ ░ ░ ░ ░ ░
gone/php\:nginx-5.6:
$(CMD_BUILD) -t gone/php:nginx-5.6 --target=php-nginx --build-arg "PHP_VERSION=5.6" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_56)" .
gone/php\:nginx-5.6-onbuild:
$(CMD_BUILD) -t gone/php:nginx-5.6-onbuild --target=php-nginx-onbuild --build-arg "PHP_VERSION=5.6" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_56)" .
gone/php\:nginx-7.0:
$(CMD_BUILD) -t gone/php:nginx-7.0 --target=php-nginx --build-arg "PHP_VERSION=7.0" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_70)" .
gone/php\:nginx-7.0-onbuild:
$(CMD_BUILD) -t gone/php:nginx-7.0-onbuild --target=php-nginx-onbuild --build-arg "PHP_VERSION=7.0" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_70)" .
gone/php\:nginx-7.1:
$(CMD_BUILD) -t gone/php:nginx-7.1 --target=php-nginx --build-arg "PHP_VERSION=7.1" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_71)" .
gone/php\:nginx-7.1-onbuild:
$(CMD_BUILD) -t gone/php:nginx-7.1-onbuild --target=php-nginx-onbuild --build-arg "PHP_VERSION=7.1" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_71)" .
gone/php\:nginx-7.2:
$(CMD_BUILD) -t gone/php:nginx-7.2 --target=php-nginx --build-arg "PHP_VERSION=7.2" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_72)" .
gone/php\:nginx-7.2-onbuild:
$(CMD_BUILD) -t gone/php:nginx-7.2-onbuild --target=php-nginx-onbuild --build-arg "PHP_VERSION=7.2" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_72)" .
gone/php\:nginx-7.3:
$(CMD_BUILD) -t gone/php:nginx-7.3 --target=php-nginx --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
gone/php\:nginx-7.3-onbuild:
$(CMD_BUILD) -t gone/php:nginx-7.3-onbuild --target=php-nginx-onbuild --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
# ██▓███ ██░ ██ ██▓███ ▄▄▄ ██▓███ ▄▄▄ ▄████▄ ██░ ██ ▓█████
# ▓██░ ██▒▓██░ ██▒▓██░ ██▒ ▒████▄ ▓██░ ██▒▒████▄ ▒██▀ ▀█ ▓██░ ██▒▓█ ▀
# ▓██░ ██▓▒▒██▀▀██░▓██░ ██▓▒ ▒██ ▀█▄ ▓██░ ██▓▒▒██ ▀█▄ ▒▓█ ▄ ▒██▀▀██░▒███
# ▒██▄█▓▒ ▒░▓█ ░██ ▒██▄█▓▒ ▒ ░██▄▄▄▄██ ▒██▄█▓▒ ▒░██▄▄▄▄██ ▒▓▓▄ ▄██▒░▓█ ░██ ▒▓█ ▄
# ▒██▒ ░ ░░▓█▒░██▓▒██▒ ░ ░ ▓█ ▓██▒▒██▒ ░ ░ ▓█ ▓██▒▒ ▓███▀ ░░▓█▒░██▓░▒████▒
# ▒▓▒░ ░ ░ ▒ ░░▒░▒▒▓▒░ ░ ░ ▒▒ ▓▒█░▒▓▒░ ░ ░ ▒▒ ▓▒█░░ ░▒ ▒ ░ ▒ ░░▒░▒░░ ▒░ ░
# ░▒ ░ ▒ ░▒░ ░░▒ ░ ▒ ▒▒ ░░▒ ░ ▒ ▒▒ ░ ░ ▒ ▒ ░▒░ ░ ░ ░ ░
# ░░ ░ ░░ ░░░ ░ ▒ ░░ ░ ▒ ░ ░ ░░ ░ ░
# ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░
# ░
gone/php\:apache-5.6:
$(CMD_BUILD) -t gone/php:apache-5.6 --target=php-apache --build-arg "PHP_VERSION=5.6" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_56)" .
gone/php\:apache-5.6-onbuild:
$(CMD_BUILD) -t gone/php:apache-5.6-onbuild --target=php-apache-onbuild --build-arg "PHP_VERSION=5.6" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_56)" .
gone/php\:apache-7.0:
$(CMD_BUILD) -t gone/php:apache-7.0 --target=php-apache --build-arg "PHP_VERSION=7.0" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_70)" .
gone/php\:apache-7.0-onbuild:
$(CMD_BUILD) -t gone/php:apache-7.0-onbuild --target=php-apache-onbuild --build-arg "PHP_VERSION=7.0" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_70)" .
gone/php\:apache-7.1:
$(CMD_BUILD) -t gone/php:apache-7.1 --target=php-apache --build-arg "PHP_VERSION=7.1" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_71)" .
gone/php\:apache-7.1-onbuild:
$(CMD_BUILD) -t gone/php:apache-7.1-onbuild --target=php-apache-onbuild --build-arg "PHP_VERSION=7.1" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_71)" .
gone/php\:apache-7.2:
$(CMD_BUILD) -t gone/php:apache-7.2 --target=php-apache --build-arg "PHP_VERSION=7.2" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_72)" .
gone/php\:apache-7.2-onbuild:
$(CMD_BUILD) -t gone/php:apache-7.2-onbuild --target=php-apache-onbuild --build-arg "PHP_VERSION=7.2" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_72)" .
gone/php\:apache-7.3:
$(CMD_BUILD) -t gone/php:apache-7.3 --target=php-apache --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
gone/php\:apache-7.3-onbuild:
$(CMD_BUILD) -t gone/php:apache-7.3-onbuild --target=php-apache-onbuild --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
# ███▄ █ ▒█████ ▓█████▄ ▓█████ ▄▄▄██▀▀▀██████
# ██ ▀█ █ ▒██▒ ██▒▒██▀ ██▌▓█ ▀ ▒██ ▒██ ▒
#▓██ ▀█ ██▒▒██░ ██▒░██ █▌▒███ ░██ ░ ▓██▄
#▓██▒ ▐▌██▒▒██ ██░░▓█▄ ▌▒▓█ ▄ ▓██▄██▓ ▒ ██▒
#▒██░ ▓██░░ ████▓▒░░▒████▓ ░▒████▒ ▓███▒ ▒██████▒▒
#░ ▒░ ▒ ▒ ░ ▒░▒░▒░ ▒▒▓ ▒ ░░ ▒░ ░ ▒▓▒▒░ ▒ ▒▓▒ ▒ ░
#░ ░░ ░ ▒░ ░ ▒ ▒░ ░ ▒ ▒ ░ ░ ░ ▒ ░▒░ ░ ░▒ ░ ░
# ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
# ░ ░ ░ ░ ░ ░ ░ ░ ░
# ░
gone/node\:8:
$(CMD_BUILD) -t gone/node:8 --target=nodejs --build-arg NODE_VERSION=8.16.0 --build-arg YARN_VERSION=1.15.2 .
gone/node\:8-onbuild:
$(CMD_BUILD) -t gone/node:8 --target=nodejs-onbuild --build-arg NODE_VERSION=8.16.0 --build-arg YARN_VERSION=1.15.2 .
gone/node\:8-compiler:
$(CMD_BUILD) -t gone/node:8 --target=nodejs-compiler --build-arg NODE_VERSION=8.16.0 --build-arg YARN_VERSION=1.15.2 .
gone/node\:8-compiler-onbuild:
$(CMD_BUILD) -t gone/node:8 --target=nodejs-compiler-onbuild --build-arg NODE_VERSION=8.16.0 --build-arg YARN_VERSION=1.15.2 .
gone/node\:10:
$(CMD_BUILD) -t gone/node:10 --target=nodejs --build-arg NODE_VERSION=10.16.0 --build-arg YARN_VERSION=1.16.0 .
gone/node\:10-onbuild:
$(CMD_BUILD) -t gone/node:10 --target=nodejs-onbuild --build-arg NODE_VERSION=10.16.0 --build-arg YARN_VERSION=1.16.0 .
gone/node\:10-compiler:
$(CMD_BUILD) -t gone/node:10 --target=nodejs-compiler --build-arg NODE_VERSION=10.16.0 --build-arg YARN_VERSION=1.16.0 .
gone/node\:10-compiler-onbuild:
$(CMD_BUILD) -t gone/node:10 --target=nodejs-compiler-onbuild --build-arg NODE_VERSION=10.16.0 --build-arg YARN_VERSION=1.16.0 .
gone/node\:11:
$(CMD_BUILD) -t gone/node:11 --target=nodejs --build-arg NODE_VERSION=11.15.0 --build-arg YARN_VERSION=1.16.0 .
gone/node\:11-onbuild:
$(CMD_BUILD) -t gone/node:11 --target=nodejs-onbuild --build-arg NODE_VERSION=11.15.0 --build-arg YARN_VERSION=1.16.0 .
gone/node\:11-compiler:
$(CMD_BUILD) -t gone/node:11 --target=nodejs-compiler --build-arg NODE_VERSION=11.15.0 --build-arg YARN_VERSION=1.16.0 .
gone/node\:11-compiler-onbuild:
$(CMD_BUILD) -t gone/node:11 --target=nodejs-compiler-onbuild --build-arg NODE_VERSION=11.15.0 --build-arg YARN_VERSION=1.16.0 .
gone/node\:12:
$(CMD_BUILD) -t gone/node:12 --target=nodejs --build-arg NODE_VERSION=12.3.1 --build-arg YARN_VERSION=1.16.0 .
gone/node\:12-onbuild:
$(CMD_BUILD) -t gone/node:12-onbuild --target=nodejs-onbuild --build-arg NODE_VERSION=12.3.1 --build-arg YARN_VERSION=1.16.0 .
gone/node\:12-compiler:
$(CMD_BUILD) -t gone/node:12-compiler --target=nodejs-compiler --build-arg NODE_VERSION=12.3.1 --build-arg YARN_VERSION=1.16.0 .
gone/node\:12-compiler-onbuild:
$(CMD_BUILD) -t gone/node:12-compiler-onbuild --target=nodejs-compiler-onbuild --build-arg NODE_VERSION=12.3.1 --build-arg YARN_VERSION=1.16.0 .
# ██▓ ▄▄▄ ▄▄▄█████▓▓█████ ██████ ▄▄▄█████▓ ▄▄▄▄ █ ██ ██▓ ██▓ ▓█████▄ ██████
# ▓██▒ ▒████▄ ▓ ██▒ ▓▒▓█ ▀ ▒██ ▒ ▓ ██▒ ▓▒ ▓█████▄ ██ ▓██▒▓██▒▓██▒ ▒██▀ ██▌▒██ ▒
# ▒██░ ▒██ ▀█▄ ▒ ▓██░ ▒░▒███ ░ ▓██▄ ▒ ▓██░ ▒░ ▒██▒ ▄██▓██ ▒██░▒██▒▒██░ ░██ █▌░ ▓██▄
# ▒██░ ░██▄▄▄▄██░ ▓██▓ ░ ▒▓█ ▄ ▒ ██▒░ ▓██▓ ░ ▒██░█▀ ▓▓█ ░██░░██░▒██░ ░▓█▄ ▌ ▒ ██▒
# ░██████▒▓█ ▓██▒ ▒██▒ ░ ░▒████▒▒██████▒▒ ▒██▒ ░ ░▓█ ▀█▓▒▒█████▓ ░██░░██████▒░▒████▓ ▒██████▒▒
# ░ ▒░▓ ░▒▒ ▓▒█░ ▒ ░░ ░░ ▒░ ░▒ ▒▓▒ ▒ ░ ▒ ░░ ░▒▓███▀▒░▒▓▒ ▒ ▒ ░▓ ░ ▒░▓ ░ ▒▒▓ ▒ ▒ ▒▓▒ ▒ ░
# ░ ░ ▒ ░ ▒ ▒▒ ░ ░ ░ ░ ░░ ░▒ ░ ░ ░ ▒░▒ ░ ░░▒░ ░ ░ ▒ ░░ ░ ▒ ░ ░ ▒ ▒ ░ ░▒ ░ ░
# ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░░░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░
# ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
# ░ ░
gone/php\:cli-latest:
$(CMD_BUILD) -t gone/php:cli --target=php-cli --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
gone/php\:cli-latest-onbuild:
$(CMD_BUILD) -t gone/php:cli-onbuild --target=php-cli-onbuild --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
gone/php\:apache-latest:
$(CMD_BUILD) -t gone/php:apache --target=php-apache --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
gone/php\:apache-latest-onbuild:
$(CMD_BUILD) -t gone/php:apache-onbuild --target=php-apache-onbuild --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
gone/php\:nginx-latest:
$(CMD_BUILD) -t gone/php:nginx --target=php-nginx --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
gone/php\:nginx-latest-onbuild:
$(CMD_BUILD) -t gone/php:nginx-onbuild --target=php-nginx-onbuild --build-arg "PHP_VERSION=7.3" --build-arg "PHP_PACKAGES=$(PHP_PACKAGES_73)" .
gone/node\:latest:
$(CMD_BUILD) -t gone/node --target=nodejs --build-arg NODE_VERSION=12.3.1 --build-arg YARN_VERSION=1.16.0 .

View file

@ -40,7 +40,7 @@ services:
context: .
target: nodejs
args:
NODE_VERSION: 8.16.0
NODE_VERSION: 10.16.2
YARN_VERSION: 1.15.2
node-10-onbuild:
extends: