File tree Expand file tree Collapse file tree 9 files changed +19
-13
lines changed
Expand file tree Collapse file tree 9 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ RUN mkdir -p ${AMQP_BUILD_DIR}
99
1010# Compile rabbitmq
1111WORKDIR ${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
1413RUN curl -Ls -o rabbitmq-c.tar.gz https://github.com/alanxz/rabbitmq-c/archive/refs/tags/v0.13.0.tar.gz
1514RUN tar xzf rabbitmq-c.tar.gz
1615WORKDIR ${AMQP_BUILD_DIR}/rabbitmq-c-0.13.0
@@ -19,9 +18,9 @@ RUN cmake --build . --target install
1918
2019# Compile the php amqp extension
2120WORKDIR ${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
2323WORKDIR ${AMQP_BUILD_DIR}/php-amqp
24- RUN git checkout v2.1.2
2524RUN phpize
2625RUN ./configure
2726RUN make -j $(nproc)
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ RUN cp "$(php-config --extension-dir)/ddtrace.so" /tmp/ddtrace.so && \
1919
2020RUN 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
Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ RUN mkdir -p ${H3_BUILD_DIR}
99
1010# Compile h3
1111WORKDIR ${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
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
55ENV LD_LIBRARY_PATH=/usr/lib:/usr/lib64:$LD_LIBRARY_PATH
66RUN 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
911RUN cp `php-config --extension-dir`/mailparse.so /tmp/mailparse.so
1012RUN echo 'extension=mailparse.so' > /tmp/ext.ini
1113
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
44
55ENV LIBMEMCACHED_BUILD_DIR=${BUILD_DIR}/libmemcached
66
7+ RUN LD_LIBRARY_PATH= dnf install -y patch
8+
79RUN set -xe; \
810 mkdir -p ${LIBMEMCACHED_BUILD_DIR}; \
911 # Download and upack the source code
Original file line number Diff line number Diff line change 11{
22 "php" : [
3- " 82" ,
4- " 83" ,
5- " 84"
63 ]
74}
Original file line number Diff line number Diff line change 1+ {
2+ "php" : [
3+ ]
4+ }
Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ RUN LD_LIBRARY_PATH=/lib64:/lib dnf install -y libssh2 libssh2-devel
66RUN pecl install ssh2-beta
77RUN cp `php-config --extension-dir`/ssh2.so /tmp/ssh2.so
88RUN 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
1112FROM scratch
1213
1314# Copy things we installed to the final image
1415COPY --from=ext /tmp/ssh2.so /opt/bref/extensions/ssh2.so
1516COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-ssh2.ini
17+ COPY --from=ext /tmp/extension-libs /opt/lib
Original file line number Diff line number Diff line change 11{
22 "php" : [
3- " 82" ,
4- " 83"
53 ]
64}
You can’t perform that action at this time.
0 commit comments