Skip to content

Commit bf1cf9b

Browse files
Replace relay-pkg.so with relay.so in Dockerfile for Amazon Linux 2023 (#115)
* Replace relay-pkg.so with relay.so in Dockerfile for Amazon Linux 2023 * Install packages from repo * Update al2023.Dockerfile --------- Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
1 parent 4b2af7b commit bf1cf9b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docker/al2023.Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,21 @@ RUN pecl install igbinary && \
1616

1717
ARG RELAY=v0.6.6
1818

19+
# Install Relay dependencies
20+
RUN yum install -y --nogpgcheck \
21+
--repofrompath opensuse,http://download.opensuse.org/pub/opensuse/distribution/leap/15.5/repo/oss/ \
22+
libopenssl1_1 \
23+
libhiredis1_1_0 \
24+
libck0
25+
1926
RUN ARCH=$(uname -m | sed 's/_/-/') \
2027
PHP=$(php -r 'echo substr(PHP_VERSION, 0, 3);') \
2128
ARTIFACT="https://builds.r2.relay.so/$RELAY/relay-$RELAY-php$PHP-el9-$ARCH.tar.gz" \
2229
&& curl -sfSL $ARTIFACT | tar xz --strip-components=1 -C /tmp
2330

2431
# Copy relay.{so,ini}
2532
RUN cp "/tmp/relay.ini" $(php-config --ini-dir)/50-relay.ini \
26-
&& cp "/tmp/relay-pkg.so" $(php-config --extension-dir)/relay.so
33+
&& cp "/tmp/relay.so" $(php-config --extension-dir)/relay.so
2734

2835
# Inject UUID
2936
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)