Skip to content

Commit 4b2af7b

Browse files
Replace relay-pkg.so with relay.so in Dockerfile for Amazon Linux 2 (#110)
* Replace relay-pkg.so with relay.so in Dockerfile for Amazon Linux 2 * group deps command * sort * spacing --------- Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
1 parent 0bbdac7 commit 4b2af7b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docker/al2.Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,27 @@ RUN yum -y install \
44
gcc \
55
make \
66
tar \
7+
gzip \
78
yum-utils
89

910
RUN yum remove php*
1011
RUN amazon-linux-extras enable php8.0
1112

1213
RUN yum install -y \
1314
php-cli \
14-
php-fpm \
1515
php-pear \
1616
php-devel \
17-
openssl11 \
18-
libzstd-devel
17+
openssl11
1918

2019
RUN pecl config-set php_ini /etc/php.ini
2120

21+
# Install Relay dependencies
22+
RUN yum install -y \
23+
libzstd \
24+
lz4 \
25+
https://download.opensuse.org/distribution/leap/15.5/repo/oss/x86_64/libck0-0.7.1-bp155.2.7.x86_64.rpm \
26+
https://download.opensuse.org/distribution/leap/15.5/repo/oss/x86_64/libhiredis1_1_0-1.1.0-bp155.1.1.x86_64.rpm
27+
2228
# Relay requires the `msgpack` extension
2329
RUN pecl install msgpack && \
2430
echo "extension = msgpack.so" > $(php-config --ini-dir)/40-msgpack.ini
@@ -37,7 +43,7 @@ RUN ARCH=$(uname -m | sed 's/_/-/') \
3743
# Copy relay.{so,ini}
3844
RUN ARCH=$(uname -m | sed 's/_/-/') \
3945
&& cp "/tmp/relay-$RELAY-php8.0-centos7-$ARCH/relay.ini" $(php-config --ini-dir)/50-relay.ini \
40-
&& cp "/tmp/relay-$RELAY-php8.0-centos7-$ARCH/relay-pkg.so" $(php-config --extension-dir)/relay.so
46+
&& cp "/tmp/relay-$RELAY-php8.0-centos7-$ARCH/relay.so" $(php-config --extension-dir)/relay.so
4147

4248
# Inject UUID
4349
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)