blob: c0ae3f913f3a11dc06127d025d4cfc8d22b29b23 [file] [log] [blame]
ARG BASE_VERSION=latest
ARG VM_IMAGE_NAME=rockylinux
ARG VM_IMAGE_VERSION=8
FROM gcr.io/istio-release/app_sidecar_base_${VM_IMAGE_NAME}_${VM_IMAGE_VERSION}:${BASE_VERSION}
# Install the certs.
COPY certs/ /var/lib/istio/
COPY certs/default/ /var/run/secrets/istio/
# Install the sidecar components
COPY istio-sidecar.rpm /tmp/istio-sidecar.rpm
RUN rpm -vi /tmp/istio-sidecar.rpm && rm /tmp/istio-sidecar.rpm
# Sudoers used to allow tcpdump and other debug utilities.
COPY sudoers /etc/sudoers
# Install the Echo application
COPY echo-start.sh /usr/local/bin/echo-start.sh
ARG TARGETARCH
COPY ${TARGETARCH:-amd64}/client /usr/local/bin/client
COPY ${TARGETARCH:-amd64}/server /usr/local/bin/server
ENTRYPOINT ["/usr/local/bin/echo-start.sh"]