Skip to content

Commit

Permalink
feat(dockerfile): add more debug tools (#9)
Browse files Browse the repository at this point in the history
* feat(dockerfile): add more debug tools
* fix(apisix-unittest/dockerfile): remove change source from Dockerfile
  • Loading branch information
wklken committed Jun 17, 2023
1 parent 09c901f commit 7f2e8c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backu

# install tools
# TODO: add more tools for debug
RUN yum install -y wget unzip patch make sudo less iproute vim bind-utils && rm -rf /var/cache/yum
# alreay on image: ifconfig nslookup ping dig ip ss route
RUN yum install -y wget unzip patch make sudo less iproute traceroute telnet lsof net-tools tcpdump mtr vim bind-utils && rm -rf /var/cache/yum
RUN curl -LJ https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -o jq && chmod 755 jq && mv jq /usr/bin/jq

RUN mkdir -p /data/bkgateway/bin && rm -rf /usr/local/apisix/logs/*
Expand Down
6 changes: 3 additions & 3 deletions src/apisix/tests/Dockerfile.apisix-unittest
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG APISIX_VERSION="3.2.0"
FROM apache/apisix:$APISIX_VERSION-centos

RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup && \
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo && \
yum clean all
# RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup && \
# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo && \
# yum clean all

RUN yum install -y sudo make gcc curl wget unzip git valgrind

Expand Down

0 comments on commit 7f2e8c0

Please sign in to comment.