istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/test/echo/docker/Dockerfile.app_sidecar_base_centos (about)

     1  ARG VM_IMAGE_NAME=rockylinux
     2  ARG VM_IMAGE_VERSION=9
     3  FROM ${VM_IMAGE_NAME}:${VM_IMAGE_VERSION}
     4  
     5  # hadolint ignore=DL3005,DL3008,DL3033
     6  RUN yum install -y \
     7      iptables \
     8      iproute \
     9      sudo \
    10      nmap-ncat \
    11      tcpdump \
    12      procps \
    13      conntrack \
    14      net-tools \
    15      ca-certificates \
    16      && update-ca-trust \
    17      && yum clean all \
    18      && rm -rf /var/cache/yum
    19  
    20  # Add a user that will run the application. This allows running as this user and capture iptables
    21  RUN useradd -m --uid 1338 application && \
    22      echo "application ALL=NOPASSWD: ALL" >> /etc/sudoers