airshipctl/tools/airship-in-a-pod/base/Dockerfile
Ian Howell b77f9e2910 AIAP: Cleanup completion statuses
This adds the `status-checker` container, which aggregates the statuses
of the task containers. This is useful for quickly checking whether AIAP
is in a failed or successful state, allowing for early exit during
gating or testing. This also prevents the containers from stopping for
any reason, allowing for easy debugging.

Change-Id: I1571d006fb3c856e4d2bedee0befdccae6082a66
2021-09-16 16:06:52 -05:00

45 lines
1.1 KiB
Docker

ARG BASE_IMAGE
FROM ${BASE_IMAGE}
SHELL ["bash", "-exc"]
ENV DEBIAN_FRONTEND noninteractive
ARG CACHE_DIR=/opt/aiap-cache
ENV CACHE_DIR=$CACHE_DIR
ARG ARTIFACTS_DIR=/opt/aiap-artifacts
ENV ARTIFACTS_DIR=$ARTIFACTS_DIR
# Update distro and install common reqs
RUN apt-get update ;\
apt-get dist-upgrade -y ;\
apt-get install -y \
python3-minimal \
python3-pip \
python3-setuptools \
python3-libvirt \
curl \
make \
sudo \
iproute2 \
bridge-utils \
iputils-ping \
net-tools \
less \
jq \
vim \
software-properties-common \
openssh-client ;\
pip3 install --upgrade wheel ;\
pip3 install --upgrade ansible ;\
pip3 install --upgrade yq ;\
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - ;\
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" ;\
apt-get install -y --no-install-recommends docker-ce-cli ;\
rm -rf /var/lib/apt/lists/* ; \
mkdir -p "$ARTIFACTS_DIR" ; \
mkdir -p "$CACHE_DIR"
COPY wait_for .
COPY signal_status .