Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dbp-relay-server-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Relay API Gateway
dbp-relay-server-template
Commits
2c4b7b65
Commit
2c4b7b65
authored
3 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Update the docker dev env to Debian Bullseye
This means PHP 7.3->7.4 and we can use the Debian's own PHP packages
parent
b0576487
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-dev/docker-compose.yml
+3
-3
3 additions, 3 deletions
docker-dev/docker-compose.yml
docker-dev/php-fpm/Dockerfile
+21
-28
21 additions, 28 deletions
docker-dev/php-fpm/Dockerfile
with
24 additions
and
31 deletions
docker-dev/docker-compose.yml
+
3
−
3
View file @
2c4b7b65
...
...
@@ -18,8 +18,8 @@ services:
working_dir
:
/application
volumes
:
-
..:/application
-
./php-fpm/php-ini-overrides.ini:/etc/php/7.
3
/fpm/conf.d/99-overrides.ini
-
./php-fpm/php-fpm-overrides.conf:/etc/php/7.
3
/fpm/pool.d/z-overrides.conf
-
./php-fpm/php-ini-overrides.ini:/etc/php/7.
4
/fpm/conf.d/99-overrides.ini
-
./php-fpm/php-fpm-overrides.conf:/etc/php/7.
4
/fpm/pool.d/z-overrides.conf
queue-worker
:
environment
:
...
...
@@ -31,7 +31,7 @@ services:
volumes
:
-
./php-fpm/queue-worker.conf:/etc/supervisor/conf.d/queue-worker.conf
-
..:/application
-
./php-fpm/php-ini-overrides.ini:/etc/php/7.
3
/cli/conf.d/99-overrides.ini
-
./php-fpm/php-ini-overrides.ini:/etc/php/7.
4
/cli/conf.d/99-overrides.ini
redis
:
image
:
"
redis"
...
...
This diff is collapsed.
Click to expand it.
docker-dev/php-fpm/Dockerfile
+
21
−
28
View file @
2c4b7b65
FROM
debian:bu
ster
FROM
debian:bu
llseye
ENV
DEBIAN_FRONTEND=noninteractive
# Basics
RUN
apt-get update
&&
apt-get
install
-y
wget lsb-release
# Install PHP and the rest
# Debian Buster only has php-redis 4.2, we need 4.3
RUN
wget
-O
/etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
\
&&
echo
"deb https://packages.sury.org/php/
$(
lsb_release
-sc
)
main"
>
/etc/apt/sources.list.d/php.list
\
&&
apt-get update
\
RUN
apt-get update
\
&&
apt-get
-y
--no-install-recommends
install
\
ca-certificates
\
curl
\
...
...
@@ -18,23 +12,23 @@ RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
git
\
php-apcu
\
php-apcu-bc
\
php7.
3
-cli
\
php7.
3
-curl
\
php7.
3
-gd
\
php7.
3
-soap
\
php7.
3
-json
\
php7.
3
-mbstring
\
php7.
3
-mysql
\
php7.
3
-opcache
\
php7.
3
-readline
\
php7.
3
-xml
\
php7.
3
-intl
\
php7.
3
-zip
\
php7.
3
-redis
\
php7.
3
-fpm
\
php7.
3
-ldap
\
php7.
3
-gmp
\
php7.
3
-xdebug
\
php7.
4
-cli
\
php7.
4
-curl
\
php7.
4
-gd
\
php7.
4
-soap
\
php7.
4
-json
\
php7.
4
-mbstring
\
php7.
4
-mysql
\
php7.
4
-opcache
\
php7.
4
-readline
\
php7.
4
-xml
\
php7.
4
-intl
\
php7.
4
-zip
\
php7.
4
-redis
\
php7.
4
-fpm
\
php7.
4
-ldap
\
php7.
4
-gmp
\
php7.
4
-xdebug
\
composer
\
supervisor
\
&&
apt-get clean
\
...
...
@@ -48,12 +42,11 @@ RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Install a newer composer
RUN
mkdir
-p
/home/user/.local/bin
RUN
wget https://raw.githubusercontent.com/composer/getcomposer.org/bfd95e2a4383ee9cf7c058c2df29d7acb5f86d77/web/installer
-O
-
-q
| php
--
RUN
mv
composer.phar /home/user/.local/bin/composer
RUN
curl
-L
https://github.com/composer/getcomposer.org/raw/main/web/download/2.2.5/composer.phar
-o
/home/user/.local/bin/composer
ENV
PATH "/home/user/.local/bin:${PATH}"
USER
user
CMD
["/usr/sbin/php-fpm7.
3
", "-O" ]
CMD
["/usr/sbin/php-fpm7.
4
", "-O" ]
EXPOSE
9000
WORKDIR
"/application"
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