Skip to content

Commit 191be6f

Browse files
authored
Merge pull request #66 from emqx/fix/install-emqtt-bench
fix: install emqtt-bench binaries into local/bin
2 parents 1dc4348 + 5eb1e5c commit 191be6f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ ARG EMQTT_BENCH_REF
2020
COPY get-emqtt-bench.sh /get-emqtt-bench.sh
2121
RUN /get-emqtt-bench.sh "${EMQTT_BENCH_REF:-0.4.7}"
2222

23-
ENV PATH="/tools/emqtt-bench:$PATH"
24-
2523
ARG LUX_REF
2624
ENV LUX_REF=${LUX_REF:-lux-2.6}
2725

get-emqtt-bench.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@ case "$SYSTEM" in
2626
;;
2727
esac
2828

29-
git clone --depth=1 --branch="${VSN}" https://github.com/emqx/emqtt-bench.git /tools/emqtt-bench
30-
make REBAR=/usr/local/bin/rebar3 -C /tools/emqtt-bench
29+
git clone --depth=1 --branch="${VSN}" https://github.com/emqx/emqtt-bench.git /emqtt-bench
30+
make REBAR=/usr/local/bin/rebar3 -C /emqtt-bench
31+
cp -v /emqtt-bench/emqtt_bench /emqtt-bench/*.so /usr/local/bin/
32+
33+
# cleanup
34+
rm -rf /emqtt-bench

0 commit comments

Comments
 (0)