forked from cloud-bulldozer/metadata-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (24 loc) · 789 Bytes
/
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
FROM centos/python-36-centos7
USER root
COPY group_vars/ ${HOME}/group_vars/
COPY hosts ${HOME}/hosts
COPY ansible.cfg ${HOME}/
COPY stockpile.yml ${HOME}/stockpile.yml
COPY roles/ ${HOME}/roles/
COPY stockpile-wrapper.py ${HOME}/stockpile-wrapper.py
COPY scribe ${HOME}/scribe
COPY kubectl /usr/local/bin/kubectl
COPY oc /usr/local/bin/oc
RUN yum install -y epel-release
RUN yum install -y ansible dmidecode which python-pip pciutils
RUN pip3 install --upgrade pip
RUN pip3 install elasticsearch-dsl
RUN pip3 install openshift
RUN pip3 install kubernetes
RUN pip3 install redis
RUN pip3 install -e scribe/
RUN mv ansible.cfg /etc/ansible/ansible.cfg
RUN mkdir -p /tmp
RUN sed -i '/become: true/d' stockpile.yml
RUN chmod +x /usr/local/bin/kubectl /usr/local/bin/oc
CMD sleep infinity