Public Repository

Last pushed: 5 months ago
Short Description
dcv-haproxy for dcv-automation
Full Description

Dockerfile content:

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

ENV HOST $HOSTNAME
WORKDIR /home

#Install EPEL and HAPROXY
RUN yum -y update; yum clean all
RUN yum -y install openssl-devel epel-release haproxy rsyslog ; yum clean all

#########################

#Copy Files to Container

#########################

script that initializes the container (username, passwords, etc..)

ADD config.sh /config.sh

#Haproxy configuration file
ADD dcv-haproxy.cfg /etc/haproxy/dcv-haproxy.cfg

#Rsyslog configuraiton for haproxy logging
ADD rsyslog-haproxy.conf /etc/rsyslog.d/haproxy.conf
ADD rsyslog.conf /etc/rsyslog.conf

#kickstart file
ADD starter.sh /starter.sh

#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 ''
RUN chmod 755 /config.sh

#Execute Initial Configuration
RUN /config.sh

RUN chmod 755 /starter.sh
ENTRYPOINT ["/usr/bin/sh","/starter.sh"]

Docker Pull Command
Owner
mgarcias

Comments (0)