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
d2140f25
Commit
d2140f25
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
l3d#46
Change base image
parent
ac6a12bf
No related branches found
Branches containing commit
Tags
v1.6.1
Tags containing commit
No related merge requests found
Pipeline
#28248
failed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+2
-1
2 additions, 1 deletion
CHANGELOG
Dockerfile
+9
-29
9 additions, 29 deletions
Dockerfile
with
11 additions
and
30 deletions
CHANGELOG
+
2
−
1
View file @
d2140f25
v1.5.
0
2020-10-15
v1.5.
1
2020-10-15
-----------------
Add container for PHP 7.4
Change build strategy: use PHP-Alpine image instead of vanilla Alpine
v1.4.4 2020-05-22
-----------------
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
9
−
29
View file @
d2140f25
ARG
ALPINE_VERSION
ARG
PHP_VERSION
FROM
alpine
:
${ALPINE_VERSION}
FROM
php:${PHP_VERSION}-cli-
alpine${ALPINE_VERSION}
ARG
VERSION
...
...
@@ -49,7 +50,7 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
echo
"StrictHostKeyChecking no"
>>
/root/.ssh/config
&&
\
\
apk update
&&
\
apk add
--no-cache
mdocml-apropos openssh wget make patch bash fish python3 git git-lfs unzip acl
&&
\
apk add
--no-cache
mdocml-apropos openssh wget make patch bash fish python3 git git-lfs unzip acl
libpng-dev libzip-dev gnu-libiconv
&&
\
\
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
&&
\
...
...
@@ -78,34 +79,13 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
cd
..
&&
\
rm
-rf
git-extras
&&
\
\
cp
/etc/apk/repositories /etc/apk/repositories.org
&&
\
echo
"http://dl-cdn.alpinelinux.org/alpine/v
${
ALPINE_VERSION
}
/main"
>
/etc/apk/repositories
&&
\
echo
"http://dl-cdn.alpinelinux.org/alpine/v
${
ALPINE_VERSION
}
/community"
>>
/etc/apk/repositories
&&
\
apk update
&&
\
apk add
--no-cache
\
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 php7-iconv
\
php7-bcmath
&&
\
if
[
"
${
PHP_VERSION
}
"
=
"7.0"
]
;
then
\
echo
"no extra packages required"
;
\
else
\
apk add
--no-cache
php7-fileinfo php7-tokenizer php7-simplexml php7-xmlreader php7-xmlwriter
;
\
fi
&&
\
if
[
"
${
PHP_VERSION
}
"
=
"7.2"
]
;
then
\
apk add
--no-cache
php7-sodium
;
\
fi
&&
\
if
[
"
${
PHP_VERSION
}
"
=
"7.3"
]
;
then
\
apk add
--no-cache
php7-sodium gnu-libiconv
;
\
fi
&&
\
if
[
"
${
PHP_VERSION
}
"
=
"7.4"
]
;
then
\
apk add
--no-cache
php7-sodium gnu-libiconv
;
\
fi
&&
\
rm
/etc/apk/repositories
&&
\
mv
/etc/apk/repositories.org /etc/apk/repositories
&&
\
apk update
&&
\
docker-php-ext-install
\
bcmath
\
gd
\
zip
&&
\
\
sed
-i
-e
's/memory_limit = 128M/memory_limit = -1/g'
/etc/php
7
/php.ini
&&
\
ln
-s
/usr/bin/php7 /usr/local/bin/php
&&
\
mv
/usr/local/etc/php/php.ini-development /usr/local
/etc/php/php.ini
&&
\
sed
-i
-e
's/memory_limit = 128M/memory_limit = -1/g'
/usr/local/etc/php/php.ini
&&
\
\
composer selfupdate
&&
\
composer global require
"hirak/prestissimo:^0.3"
&&
\
...
...
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