File tree Expand file tree Collapse file tree 11 files changed +123
-16
lines changed
Expand file tree Collapse file tree 11 files changed +123
-16
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ RUN yum install -y \
1515 php-pear \
1616 php-devel \
1717 openssl11 \
18+ openssl-devel \
1819 libzstd-devel
1920
2021RUN pecl config-set php_ini /etc/php.ini
@@ -29,6 +30,11 @@ RUN pecl install igbinary && \
2930
3031ARG RELAY=v0.6.6
3132
33+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
34+ && PREFIX=/usr USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
35+
36+ RUN yum install -y https://kojipkgs.fedoraproject.org/packages/ck/0.5.2/2.el7/x86_64/ck-0.5.2-2.el7.x86_64.rpm
37+
3238# Download Relay
3339RUN ARCH=$(uname -m | sed 's/_/-/' ) \
3440 PHP=$(php -r 'echo substr(PHP_VERSION, 0, 3);' ) \
@@ -37,7 +43,7 @@ RUN ARCH=$(uname -m | sed 's/_/-/') \
3743# Copy relay.{so,ini}
3844RUN 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
4349RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" $(php-config --extension-dir)/relay.so
Original file line number Diff line number Diff line change @@ -16,14 +16,19 @@ RUN pecl install igbinary && \
1616
1717ARG RELAY=v0.6.6
1818
19+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
20+ && PREFIX=/usr USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
21+
22+ RUN dnf install -y https://kojipkgs.fedoraproject.org/packages/ck/0.7.0/10.el9/x86_64/ck-0.7.0-10.el9.x86_64.rpm
23+
1924RUN ARCH=$(uname -m | sed 's/_/-/' ) \
2025 PHP=$(php -r 'echo substr(PHP_VERSION, 0, 3);' ) \
2126 ARTIFACT="https://builds.r2.relay.so/$RELAY/relay-$RELAY-php$PHP-el9-$ARCH.tar.gz" \
2227 && curl -sfSL $ARTIFACT | tar xz --strip-components=1 -C /tmp
2328
2429# Copy relay.{so,ini}
2530RUN cp "/tmp/relay.ini" $(php-config --ini-dir)/50-relay.ini \
26- && cp "/tmp/relay-pkg .so" $(php-config --extension-dir)/relay.so
31+ && cp "/tmp/relay.so" $(php-config --extension-dir)/relay.so
2732
2833# Inject UUID
2934RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" $(php-config --extension-dir)/relay.so
Original file line number Diff line number Diff line change @@ -20,21 +20,31 @@ ARG RELAY=v0.6.6
2020
2121# Install Relay dependencies
2222RUN yum install -y \
23- openssl11 libzstd lz4
23+ gcc \
24+ make \
25+ openssl11 \
26+ openssl-devel \
27+ libzstd \
28+ lz4
2429
2530# Relay requires the `msgpack` and `igbinary` extension
2631RUN yum install -y \
2732 php80-php-igbinary \
2833 php80-php-msgpack
2934
35+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
36+ && PREFIX=/usr USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
37+
38+ RUN yum install -y https://kojipkgs.fedoraproject.org/packages/ck/0.5.2/2.el7/x86_64/ck-0.5.2-2.el7.x86_64.rpm
39+
3040# Download Relay
3141RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
3242 && curl -L "https://builds.r2.relay.so/$RELAY/relay-$RELAY-php8.0-centos7-$PLATFORM.tar.gz" | tar xz -C /tmp
3343
3444# Copy relay.{so,ini}
3545RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
3646 && cp "/tmp/relay-$RELAY-php8.0-centos7-$PLATFORM/relay.ini" "$PHP_INI_DIR/50-relay.ini" \
37- && cp "/tmp/relay-$RELAY-php8.0-centos7-$PLATFORM/relay-pkg .so" "$PHP_EXT_DIR/relay.so"
47+ && cp "/tmp/relay-$RELAY-php8.0-centos7-$PLATFORM/relay.so" "$PHP_EXT_DIR/relay.so"
3848
3949# Inject UUID
4050RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" "$PHP_EXT_DIR/relay.so"
Original file line number Diff line number Diff line change @@ -20,19 +20,33 @@ ENV PHP_EXT_DIR=/opt/remi/php80/root/usr/lib64/php/modules/
2020
2121ARG RELAY=v0.6.6
2222
23+ # Install Relay dependencies
24+ RUN yum install -y \
25+ gcc \
26+ make \
27+ openssl \
28+ openssl-devel \
29+ libzstd \
30+ lz4
31+
2332# Relay requires the `msgpack` and `igbinary` extension
2433RUN yum install -y \
2534 php80-php-igbinary \
2635 php80-php-msgpack
2736
37+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
38+ && PREFIX=/usr USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
39+
40+ RUN dnf install -y https://kojipkgs.fedoraproject.org/packages/ck/0.6.0/9.el8/x86_64/ck-0.6.0-9.el8.x86_64.rpm
41+
2842# Download Relay
2943RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
3044 && curl -L "https://builds.r2.relay.so/$RELAY/relay-$RELAY-php8.0-centos8-$PLATFORM.tar.gz" | tar xz -C /tmp
3145
3246# Copy relay.{so,ini}
3347RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
3448 && cp "/tmp/relay-$RELAY-php8.0-centos8-$PLATFORM/relay.ini" "$PHP_INI_DIR/50-relay.ini" \
35- && cp "/tmp/relay-$RELAY-php8.0-centos8-$PLATFORM/relay-pkg .so" "$PHP_EXT_DIR/relay.so"
49+ && cp "/tmp/relay-$RELAY-php8.0-centos8-$PLATFORM/relay.so" "$PHP_EXT_DIR/relay.so"
3650
3751# Inject UUID
3852RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" "$PHP_EXT_DIR/relay.so"
Original file line number Diff line number Diff line change @@ -17,19 +17,33 @@ ENV PHP_EXT_DIR=/opt/remi/php80/root/usr/lib64/php/modules/
1717
1818ARG RELAY=v0.6.6
1919
20+ # Install Relay dependencies
21+ RUN yum install -y \
22+ gcc \
23+ make \
24+ openssl \
25+ openssl-devel \
26+ libzstd \
27+ lz4
28+
2029# Relay requires the `msgpack` and `igbinary` extension
2130RUN yum install -y \
2231 php80-php-igbinary \
2332 php80-php-msgpack
2433
34+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
35+ && PREFIX=/usr USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
36+
37+ RUN dnf install -y https://kojipkgs.fedoraproject.org/packages/ck/0.6.0/9.el8/x86_64/ck-0.6.0-9.el8.x86_64.rpm
38+
2539# Download Relay
2640RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
2741 && curl -L "https://builds.r2.relay.so/$RELAY/relay-$RELAY-php8.0-centos8-$PLATFORM.tar.gz" | tar xz -C /tmp
2842
2943# Copy relay.{so,ini}
3044RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
3145 && cp "/tmp/relay-$RELAY-php8.0-centos8-$PLATFORM/relay.ini" "$PHP_INI_DIR/50-relay.ini" \
32- && cp "/tmp/relay-$RELAY-php8.0-centos8-$PLATFORM/relay-pkg .so" "$PHP_EXT_DIR/relay.so"
46+ && cp "/tmp/relay-$RELAY-php8.0-centos8-$PLATFORM/relay.so" "$PHP_EXT_DIR/relay.so"
3347
3448# Inject UUID
3549RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" "$PHP_EXT_DIR/relay.so"
Original file line number Diff line number Diff line change @@ -28,11 +28,21 @@ RUN curl --output php-${PHP}.tar.gz https://www.php.net/distributions/php-${PHP}
2828
2929ARG RELAY=v0.6.6
3030
31+ RUN echo 'deb http://deb.debian.org/debian buster-backports main' >> '/etc/apt/sources.list'
32+
33+ RUN apt-get update && \
34+ apt-get install -y \
35+ libssl-dev \
36+ libck0
37+
38+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
39+ && PREFIX=/usr USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
40+
3141# Download Relay
3242RUN PHP=$(php -r "echo substr(PHP_VERSION, 0, 3);" ) \
3343 && curl -L "https://builds.r2.relay.so/$RELAY/relay-$RELAY-php$PHP-debian-x86-64%2Bzts.tar.gz" | tar xz -C /tmp \
3444 && cd /tmp/relay-* \
35- && sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" relay-pkg .so \
45+ && sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" relay.so \
3646 && mkdir -p $(php-config --extension-dir) \
37- && cp relay-pkg .so $(php-config --extension-dir)/relay.so \
47+ && cp relay.so $(php-config --extension-dir)/relay.so \
3848 && cat relay.ini >> $(php-config --ini-path)/php.ini
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ RUN apt-get install -y \
88 apt-transport-https \
99 ca-certificates \
1010 software-properties-common \
11- wget
11+ curl
1212
13- RUN wget -q "https://packages.sury.org/php/apt.gpg" -O- | apt-key add -
13+ RUN curl "https://packages.sury.org/php/apt.gpg" | apt-key add -
1414RUN add-apt-repository "deb https://packages.sury.org/php/ $(lsb_release -sc) main"
15+ RUN add-apt-repository "deb http://deb.debian.org/debian $(lsb_release -sc)-backports main"
1516RUN apt-get update
1617
1718# Fix `php-config` link to `sed`
@@ -20,23 +21,30 @@ RUN ln -s /bin/sed /usr/bin/sed
2021RUN apt-get install -y \
2122 php8.1-dev
2223
24+
25+
2326# Install Relay dependencies
2427RUN apt-get install -y \
2528 lz4 \
2629 zstd \
30+ libssl-dev \
31+ libck0 \
2732 php8.1-msgpack \
2833 php8.1-igbinary
2934
3035ARG RELAY=v0.6.6
3136
37+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
38+ && PREFIX=/usr USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
39+
3240# Download Relay
3341RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
34- && wget -c "https://builds.r2.relay.so/$RELAY/relay-$RELAY-php8.1-debian-$PLATFORM.tar.gz" -O - | tar xz -C /tmp
42+ && curl "https://builds.r2.relay.so/$RELAY/relay-$RELAY-php8.1-debian-$PLATFORM.tar.gz" | tar xz -C /tmp
3543
3644# Copy relay.{so,ini}
3745RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
3846 && cp "/tmp/relay-$RELAY-php8.1-debian-$PLATFORM/relay.ini" $(php-config --ini-dir)/30-relay.ini \
39- && cp "/tmp/relay-$RELAY-php8.1-debian-$PLATFORM/relay-pkg .so" $(php-config --extension-dir)/relay.so
47+ && cp "/tmp/relay-$RELAY-php8.1-debian-$PLATFORM/relay.so" $(php-config --extension-dir)/relay.so
4048
4149# Inject UUID
4250RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" $(php-config --extension-dir)/relay.so
Original file line number Diff line number Diff line change @@ -17,11 +17,25 @@ ENV PHP_EXT_DIR=/usr/lib64/php/modules
1717
1818ARG RELAY=v0.6.6
1919
20+ # Install Relay dependencies
21+ RUN dnf install -y \
22+ gcc \
23+ make \
24+ openssl \
25+ openssl-devel \
26+ libzstd \
27+ lz4
28+
2029# Relay requires the `msgpack` and `igbinary` extension
2130RUN dnf -y install \
2231 php-msgpack \
2332 php-igbinary
2433
34+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
35+ && USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
36+
37+ RUN dnf install -y https://kojipkgs.fedoraproject.org//packages/ck/0.7.0/10.el9/x86_64/ck-0.7.0-10.el9.x86_64.rpm
38+
2539# Download Relay
2640RUN ARCH=$(uname -m | sed 's/_/-/' ) \
2741 PHP=$(php -r 'echo substr(PHP_VERSION, 0, 3);' ) \
@@ -30,7 +44,7 @@ RUN ARCH=$(uname -m | sed 's/_/-/') \
3044
3145# Copy relay.{so,ini}
3246RUN cp "/tmp/relay.ini" "$PHP_INI_DIR/50-relay.ini" \
33- && cp "/tmp/relay-pkg .so" "$PHP_EXT_DIR/relay.so"
47+ && cp "/tmp/relay.so" "$PHP_EXT_DIR/relay.so"
3448
3549# Inject UUID
3650RUN UUID=$(cat /proc/sys/kernel/random/uuid) \
Original file line number Diff line number Diff line change @@ -6,14 +6,25 @@ ENV PHP_INI_DIR=/usr/local/lsws/lsphp74/etc/php/7.4/mods-available/
66
77ARG RELAY=v0.6.6
88
9+ # Install Relay dependencies
10+ RUN apt-get update \
11+ && apt-get install -y \
12+ gcc \
13+ make \
14+ libssl-dev \
15+ libck0
16+
17+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
18+ && PREFIX=/usr USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
19+
920# Download Relay
1021RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
1122 && curl -L "https://builds.r2.relay.so/$RELAY/relay-$RELAY-php7.4-debian-$PLATFORM.tar.gz" | tar xz -C /tmp
1223
1324# Copy relay.{so,ini}
1425RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
1526 && cp "/tmp/relay-$RELAY-php7.4-debian-$PLATFORM/relay.ini" "$PHP_INI_DIR/60-relay.ini" \
16- && cp "/tmp/relay-$RELAY-php7.4-debian-$PLATFORM/relay-pkg .so" "$PHP_EXT_DIR/relay.so"
27+ && cp "/tmp/relay-$RELAY-php7.4-debian-$PLATFORM/relay.so" "$PHP_EXT_DIR/relay.so"
1728
1829# Inject UUID
1930RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" "$PHP_EXT_DIR/relay.so"
Original file line number Diff line number Diff line change @@ -6,14 +6,25 @@ ENV PHP_INI_DIR=/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/
66
77ARG RELAY=v0.6.6
88
9+ # Install Relay dependencies
10+ RUN apt-get update \
11+ && apt-get install -y \
12+ gcc \
13+ make \
14+ libssl-dev \
15+ libck0
16+
17+ RUN curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /usr/src \
18+ && PREFIX=/usr USE_SSL=1 make -C /usr/src/hiredis-1.2.0 install
19+
920# Download Relay
1021RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
1122 && curl -L "https://builds.r2.relay.so/$RELAY/relay-$RELAY-php8.1-debian-$PLATFORM%2Blibssl3.tar.gz" | tar xz -C /tmp
1223
1324# Copy relay.{so,ini}
1425RUN PLATFORM=$(uname -m | sed 's/_/-/' ) \
1526 && cp "/tmp/relay-$RELAY-php8.1-debian-$PLATFORM+libssl3/relay.ini" "$PHP_INI_DIR/60-relay.ini" \
16- && cp "/tmp/relay-$RELAY-php8.1-debian-$PLATFORM+libssl3/relay-pkg .so" "$PHP_EXT_DIR/relay.so"
27+ && cp "/tmp/relay-$RELAY-php8.1-debian-$PLATFORM+libssl3/relay.so" "$PHP_EXT_DIR/relay.so"
1728
1829# Inject UUID
1930RUN sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" "$PHP_EXT_DIR/relay.so"
You can’t perform that action at this time.
0 commit comments