Skip to content

Commit 236b8e1

Browse files
committed
Fixes
1 parent 3c50fed commit 236b8e1

File tree

9 files changed

+19
-13
lines changed

9 files changed

+19
-13
lines changed

layers/amqp/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ RUN mkdir -p ${AMQP_BUILD_DIR}
99

1010
# Compile rabbitmq
1111
WORKDIR ${AMQP_BUILD_DIR}
12-
# Currently it is not possible to use newer rabbitmq-c version than 0.13.0 because this is
13-
# last version which supports CMake 3.17 which is latest available version in Amazon Linux 2.
12+
RUN LD_LIBRARY_PATH= dnf install -y cmake
1413
RUN curl -Ls -o rabbitmq-c.tar.gz https://github.com/alanxz/rabbitmq-c/archive/refs/tags/v0.13.0.tar.gz
1514
RUN tar xzf rabbitmq-c.tar.gz
1615
WORKDIR ${AMQP_BUILD_DIR}/rabbitmq-c-0.13.0
@@ -19,9 +18,9 @@ RUN cmake --build . --target install
1918

2019
# Compile the php amqp extension
2120
WORKDIR ${AMQP_BUILD_DIR}
22-
RUN git clone https://github.com/php-amqp/php-amqp
21+
RUN curl -Ls -o php-amqp.tar.gz https://github.com/php-amqp/php-amqp/archive/refs/tags/v2.1.2.tar.gz && \
22+
tar xzf php-amqp.tar.gz && mv php-amqp-2.1.2 php-amqp
2323
WORKDIR ${AMQP_BUILD_DIR}/php-amqp
24-
RUN git checkout v2.1.2
2524
RUN phpize
2625
RUN ./configure
2726
RUN make -j $(nproc)

layers/datadog/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN cp "$(php-config --extension-dir)/ddtrace.so" /tmp/ddtrace.so && \
1919

2020
RUN sed -i 's/extension = ddtrace\.so/extension = \/opt\/bref-extra\/ddtrace.so/' /tmp/ext.ini && \
2121
sed -i 's/extension = datadog-profiling\.so/extension = \/opt\/bref-extra\/datadog-profiling.so/' /tmp/ext.ini && \
22+
sed -i '/extension = ddappsec\.so/d' /tmp/ext.ini && \
2223
sed -i 's/;datadog\.agent_host.*$/datadog\.agent_host = 127.0.0.1/' /tmp/ext.ini && \
2324
sed -i 's/^.*datadog\.appsec\.enabled.*$/datadog.appsec.enabled = Off/' /tmp/ext.ini && \
2425
sed -i 's/datadog\.profiling\.enabled = On/datadog.profiling.enabled = 1/' /tmp/ext.ini

layers/h3/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ RUN mkdir -p ${H3_BUILD_DIR}
99

1010
# Compile h3
1111
WORKDIR ${H3_BUILD_DIR}
12-
RUN git clone https://github.com/uber/h3.git && \
13-
cd h3 && \
14-
git checkout v3.7.2 && \
12+
RUN LD_LIBRARY_PATH= dnf install -y cmake
13+
RUN curl -Ls -o h3.tar.gz https://github.com/uber/h3/archive/refs/tags/v3.7.2.tar.gz && \
14+
tar xzf h3.tar.gz && \
15+
cd h3-3.7.2 && \
1516
cmake -DBUILD_SHARED_LIBS=ON . && \
1617
make -j "$(nproc)" && \
1718
make install

layers/mailparse/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
55
ENV LD_LIBRARY_PATH=/usr/lib:/usr/lib64:$LD_LIBRARY_PATH
66
RUN dnf install -y re2c
77

8-
RUN pecl install mailparse
8+
RUN curl -Ls https://pecl.php.net/get/mailparse | tar xzC /tmp && \
9+
cd /tmp/mailparse-* && \
10+
phpize && ./configure && make -j $(nproc) && make install
911
RUN cp `php-config --extension-dir`/mailparse.so /tmp/mailparse.so
1012
RUN echo 'extension=mailparse.so' > /tmp/ext.ini
1113

layers/memcached/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
44

55
ENV LIBMEMCACHED_BUILD_DIR=${BUILD_DIR}/libmemcached
66

7+
RUN LD_LIBRARY_PATH= dnf install -y patch
8+
79
RUN set -xe; \
810
mkdir -p ${LIBMEMCACHED_BUILD_DIR}; \
911
# Download and upack the source code

layers/oci8/config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"php": [
3-
"82",
4-
"83",
5-
"84"
63
]
74
}

layers/redis/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"php": [
3+
]
4+
}

layers/ssh2/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ RUN LD_LIBRARY_PATH=/lib64:/lib dnf install -y libssh2 libssh2-devel
66
RUN pecl install ssh2-beta
77
RUN cp `php-config --extension-dir`/ssh2.so /tmp/ssh2.so
88
RUN echo 'extension=ssh2.so' > /tmp/ext.ini
9+
RUN php /bref/lib-copy/copy-dependencies.php /tmp/ssh2.so /tmp/extension-libs
910

1011
# Build the final image with just the files we need
1112
FROM scratch
1213

1314
# Copy things we installed to the final image
1415
COPY --from=ext /tmp/ssh2.so /opt/bref/extensions/ssh2.so
1516
COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-ssh2.ini
17+
COPY --from=ext /tmp/extension-libs /opt/lib

layers/swoole/config.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"php": [
3-
"82",
4-
"83"
53
]
64
}

0 commit comments

Comments
 (0)