a423607000
Introduces Airship in pod. This includes: * A base image which sets up common requirements * An image for the libvirt service * An image for building a specified instance of airshipctl * An image for initializing the various libvirt infrastructure required for a deployment * An image which runs the deployment scripts Closes: #313 Change-Id: Ib1114350190b0fe0c0761ff67b38b3eca783161a
45 lines
1.1 KiB
Docker
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_complete .
|