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
d6020dd6
Commit
d6020dd6
authored
5 months ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Bug fixes
parent
a80c6c0d
No related branches found
No related tags found
1 merge request
!75
Merging develop into main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+20
-20
20 additions, 20 deletions
Dockerfile
with
20 additions
and
20 deletions
Dockerfile
+
20
−
20
View file @
d6020dd6
ARG
ALPINE_VERSION
ARG
PHP_MAJOR_VERSION
ARG
ALPINE_VERSION
=undefined
ARG
PHP_MAJOR_VERSION
=undefined
FROM
php:${PHP_MAJOR_VERSION}-cli-alpine${ALPINE_VERSION}
ARG
VERSION
ARG
VERSION
=undefined
LABEL
com.example.vendor="LakeDrops" \
maintainer="juergen.haas@lakedrops.com" \
version="${VERSION}" \
description="An image for GitLab runner to build and test Drupal projects."
ARG
ALPINE_VERSION
ARG
PHP_MAJOR_VERSION
ARG
ALPINE_VERSION
=undefined
ARG
PHP_MAJOR_VERSION
=undefined
ARG
AHOY_VERSION=2.2.0
ARG
DIFFTASTIC_VERSION=0.60.0
ARG
DOCKER_CHANNEL=stable
...
...
@@ -19,12 +19,12 @@ ARG DOCKER_CHANNEL=stable
ARG
DOCKER_VERSION=27.3.1
ARG
GIT_EXTRAS_VERSION=7.2.0
ARG
GLAB_VERSION=1.48.0
ARG
apkArch
ARG
APK_ARCH=undefined
ARG
buildx_version=0.17.1
# IMPORTANT: keep the docker compose version in sync with the Ansible Docker role.
ARG
compose_version=2.29.7
ARG
composer_version=2.8.1
ARG
dockerArch
ARG
DOCKER_ARCH=undefined
ARG
fx_version=35.0.0
ARG
glibc_version=2.35-r1
ARG
yq_version=4.44.3
...
...
@@ -36,20 +36,20 @@ ADD etc/* /etc/
RUN
echo
'hosts: files dns'
>
/etc/nsswitch.conf
&&
\
set
-eux
&&
\
\
apkArch
=
"
$(
apk
--print-arch
)
"
&&
\
case
"
$
apkArch
"
in
\
x86_64
)
dockerArch
=
'x86_64'
;;
\
armhf
)
dockerArch
=
'armel'
;;
\
aarch64
)
dockerArch
=
'aarch64'
;;
\
ppc64le
)
dockerArch
=
'ppc64le'
;;
\
s390x
)
dockerArch
=
's390x'
;;
\
*
)
echo
>
&2
"error: unsupported architecture (
$
apkArch
)"
;
exit
1
;;
\
APK_ARCH
=
"
$(
apk
--print-arch
)
"
&&
\
case
"
$
APK_ARCH
"
in
\
x86_64
)
DOCKER_ARCH
=
'x86_64'
;;
\
armhf
)
DOCKER_ARCH
=
'armel'
;;
\
aarch64
)
DOCKER_ARCH
=
'aarch64'
;;
\
ppc64le
)
DOCKER_ARCH
=
'ppc64le'
;;
\
s390x
)
DOCKER_ARCH
=
's390x'
;;
\
*
)
echo
>
&2
"error: unsupported architecture (
$
APK_ARCH
)"
;
exit
1
;;
\
esac
&&
\
\
apk add
--no-cache
ca-certificates curl openssl
&&
\
\
if
!
curl
-fSL
-o
docker.tgz
"https://download.docker.com/linux/static/
${
DOCKER_CHANNEL
}
/
${
dockerArch
}
/docker-
${
DOCKER_VERSION
}
.tgz"
;
then
\
echo
>
&2
"error: failed to download 'docker-
${
DOCKER_VERSION
}
' from '
${
DOCKER_CHANNEL
}
' for '
${
dockerArch
}
'"
;
\
if
!
curl
-fSL
-o
docker.tgz
"https://download.docker.com/linux/static/
${
DOCKER_CHANNEL
}
/
${
DOCKER_ARCH
}
/docker-
${
DOCKER_VERSION
}
.tgz"
;
then
\
echo
>
&2
"error: failed to download 'docker-
${
DOCKER_VERSION
}
' from '
${
DOCKER_CHANNEL
}
' for '
${
DOCKER_ARCH
}
'"
;
\
exit
1
;
\
fi
&&
\
\
...
...
@@ -100,9 +100,9 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
pip
install
python-gitlab
&&
\
pip
install
visidata
&&
\
\
wget
-q
https://gitlab.com/gitlab-org/cli/-/releases/v
${
GLAB_VERSION
}
/downloads/glab_
${
GLAB_VERSION
}
_
L
inux_
x86_
64.apk
&&
\
apk add
--no-cache
--allow-untrusted
glab_
${
GLAB_VERSION
}
_
L
inux_
x86_
64.apk
&&
\
rm
glab_
${
GLAB_VERSION
}
_
L
inux_
x86_
64.apk
&&
\
wget
-q
https://gitlab.com/gitlab-org/cli/-/releases/v
${
GLAB_VERSION
}
/downloads/glab_
${
GLAB_VERSION
}
_
l
inux_
amd
64.apk
&&
\
apk add
--no-cache
--allow-untrusted
glab_
${
GLAB_VERSION
}
_
l
inux_
amd
64.apk
&&
\
rm
glab_
${
GLAB_VERSION
}
_
l
inux_
amd
64.apk
&&
\
\
wget
-q
https://github.com/Wilfred/difftastic/releases/download/
${
DIFFTASTIC_VERSION
}
/difft-x86_64-unknown-linux-gnu.tar.gz
&&
\
tar
-xf
difft-x86_64-unknown-linux-gnu.tar.gz
&&
\
...
...
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