Compare commits

...

1 Commits

Author SHA1 Message Date
JimMoen 5987525259
chore: add tcpdump to build a debug image 2023-04-17 23:29:11 +08:00
2 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@
-define(EMQX_RELEASE_CE, "5.0.21").
%% Enterprise edition
-define(EMQX_RELEASE_EE, "5.0.2").
-define(EMQX_RELEASE_EE, "5.0.2-debug").
%% the HTTP API version
-define(EMQX_API_VERSION, "5.0").

View File

@ -30,7 +30,7 @@ COPY --from=builder /emqx-rel/emqx /opt/emqx
RUN ln -s /opt/emqx/bin/* /usr/local/bin/
RUN apt-get update; \
apt-get install -y --no-install-recommends ca-certificates procps; \
apt-get install -y --no-install-recommends ca-certificates procps sudo tcpdump; \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/emqx
@ -39,7 +39,8 @@ RUN groupadd -r -g 1000 emqx; \
useradd -r -m -u 1000 -g emqx emqx; \
chgrp -Rf emqx /opt/emqx; \
chmod -Rf g+w /opt/emqx; \
chown -Rf emqx /opt/emqx
chown -Rf emqx /opt/emqx; \
echo "emqx ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
USER emqx