0cb8e0f5f4
This parameterizes the base image location used for the libvirt, artifact-setup, infra-builder, and runner images. Closes: #628 Change-Id: Idca33b5571017700fead0eb758af1900b4a4fcf4
30 lines
783 B
Docker
30 lines
783 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 ;\
|
|
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
|