Skip to content
Snippets Groups Projects
Commit f4f79991 authored by jurgenhaas's avatar jurgenhaas
Browse files

l3d#38 Update Docker to 19.03.5

l3d#38 Update Docker Compose to 1.25.1
l3d#40 Update to Python 3
No longer update image for PHP 7.0 and 7.1
parent c85ae5b8
No related branches found
No related tags found
No related merge requests found
Pipeline #12151 passed
before_script: before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
php-7.0: #php-7.0:
stage: build # stage: build
script: # script:
- docker build --pull --build-arg ALPINE_VERSION=3.5 --build-arg PHP_VERSION=7.0 -t $CI_REGISTRY_IMAGE:php-7.0 . # - docker build --pull --build-arg ALPINE_VERSION=3.5 --build-arg PHP_VERSION=7.0 -t $CI_REGISTRY_IMAGE:php-7.0 .
- docker push $CI_REGISTRY_IMAGE:php-7.0 # - docker push $CI_REGISTRY_IMAGE:php-7.0
only: # only:
- master # - master
php-7.1: #php-7.1:
stage: build # stage: build
script: # script:
- docker build --pull --build-arg ALPINE_VERSION=3.7 --build-arg PHP_VERSION=7.1 -t $CI_REGISTRY_IMAGE:php-7.1 . # - docker build --pull --build-arg ALPINE_VERSION=3.7 --build-arg PHP_VERSION=7.1 -t $CI_REGISTRY_IMAGE:php-7.1 .
- docker push $CI_REGISTRY_IMAGE:php-7.1 # - docker push $CI_REGISTRY_IMAGE:php-7.1
only: # only:
- master # - master
php-7.2: php-7.2:
stage: build stage: build
......
...@@ -2,17 +2,18 @@ FROM alpine:3.8 ...@@ -2,17 +2,18 @@ FROM alpine:3.8
LABEL com.example.vendor="LakeDrops" \ LABEL com.example.vendor="LakeDrops" \
maintainer="juergen.haas@lakedrops.com" \ maintainer="juergen.haas@lakedrops.com" \
version="1.5.2" \
description="An image for GitLab runner to build and test Drupal projects." description="An image for GitLab runner to build and test Drupal projects."
ARG ALPINE_VERSION ARG ALPINE_VERSION
ARG PHP_VERSION ARG PHP_VERSION
ARG compose_version=1.21.2 ARG compose_version=1.25.1
ARG glibc_version=2.28-r0 ARG glibc_version=2.28-r0
ARG apkArch ARG apkArch
ARG dockerArch ARG dockerArch
ARG DOCKER_CHANNEL=stable ARG DOCKER_CHANNEL=stable
ARG DOCKER_VERSION=18.06.1-ce ARG DOCKER_VERSION=19.03.5
ARG GIT_EXTRAS_VERSION=4.7.0
ARG AHOY_VERSION=2.0.0
RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
set -eux && \ set -eux && \
...@@ -41,7 +42,7 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \ ...@@ -41,7 +42,7 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
echo "StrictHostKeyChecking no" >> /root/.ssh/config && \ echo "StrictHostKeyChecking no" >> /root/.ssh/config && \
\ \
apk update && \ apk update && \
apk add --no-cache openssh wget make patch bash fish python git git-lfs unzip acl && \ apk add --no-cache openssh wget make patch bash fish python3 git git-lfs unzip acl && \
\ \
wget -q https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -O /etc/apk/keys/sgerrand.rsa.pub && \ wget -q https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -O /etc/apk/keys/sgerrand.rsa.pub && \
wget -q https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${glibc_version}/glibc-${glibc_version}.apk && \ wget -q https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${glibc_version}/glibc-${glibc_version}.apk && \
...@@ -51,8 +52,10 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \ ...@@ -51,8 +52,10 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib && \ ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib && \
ln -s /usr/lib/libgcc_s.so.1 /lib/libgcc_s.so.1 && \ ln -s /usr/lib/libgcc_s.so.1 /lib/libgcc_s.so.1 && \
ln -s /lib/libgcc_s.so.1 /usr/glibc-compat/lib/ && \ ln -s /lib/libgcc_s.so.1 /usr/glibc-compat/lib/ && \
ln -s python3 /usr/bin/python && \
ln -s pip3 /usr/bin/pip && \
\ \
wget -q https://github.com/ahoy-cli/ahoy/releases/download/2.0.0/ahoy-bin-`uname -s`-amd64 -O /usr/local/bin/ahoy && \ wget -q https://github.com/ahoy-cli/ahoy/releases/download/${AHOY_VERSION}/ahoy-bin-`uname -s`-amd64 -O /usr/local/bin/ahoy && \
chmod +x /usr/local/bin/ahoy && \ chmod +x /usr/local/bin/ahoy && \
\ \
wget -q https://github.com/docker/compose/releases/download/${compose_version}/docker-compose-`uname -s`-`uname -m` -O /usr/local/bin/docker-compose && \ wget -q https://github.com/docker/compose/releases/download/${compose_version}/docker-compose-`uname -s`-`uname -m` -O /usr/local/bin/docker-compose && \
...@@ -64,7 +67,7 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \ ...@@ -64,7 +67,7 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
git clone https://github.com/tj/git-extras.git && \ git clone https://github.com/tj/git-extras.git && \
cd git-extras && \ cd git-extras && \
#git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) && \ #git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) && \
git checkout 4.7.0 && \ git checkout ${GIT_EXTRAS_VERSION} && \
make install && \ make install && \
cd .. && \ cd .. && \
rm -rf git-extras && \ rm -rf git-extras && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment