Skip to content

Commit d6d5a29

Browse files
committed
chore(API-1925): Upgrade minimum PHP dependency to 8.0
1 parent 45ea324 commit d6d5a29

File tree

4 files changed

+41
-34
lines changed

4 files changed

+41
-34
lines changed

Dockerfile

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,21 @@ RUN apt-get update && \
2525
/usr/share/lintian/* /usr/share/locale/* /usr/share/man/*
2626

2727
# Install PHP with some extensions
28-
RUN apt-get update && \
28+
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
29+
sh -c 'echo "deb https://packages.sury.org/php/ bullseye main" > /etc/apt/sources.list.d/php.list' && \
30+
apt-get update && \
2931
apt-get --no-install-recommends --no-install-suggests --yes --quiet install \
30-
php7.4-cli \
31-
php7.4-apcu \
32-
php7.4-mbstring \
33-
php7.4-curl \
34-
php7.4-gd \
35-
php7.4-imagick \
36-
php7.4-intl \
37-
php7.4-bcmath \
38-
php7.4-xdebug \
39-
php7.4-xml \
40-
php7.4-zip && \
32+
php8.0-cli \
33+
php8.0-apcu \
34+
php8.0-mbstring \
35+
php8.0-curl \
36+
php8.0-gd \
37+
php8.0-imagick \
38+
php8.0-intl \
39+
php8.0-bcmath \
40+
php8.0-xdebug \
41+
php8.0-xml \
42+
php8.0-zip && \
4143
apt-get clean && apt-get --yes --quiet autoremove --purge && \
4244
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
4345
/usr/share/doc/* /usr/share/groff/* /usr/share/info/* /usr/share/linda/* \

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ DOCKER_RUN = DOCKER_BUILDKIT=1 docker-compose run php_client
44
help:
55
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-25s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
66

7+
.PHONY: build-image
8+
build-image: ## Build docker image
9+
DOCKER_BUILDKIT=1 docker-compose build
10+
11+
.PHONY:
712
.PHONY: dependencies
813
dependencies: ## Install composer dependencies
914
cp docker-compose.yml.dist docker-compose.yml

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
"require": {
23-
"php": ">=7.4",
23+
"php": ">=8.0",
2424
"psr/http-message": "^1.0",
2525
"psr/http-client": "^1.0",
2626
"psr/http-factory": "^1.0",
@@ -43,7 +43,7 @@
4343
"config": {
4444
"bin-dir": "bin",
4545
"platform": {
46-
"php": "7.4"
46+
"php": "8.0"
4747
}
4848
},
4949
"suggest": {

composer.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)