Skip to content

Commit

Permalink
Replace relay-pkg.so with relay.so in Dockerfile for Amazon Linux 2023 (
Browse files Browse the repository at this point in the history
#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>
  • Loading branch information
yatsukhnenko and tillkruss committed Aug 28, 2023
1 parent 4b2af7b commit bf1cf9b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/al2023.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,21 @@ RUN pecl install igbinary && \

ARG RELAY=v0.6.6

# Install Relay dependencies
RUN yum install -y --nogpgcheck \
--repofrompath opensuse,http://download.opensuse.org/pub/opensuse/distribution/leap/15.5/repo/oss/ \
libopenssl1_1 \
libhiredis1_1_0 \
libck0

RUN ARCH=$(uname -m | sed 's/_/-/') \
PHP=$(php -r 'echo substr(PHP_VERSION, 0, 3);') \
ARTIFACT="https://builds.r2.relay.so/$RELAY/relay-$RELAY-php$PHP-el9-$ARCH.tar.gz" \
&& curl -sfSL $ARTIFACT | tar xz --strip-components=1 -C /tmp

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

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

0 comments on commit bf1cf9b

Please sign in to comment.