Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitLab Drupal CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
GitLab Drupal CI
Commits
ad200281
Commit
ad200281
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Initial Dockerfile
parent
ad430329
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5621
passed
6 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+0
-0
0 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+10
-0
10 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+37
-0
37 additions, 0 deletions
Dockerfile
README.md
+7
-0
7 additions, 0 deletions
README.md
with
54 additions
and
0 deletions
.gitignore
0 → 100644
+
0
−
0
View file @
ad200281
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
10
−
0
View file @
ad200281
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
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
37
−
0
View file @
ad200281
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
This diff is collapsed.
Click to expand it.
README.md
+
7
−
0
View file @
ad200281
# Usage
TBD
# Credit
-
[
Image from jonaskello
](
https://github.com/jonaskello/docker-and-compose
)
-
[
Alpine glibc from sgerrand
](
https://github.com/sgerrand/alpine-pkg-glibc
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment