-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathDockerfile.test-infra
36 lines (30 loc) · 1.23 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
27
28
29
30
31
32
33
34
35
36
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 && pip3 install --upgrade pip
RUN curl -Lo terraform.zip 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 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
RUN curl -SL https://releases.hashicorp.com/terraform-provider-local/2.0.0/terraform-provider-local_2.0.0_linux_amd64.zip > /tmp/tpl.zip && unzip -d /root/.terraform.d/plugins /tmp/tpl.zip && rm -f /tmp/tpl.zip
COPY requirements.txt /tmp/
COPY --from=service /clients/assisted-service-client-*.tar.gz /build/pip/
RUN pip3 install --no-cache-dir -I -r /tmp/requirements.txt && \
pip3 install --upgrade /build/pip/*
# setting pre-commit env
ENV PRE_COMMIT_HOME build