Skip to content

Commit 54578a4

Browse files
committed
fix arch/deb11
1 parent 4d066ae commit 54578a4

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

docker/arch.Dockerfile

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
1-
FROM archlinux:latest
1+
FROM archlinux:base-devel
22

33
RUN pacman -Syu --noconfirm \
44
&& pacman -S --noconfirm php
55

6-
ARG RELAY=v0.12.1
6+
RUN curl -L -o /tmp/go-pear.phar https://pear.php.net/go-pear.phar && \
7+
php /tmp/go-pear.phar
78

89
# Install Relay dependencies
910
RUN pacman -S --noconfirm \
10-
base-devel \
11-
# hiredis \
1211
libck \
1312
lz4
1413

15-
# Install hiredis-ssl
14+
# Install Relay dependency (hiredis)
1615
RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /tmp \
17-
&& PREFIX=/usr USE_SSL=1 make -C /tmp/hiredis-1.2.0 install
18-
19-
# Install php-pear
20-
RUN curl -L https://aur.archlinux.org/cgit/aur.git/snapshot/php-pear.tar.gz | sudo -u nobody tar -xzC /tmp \
21-
&& pushd /tmp/php-pear \
22-
&& sudo -u nobody makepkg --skippgpcheck \
23-
&& pacman -U --noconfirm php-pear-1:1.10.23-2-any.pkg.tar.zst \
24-
&& popd
16+
&& USE_SSL=1 make -C /tmp/hiredis-1.2.0 install
2517

2618
# Relay requires the `msgpack` extension
2719
RUN pecl install msgpack \
28-
&& echo "extension = msgpack.so" > $(php-config --ini-dir)/msgpack.ini
20+
&& echo "extension = msgpack.so" > $(php-config --ini-dir)/10-msgpack.ini
2921

3022
# Relay requires the `igbinary` extension
3123
RUN pecl install igbinary \
32-
&& echo "extension = igbinary.so" > $(php-config --ini-dir)/igbinary.ini
24+
&& echo "extension = igbinary.so" > $(php-config --ini-dir)/10-igbinary.ini
25+
26+
ARG RELAY=v0.12.1
3327

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

3933
# Copy relay.{so,ini}
40-
RUN cp "/tmp/relay.ini" "$(php-config --ini-dir)/relay.ini" \
34+
RUN cp "/tmp/relay.ini" "$(php-config --ini-dir)/20-relay.ini" \
4135
&& cp "/tmp/relay.so" "$(php-config --extension-dir)/relay.so"
4236

4337
# Inject UUID

docker/debian/debian11.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ RUN apt-get install -y \
3232
php8.4-msgpack \
3333
php8.4-igbinary
3434

35-
# Install hiredis-ssl
36-
RUN wget -c https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz -O - | tar -xzC /tmp \
37-
&& PREFIX=/usr USE_SSL=1 make -C /tmp/hiredis-1.2.0 install
35+
# Install Relay dependency (hiredis)
36+
RUN wget -qO- https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /tmp \
37+
&& USE_SSL=1 make -C /tmp/hiredis-1.2.0 install
3838

3939
ARG RELAY=v0.12.1
4040

0 commit comments

Comments
 (0)