Skip to content

Commit 920a74c

Browse files
authored
Merge pull request #142 from emqx/enable-all-flavours
Enable all OTP versions
2 parents 2160d3a + 64e8bf2 commit 920a74c

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ARG OTP_VERSION=28.1
99
ARG ELIXIR_VERSION=1.18.4
1010
ARG RUST_VERSION=1.88.0
1111
ARG FDB_VERSION=7.3.43
12-
ARG EMQTT_BENCH_VERSION=0.5.3
1312
ARG LUX_VERSION=lux-3.0
1413

1514
COPY get-otp.sh get-zsh.sh get-elixir.sh get-fdb.sh get-rust.sh get-emqtt-bench.sh get-lux.sh /
@@ -24,7 +23,7 @@ RUN if [ -f /opt/rh/devtoolset-10/enable ]; then source /opt/rh/devtoolset-10/en
2423
/get-elixir.sh ${ELIXIR_VERSION} && \
2524
if [ "${OTP_VERSION#26.}" != "$OTP_VERSION" ]; then /get-fdb.sh ${FDB_VERSION}; fi && \
2625
if echo "${OTP_VERSION}" | grep -q "^27\."; then /get-rust.sh ${RUST_VERSION}; fi && \
27-
/get-emqtt-bench.sh ${EMQTT_BENCH_VERSION} && \
26+
/get-emqtt-bench.sh && \
2827
/get-lux.sh ${LUX_VERSION} && \
2928
rm /get-otp.sh /get-zsh.sh /get-elixir.sh /get-fdb.sh /get-emqtt-bench.sh /get-lux.sh
3029

RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OTP version from emqx/otp.git, Elixir version from elixir-lang/elixir.git.
44

55
Uncomment older releases when there is an update.
66

7-
# + OTP-24.3.4.2-4,Elixir-1.15.7
8-
# + OTP-26.2.5.14-1,Elixir-1.15.7
7+
+ OTP-24.3.4.2-4,Elixir-1.15.7
8+
+ OTP-26.2.5.14-1,Elixir-1.15.7
99
+ OTP-27.3.4.2-4,Elixir-1.18.3
1010
+ OTP-28.1,Elixir-1.18.4

get-emqtt-bench.sh

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
set -xeuo pipefail
44

5-
VSN="${1:-0.5.3}"
6-
75
. /etc/os-release
86
if [[ "${ID_LIKE:-}" =~ rhel|fedora ]]; then
97
DIST='el'
@@ -31,6 +29,29 @@ case "$SYSTEM" in
3129
;;
3230
esac
3331

32+
OTP_VERSION="$(erl -eval 'io:format("~s", [erlang:system_info(otp_release)]), halt().' -noshell)"
33+
34+
case "${OTP_VERSION}" in
35+
28*)
36+
VSN="${1:-0.5.5}"
37+
;;
38+
27*)
39+
VSN="${1:-0.5.2}"
40+
;;
41+
26*)
42+
VSN="${1:-0.5.0}"
43+
;;
44+
25*)
45+
VSN="${1:-0.5.0}"
46+
;;
47+
24*)
48+
VSN="${1:-0.4.17}"
49+
;;
50+
*)
51+
echo "OTP_VERSION is invalid: ${OTP_VERSION}"
52+
exit 1
53+
esac
54+
3455
git clone --depth=1 --branch="${VSN}" https://github.com/emqx/emqtt-bench.git /emqtt-bench
3556
make REBAR=/usr/local/bin/rebar3 -C /emqtt-bench
3657
cp -v /emqtt-bench/_build/emqtt_bench/bin/* /usr/local/bin/

0 commit comments

Comments
 (0)