chore: add tcpdump to build a debug image

This commit is contained in:
JimMoen 2023-04-17 23:29:11 +08:00
parent 04308d7a1e
commit 5987525259
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
2 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@
-define(EMQX_RELEASE_CE, "5.0.21"). -define(EMQX_RELEASE_CE, "5.0.21").
%% Enterprise edition %% Enterprise edition
-define(EMQX_RELEASE_EE, "5.0.2"). -define(EMQX_RELEASE_EE, "5.0.2-debug").
%% the HTTP API version %% the HTTP API version
-define(EMQX_API_VERSION, "5.0"). -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 ln -s /opt/emqx/bin/* /usr/local/bin/
RUN apt-get update; \ 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/* rm -rf /var/lib/apt/lists/*
WORKDIR /opt/emqx WORKDIR /opt/emqx
@ -39,7 +39,8 @@ RUN groupadd -r -g 1000 emqx; \
useradd -r -m -u 1000 -g emqx emqx; \ useradd -r -m -u 1000 -g emqx emqx; \
chgrp -Rf emqx /opt/emqx; \ chgrp -Rf emqx /opt/emqx; \
chmod -Rf g+w /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 USER emqx