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

Initial Dockerfile

parent ad430329
No related branches found
No related tags found
No related merge requests found
Pipeline #5621 passed
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build-master:
stage: build
script:
- docker build --pull -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
only:
- master
FROM docker:18.06.1
LABEL com.example.vendor="PARAGON Executive Service GmbH" \
maintainer="juergen@paragon-es.de" \
version="1.0.0" \
description="An image for GitLab runner to build and test Drupal projects."
ARG compose_version=1.21.2
RUN apk update && \
apk add --no-cache curl openssl openssh ca-certificates wget make && \
\
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/2.28-r0/glibc-2.28-r0.apk && \
apk add --no-cache glibc-2.28-r0.apk && \
rm glibc-2.28-r0.apk && \
ln -s /lib/libz.so.1 /usr/glibc-compat/lib/ && \
ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib && \
\
apk add --no-cache bash python nodejs git unzip \
php7 php7-phar php7-json php7-dom php7-gd php7-mbstring php7-openssl \
php7-pdo php7-curl php7-xml php7-zip php7-session php7-ctype && \
ln -s /usr/bin/php7 /usr/local/bin/php &&\
\
wget -q https://github.com/docker/compose/releases/download/${compose_version}/docker-compose-`uname -s`-`uname -m` -O /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose && \
\
wget -q https://getcomposer.org/composer.phar -O /usr/local/bin/composer && \
chmod +x /usr/local/bin/composer && \
composer selfupdate && \
\
git clone https://github.com/tj/git-extras.git && \
cd git-extras && \
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) && \
make install && \
cd .. && \
rm -rf git-extras
# Usage
TBD
# Credit
- [Image from jonaskello](https://github.com/jonaskello/docker-and-compose)
- [Alpine glibc from sgerrand](https://github.com/sgerrand/alpine-pkg-glibc)
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