Skip to content

Commit ad8eb5f

Browse files
committed
add Ubuntu 24.04 example
1 parent e33de7a commit ad8eb5f

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- el9/el9
3434
- debian/debian11
3535
- ubuntu/ubuntu20
36+
- ubuntu/ubuntu24
3637
- mint21
3738
- litespeed
3839
- openlitespeed

docker/ubuntu/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The installation using APT is identical for 16.04, 18.04, 20.04 and 22.04.
1717
## Ubuntu (manual)
1818

1919
```bash
20-
docker build --pull --tag relay-ubuntu --file ubuntu20.Dockerfile .
20+
docker build --pull --tag relay-ubuntu --file ubuntu24.Dockerfile .
2121
docker run -it relay-ubuntu bash
2222
$ php --ri relay
2323
```

docker/ubuntu/ubuntu24.Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM ubuntu:24.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update
6+
7+
RUN apt-get install -y \
8+
ca-certificates \
9+
apt-transport-https
10+
11+
RUN apt-get install -y \
12+
php-dev \
13+
php-fpm
14+
15+
# Install Relay dependencies
16+
RUN apt-get install -y \
17+
php-msgpack \
18+
php-igbinary
19+
20+
ARG RELAY=v0.8.1
21+
22+
# Download Relay
23+
RUN ARCH=$(uname -m | sed 's/_/-/') \
24+
PHP=$(php -r 'echo substr(PHP_VERSION, 0, 3);') \
25+
&& curl -L "https://builds.r2.relay.so/$RELAY/relay-$RELAY-php$PHP-debian-$ARCH+libssl3.tar.gz" | tar xz --strip-components=1 -C /tmp
26+
27+
# Copy relay.{so,ini}
28+
RUN cp "/tmp/relay.ini" $(php-config --ini-dir)/30-relay.ini \
29+
&& cp "/tmp/relay-pkg.so" $(php-config --extension-dir)/relay.so
30+
31+
# Inject UUID
32+
RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" $(php-config --extension-dir)/relay.so

0 commit comments

Comments
 (0)