forked from openshift-kni/baremetal-deploy
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Dockerfile
41 lines (30 loc) · 1.51 KB
/
Dockerfile
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
37
38
39
40
FROM centos:8
ENV ansible_dir=/root/JetSki/ansible-ipi-install
ENV DISABLE_PODMAN=true
RUN yum -y install python3 --nodocs
RUN yum -y install gcc platform-python-devel --nodocs # needed for pip build
RUN pip3 install ansible
RUN yum -y install epel-release --nodocs
RUN yum --enablerepo=epel -y install sshpass
RUN yum -y install openssh-clients --nodocs
RUN yum -y install git --nodocs
RUN yum -y install ipmitool --nodocs
RUN pip3 install jmespath
# Hammercli
# epel-release is needed, but was installed above.
RUN yum install -y https://yum.theforeman.org/releases/2.1/el8/x86_64/foreman-release.rpm
RUN yum install -y https://yum.theforeman.org/releases/2.1/el8/x86_64/rubygem-hammer_cli-2.1.0-1.el8.noarch.rpm
RUN yum install -y http://yum.theforeman.org/releases/2.1/el8/x86_64/rubygem-hammer_cli_foreman-2.1.0-2.el8.noarch.rpm
RUN yum install -y rubygem-hammer_cli \
rubygem-hammer_cli_foreman
RUN pip3 install j2cli
# Done with hammercli. Next badfish
# Source: https://github.com/redhat-performance/badfish/blob/master/Dockerfile
RUN git clone https://github.com/redhat-performance/badfish /root/badfish
WORKDIR /root/badfish
RUN pip3 install -r requirements.txt
ADD https://api.github.com/repos/redhat-performance/JetSki/git/refs/heads/master /root/JetSki-version.json
RUN git clone --single-branch --branch master https://github.com/redhat-performance/JetSki.git /root/JetSki
# Done. Now run it.
ENTRYPOINT ansible-playbook -i $ansible_dir/inventory/jetski/hosts $ansible_dir/playbook-jetski.yml
#ENTRYPOINT /bin/bash