61c18d9359
- Adds PV for local caching. This allows us to also use PV in other clusters like AKS. - Moves artifacts and caching files into /opt/aiap-files/artifacts and /opt/aiap-files/caching so we only have one PV Relates-To: #645 Change-Id: I84172778df66bee8a833b13d5b740a6cf45220c2
45 lines
1.2 KiB
Docker
45 lines
1.2 KiB
Docker
ARG BASE_IMAGE
|
|
FROM ${BASE_IMAGE}
|
|
|
|
SHELL ["bash", "-exc"]
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
ARG CACHE_DIR=/opt/aiap-files/cache
|
|
ENV CACHE_DIR=$CACHE_DIR
|
|
|
|
ARG ARTIFACTS_DIR=/opt/aiap-files/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 .
|