Skip to content

Commit 9007bc9

Browse files
committed
add debian 12 docker file
1 parent d6a0ea3 commit 9007bc9

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

.github/workflows/docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
- centos8/centos8-dnf
9292
- el9/el9-dnf
9393
- debian/debian11-apt
94+
- debian/debian12-apt
9495
- ubuntu/ubuntu22-apt
9596

9697
services:

docker/debian/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ These Docker environments are concrete examples of Relay's [installation instruc
77
Relay has an APT package compatible with Ondřej’s wonderful `ppa:ondrej/php` repository:
88

99
```bash
10-
docker build --pull --tag relay-debian-apt --file debian11-apt.Dockerfile .
10+
docker build --pull --tag relay-debian-apt --file debian12-apt.Dockerfile .
1111
docker run -it relay-debian-apt bash
1212
$ php --ri relay
1313
```

docker/debian/debian11-apt.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN echo "deb [signed-by=/usr/share/keyrings/ondrej.gpg] https://packages.sury.o
1212
RUN apt-get update
1313

1414
RUN apt-get install -y \
15-
php8.1-fpm
15+
php8.2-fpm
1616

1717
# Add Relay repository
1818
RUN wget -q "https://repos.r2.relay.so/key.gpg" -O- | gpg --dearmor -o /usr/share/keyrings/cachewerk.gpg
@@ -21,7 +21,7 @@ RUN apt-get update
2121

2222
# Install Relay
2323
RUN apt-get install -y \
24-
php8.1-relay
24+
php8.2-relay
2525

2626
## If no specific PHP version is installed just omit the version number:
2727

docker/debian/debian12-apt.Dockerfile

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM debian:12
2+
3+
RUN apt-get update
4+
5+
RUN apt-get install -y \
6+
wget \
7+
gnupg \
8+
lsb-release
9+
10+
RUN wget -q "https://packages.sury.org/php/apt.gpg" -O /usr/share/keyrings/ondrej.gpg
11+
RUN echo "deb [signed-by=/usr/share/keyrings/ondrej.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/ondrej.list > /dev/null
12+
RUN apt-get update
13+
14+
RUN apt-get install -y \
15+
php8.3-fpm
16+
17+
# Add Relay repository
18+
RUN wget -q "https://repos.r2.relay.so/key.gpg" -O- | gpg --dearmor -o /usr/share/keyrings/cachewerk.gpg
19+
RUN echo "deb [signed-by=/usr/share/keyrings/cachewerk.gpg] https://repos.r2.relay.so/deb $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/cachewerk.list > /dev/null
20+
RUN apt-get update
21+
22+
# Install Relay
23+
RUN apt-get install -y \
24+
php8.3-relay
25+
26+
## If no specific PHP version is installed just omit the version number:
27+
28+
# RUN apt-get install -y \
29+
# php-dev \
30+
# php-fpm \
31+
# php-relay

0 commit comments

Comments
 (0)