Public Repository

Last pushed: 5 months ago
Short Description
Short description is empty for this repo.
Full Description

Author: malx

FROM centos
MAINTAINER malx malixin1@wo.com
WORKDIR /usr/local/src
RUN rpm -ivh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm \
&& yum -y install wget make gcc gcc-c++ supervisor openssh-server \
&& wget http://www.haproxy.org/download/1.7/src/haproxy-1.7.3.tar.gz \
&& tar -xzf haproxy-1.7.3.tar.gz
WORKDIR haproxy-1.7.3
RUN make TARGET=linux2628 ARCH=x86_64 \
&& make PREFIX=/usr/local/haproxy install \
&& yum clean all \
&& rm -rf haproxy-1.7.3.tar.gz \
&& useradd haproxy
WORKDIR /usr/local/haproxy
RUN mkdir -p run conf bin logs var/run var/chroot
RUN ssh-keygen -q -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" \
&& ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ""\
&& ssh-keygen -t dsa -f /etc/ssh/ssh_host_ed25519_key -N ""\
&& echo "root:12345678"|chpasswd root
VOLUME /haproxy
COPY supervisord.conf /etc/
EXPOSE 8080 8090 22
CMD ["/usr/bin/supervisord"]

Docker Pull Command
Owner
emg2012