Public Repository

Last pushed: 3 months ago
Short Description
DCV Automation Container Repository
Full Description

Dockerfile content:

FROM centos:centos7
MAINTAINER The CentOS Project cloud-ops@centos.org

ENV HOST $HOSTNAME
WORKDIR /home

#Install required packages
RUN yum -y update; yum clean all
RUN yum -y install gcc libffi-devel python-devel openssl-devel wget epel-release; yum clean all
RUN yum -y install python-pip openssl-clients git ; yum clean all

#Install Python Modules

#RUN pip install --upgrade pip
RUN pip install Flask flask-httpauth influxdb xmltodict pyyaml cryptography paramiko pexpect arya timestring pyvmomi kubernetes

#Get SDK Files from APIC Controller
RUN mkdir /root/downloads; cd /root/downloads
RUN wget http://198.19.254.60/cobra/_downloads/acimodel-2.0_1m-py2.7.egg
RUN wget http://198.19.254.60/cobra/_downloads/acicobra-2.0_1m-py2.7.egg
RUN easy_install -Z acicobra-2.0_1m-py2.7.egg
RUN easy_install -Z acimodel-2.0_1m-py2.7.egg

#Get KUBECTL for Contiv Demo
RUN yum install -y https://fedorapeople.org/groups/kolla/kubectl-1.5.4-0.x86_64.rpm

#Configure SSHD
RUN yum -y install openssh-server passwd; yum clean all
RUN mkdir /var/run/sshd
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''

#Clone Scripts from Github
RUN mkdir /root/scripts/ ; git clone -b master https://github.com/dcv-cloud/indemo-automation.git /root/scripts/

#Make Configuration script executable. Execute
RUN chmod 755 /root/scripts/configureContainer.sh
RUN /root/scripts/configureContainer.sh

ENTRYPOINT ["python","/root/scripts/starter.py"]

Docker Pull Command
Owner
mgarcias

Comments (0)