-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
19 lines (18 loc) · 944 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM registry.access.redhat.com/ubi8:latest
RUN dnf install -y --nodocs git python3-pip hostname dmidecode pciutils procps-ng && dnf clean all
RUN mkdir -p /backpack && chmod 770 /backpack
ENV HOME /backpack
WORKDIR /backpack
COPY stockpile-wrapper/stockpile-wrapper.py stockpile-wrapper.py
COPY stockpile-wrapper/requirements.txt requirements.txt
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade setuptools
RUN pip3 install -r requirements.txt
RUN git clone https://github.com/cloud-bulldozer/scribe --depth=1
RUN pip3 install --no-cache-dir -e scribe
RUN git clone https://github.com/cloud-bulldozer/stockpile.git --depth=1 /tmp/stockpile && mv /tmp/stockpile/* .
RUN sed -i '/become: true/d' stockpile.yml
RUN curl -sS https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest/openshift-client-linux.tar.gz | tar xz -C /usr/bin/
RUN chmod +x /usr/bin/oc /usr/bin/kubectl
COPY ansible.cfg .
COPY stockpile_hosts hosts