File tree 6 files changed +29
-5
lines changed
6 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 31
31
- centos8/centos8
32
32
- centos8/rocky8
33
33
- el9/el9
34
- - debian/debian10
34
+ - debian/debian11
35
35
- ubuntu/ubuntu20
36
36
- mint21
37
37
- litespeed
Original file line number Diff line number Diff line change 1
1
FROM --platform=linux/amd64 centos:7
2
2
3
+ # It's dead, Jim
4
+ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
5
+ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
6
+
7
+ RUN yum update -y
8
+
3
9
RUN yum install -y "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
4
10
RUN yum install -y "https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
5
11
RUN yum install -y yum-utils
Original file line number Diff line number Diff line change 1
1
FROM --platform=linux/amd64 centos:7
2
2
3
+ # It's dead, Jim
4
+ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
5
+ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
6
+
7
+ RUN yum update -y
8
+
3
9
RUN yum install -y "https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
4
10
5
11
RUN yum install -y \
Original file line number Diff line number Diff line change 1
1
FROM --platform=linux/amd64 centos:7
2
2
3
+ # It's dead, Jim
4
+ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
5
+ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
6
+
7
+ RUN yum -y update
8
+
3
9
RUN yum install -y "https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
4
10
5
11
RUN yum-config-manager --disable 'remi-php*' \
@@ -21,8 +27,8 @@ RUN yum install -y \
21
27
openssl11 \
22
28
libzstd \
23
29
lz4 \
24
- https://download. opensuse.org /distribution/leap/15.5/repo/oss/x86_64/libck0-0.7.1-bp155.2.11.x86_64.rpm \
25
- https://download. opensuse.org /distribution/leap/15.5/repo/oss/x86_64/libhiredis1_1_0-1.1.0-bp155.1.6.x86_64.rpm
30
+ https://rpmfind.net/linux/ opensuse/distribution/leap/15.5/repo/oss/x86_64/libck0-0.7.1-bp155.2.11.x86_64.rpm \
31
+ https://rpmfind.net/linux/ opensuse/distribution/leap/15.5/repo/oss/x86_64/libhiredis1_1_0-1.1.0-bp155.1.6.x86_64.rpm
26
32
27
33
# Relay requires the `msgpack` and `igbinary` extension
28
34
RUN yum install -y \
@@ -40,3 +46,6 @@ RUN PLATFORM=$(uname -m | sed 's/_/-/') \
40
46
41
47
# Inject UUID
42
48
RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" "$PHP_EXT_DIR/relay.so"
49
+
50
+ # Ensure relay was installed properly.
51
+ RUN php --ri relay
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ $ php --ri relay
15
15
## Debian (manual)
16
16
17
17
``` bash
18
- docker build --pull --tag relay-debian --file debian10 .Dockerfile .
18
+ docker build --pull --tag relay-debian --file debian11 .Dockerfile .
19
19
docker run -it relay-debian bash
20
20
$ php --ri relay
21
21
```
Original file line number Diff line number Diff line change 1
- FROM debian:10.10
1
+ FROM debian:11
2
2
3
3
RUN apt-get update
4
4
@@ -40,3 +40,6 @@ RUN PLATFORM=$(uname -m | sed 's/_/-/') \
40
40
41
41
# Inject UUID
42
42
RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" $(php-config --extension-dir)/relay.so
43
+
44
+ # Ensure Relay is correctly installed
45
+ RUN php --ri relay
You can’t perform that action at this time.
0 commit comments