File tree Expand file tree Collapse file tree 2 files changed +57
-4
lines changed
Expand file tree Collapse file tree 2 files changed +57
-4
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,13 @@ ENV EMQX_BUILDER_IMAGE=${BUILD_FROM}
55ENV ERL_AFLAGS="-kernel shell_history enabled"
66
77ARG BUILD_WITHOUT_QUIC=false
8- ARG OTP_VERSION=27.2-2
9- ARG ELIXIR_VERSION=1.17.3
8+ ARG OTP_VERSION=27.3.4.2-1
9+ ARG ELIXIR_VERSION=1.18.3
10+ ARG FDB_VERSION=7.3.43
1011ARG EMQTT_BENCH_VERSION=0.4.25
1112ARG LUX_VERSION=lux-3.0
1213
13- COPY get-otp.sh get-zsh.sh get-elixir.sh get-emqtt-bench.sh get-lux.sh /
14+ COPY get-otp.sh get-zsh.sh get-elixir.sh get-fdb.sh get- emqtt-bench.sh get-lux.sh /
1415
1516RUN if [ -f /opt/rh/devtoolset-10/enable ]; then source /opt/rh/devtoolset-10/enable; fi && \
1617 . /etc/os-release && export ID=$ID && export VERSION_ID=$VERSION_ID && \
@@ -20,9 +21,10 @@ RUN if [ -f /opt/rh/devtoolset-10/enable ]; then source /opt/rh/devtoolset-10/en
2021 /get-zsh.sh && \
2122 /get-otp.sh ${OTP_VERSION} && \
2223 /get-elixir.sh ${ELIXIR_VERSION} && \
24+ if [ "${OTP_VERSION#26.}" != "$OTP_VERSION" ]; then /get-fdb.sh ${FDB_VERSION}; fi && \
2325 /get-emqtt-bench.sh ${EMQTT_BENCH_VERSION} && \
2426 /get-lux.sh ${LUX_VERSION} && \
25- rm /get-otp.sh /get-zsh.sh /get-elixir.sh /get-emqtt-bench.sh /get-lux.sh
27+ rm /get-otp.sh /get-zsh.sh /get-elixir.sh /get-fdb.sh /get- emqtt-bench.sh /get-lux.sh
2628
2729WORKDIR /
2830CMD [ "/bin/zsh" ]
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ ARCH=$( arch)
6+ if [ " ${ARCH} " != " x86_64" ]; then
7+ echo " Unsupported architecture: ${ARCH} "
8+ exit 0
9+ fi
10+
11+ FDB_VERSION=${1:- 7.3.43}
12+
13+ BASE_URL=" https://github.com/apple/foundationdb/releases/download/${FDB_VERSION} "
14+ . /etc/os-release
15+ if [[ " ${ID_LIKE:- } " =~ rhel| fedora ]]; then
16+ DIST=' el'
17+ case ${ID} in
18+ amzn)
19+ VERSION_ID=" 7"
20+ ;;
21+ * )
22+ VERSION_ID=" ${VERSION_ID%% .* } "
23+ ;;
24+ esac
25+ SYSTEM=" ${DIST}${VERSION_ID} "
26+ case ${SYSTEM} in
27+ el7)
28+ wget " ${BASE_URL} /foundationdb-clients-${FDB_VERSION} -1.${SYSTEM} .${ARCH} .rpm" -O ./foundationdb-clients.rpm
29+ rpm -i ./foundationdb-clients.rpm
30+ rm ./foundationdb-clients.rpm
31+ ;;
32+ * )
33+ echo " Unsupported system: ${SYSTEM} "
34+ exit 0
35+ ;;
36+ esac
37+ elif [[ " ${ID:- } " =~ debian| ubuntu ]]; then
38+ ARCH=$( dpkg --print-architecture)
39+ SYSTEM=" ${ID}${VERSION_ID} "
40+ case ${SYSTEM} in
41+ debian11 | debian12 | ubuntu20.04 | ubuntu22.04 | ubuntu24.04)
42+ wget " ${BASE_URL} /foundationdb-clients_${FDB_VERSION} -1_${ARCH} .deb" -O foundationdb-clients.deb
43+ dpkg -i foundationdb-clients.deb
44+ rm foundationdb-clients.deb
45+ ;;
46+ * )
47+ echo " Unsupported system: ${SYSTEM} "
48+ exit 0
49+ ;;
50+ esac
51+ fi
You can’t perform that action at this time.
0 commit comments