56972b4317
This adds a new script to the runner container that is run in the entrypoint which runs the log gathering ansible playbook from inside the runner container. The gate then extracts these logs with a new role. This also updates the image_build script to fix how it changes the container imagePullPolicy Closes: #658 Relates-To: #659 Change-Id: I24d11c66e7b71852256e164343f7bb2f331d1fef
37 lines
957 B
Docker
37 lines
957 B
Docker
ARG BASE_IMAGE=quay.io/airshipit/aiap-base:latest
|
|
FROM ${BASE_IMAGE}
|
|
|
|
SHELL ["bash", "-exc"]
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
ARG k8s_version=v1.18.3
|
|
ARG kubectl_url=https://storage.googleapis.com/kubernetes-release/release/"${k8s_version}"/bin/linux/amd64/kubectl
|
|
|
|
# Update distro and install ansible
|
|
RUN apt-get update ;\
|
|
apt-get dist-upgrade -y ;\
|
|
apt-get install -y \
|
|
git \
|
|
git-review \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
gnupg-agent \
|
|
libvirt-clients \
|
|
gettext-base \
|
|
wget \
|
|
iptables \
|
|
rsync \
|
|
make; \
|
|
pip3 install --upgrade ansible; \
|
|
pip3 install --upgrade netaddr; \
|
|
pip3 install --upgrade yq; \
|
|
curl -sSLo /usr/local/bin/kubectl "${kubectl_url}" ;\
|
|
chmod +x /usr/local/bin/kubectl ;\
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY assets /opt/assets/
|
|
RUN cp -ravf /opt/assets/* / ;\
|
|
rm -rf /opt/assets
|
|
|
|
ENTRYPOINT /entrypoint.sh
|