forked from openshift/assisted-test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.test-infra
26 lines (19 loc) · 1.26 KB
/
Dockerfile.test-infra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM quay.io/ocpmetal/assisted-service:latest AS service
FROM quay.io/centos/centos:8.3.2011
RUN yum -y install make gcc unzip wget curl git podman httpd-tools jq nss_wrapper \
python3 python3-devel \
libvirt-client libvirt-devel libguestfs-tools && \
yum clean all
RUN wget -q https://releases.hashicorp.com/terraform/0.12.29/terraform_0.12.29_linux_amd64.zip && unzip terraform*.zip -d /usr/bin/ && rm -rf terraform*.zip
RUN curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.10.1/minikube-linux-amd64 \
&& chmod +x minikube && mkdir -p /usr/local/bin/ && install minikube /usr/local/bin/
RUN curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/bin/
RUN mkdir -p /root/.terraform.d/plugins
RUN curl -SL https://github.com/dmacvicar/terraform-provider-libvirt/releases/download/v0.6.2/terraform-provider-libvirt-0.6.2+git.1585292411.8cbe9ad0.Fedora_28.x86_64.tar.gz | \
tar -xz -C /root/.terraform.d/plugins
COPY requirements.txt /tmp/
COPY --from=service /clients/assisted-service-client-*.tar.gz /build/pip/
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt && \
pip3 install --upgrade /build/pip/*
# setting pre-commit env
ENV PRE_COMMIT_HOME build