Skip to content

Commit

Permalink
Fix EOL builds. (#143)
Browse files Browse the repository at this point in the history
* centOS 7 is dead, use 'vault' mirror

* Fix libck as well

* Drop debian 10 and migrate example to debian 11.

* Update docker/centos7/centos7.Dockerfile

Co-authored-by: Viktor Szépe <viktor@szepe.net>

* Fix reference to debian 10

* Update docker/centos7/centos7.Dockerfile

Use `php --ri relay` not `php -m |grep relay`

Co-authored-by: Viktor Szépe <viktor@szepe.net>

* formatting

---------

Co-authored-by: Viktor Szépe <viktor@szepe.net>
Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 12, 2024
1 parent 07eed7d commit 7f5e618
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- centos8/centos8
- centos8/rocky8
- el9/el9
- debian/debian10
- debian/debian11
- ubuntu/ubuntu20
- mint21
- litespeed
Expand Down
6 changes: 6 additions & 0 deletions docker/centos7/centos7-yum-single.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM --platform=linux/amd64 centos:7

# It's dead, Jim
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

RUN yum update -y

RUN yum install -y "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
RUN yum install -y "https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
RUN yum install -y yum-utils
Expand Down
6 changes: 6 additions & 0 deletions docker/centos7/centos7-yum.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM --platform=linux/amd64 centos:7

# It's dead, Jim
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

RUN yum update -y

RUN yum install -y "https://rpms.remirepo.net/enterprise/remi-release-7.rpm"

RUN yum install -y \
Expand Down
13 changes: 11 additions & 2 deletions docker/centos7/centos7.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM --platform=linux/amd64 centos:7

# It's dead, Jim
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

RUN yum -y update

RUN yum install -y "https://rpms.remirepo.net/enterprise/remi-release-7.rpm"

RUN yum-config-manager --disable 'remi-php*' \
Expand All @@ -21,8 +27,8 @@ RUN yum install -y \
openssl11 \
libzstd \
lz4 \
https://download.opensuse.org/distribution/leap/15.5/repo/oss/x86_64/libck0-0.7.1-bp155.2.11.x86_64.rpm \
https://download.opensuse.org/distribution/leap/15.5/repo/oss/x86_64/libhiredis1_1_0-1.1.0-bp155.1.6.x86_64.rpm
https://rpmfind.net/linux/opensuse/distribution/leap/15.5/repo/oss/x86_64/libck0-0.7.1-bp155.2.11.x86_64.rpm \
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

# Relay requires the `msgpack` and `igbinary` extension
RUN yum install -y \
Expand All @@ -40,3 +46,6 @@ RUN PLATFORM=$(uname -m | sed 's/_/-/') \

# Inject UUID
RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" "$PHP_EXT_DIR/relay.so"

# Ensure relay was installed properly.
RUN php --ri relay
2 changes: 1 addition & 1 deletion docker/debian/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $ php --ri relay
## Debian (manual)

```bash
docker build --pull --tag relay-debian --file debian10.Dockerfile .
docker build --pull --tag relay-debian --file debian11.Dockerfile .
docker run -it relay-debian bash
$ php --ri relay
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:10.10
FROM debian:11

RUN apt-get update

Expand Down Expand Up @@ -40,3 +40,6 @@ RUN PLATFORM=$(uname -m | sed 's/_/-/') \

# Inject UUID
RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" $(php-config --extension-dir)/relay.so

# Ensure Relay is correctly installed
RUN php --ri relay

2 comments on commit 7f5e618

@szepeviktor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tillkruss Big confusion 💥 with v0.8.1
Packagist got you: https://packagist.org/packages/cachewerk/relay#v0.8.1

@tillkruss
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szepeviktor We just tagged v0.8.1

Please sign in to comment.