Merged by openshift-bot
OpenShift Bot authored on 2015/03/03 04:37:49... | ... |
@@ -6,18 +6,10 @@ |
6 | 6 |
# |
7 | 7 |
FROM openshift/origin-base |
8 | 8 |
|
9 |
-RUN yum install -y gcc make openssl-devel pcre-devel tar wget socat && \ |
|
10 |
- wget http://www.haproxy.org/download/1.5/src/haproxy-1.5.10.tar.gz && \ |
|
11 |
- tar xvzf haproxy-1.5.10.tar.gz && \ |
|
12 |
- groupadd haproxy && \ |
|
13 |
- useradd -g haproxy haproxy && \ |
|
14 |
- cd haproxy-1.5.10 && make TARGET=linux2628 CPU=generic USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 && make install && \ |
|
15 |
- cd .. && rm -rf haproxy-1.5.10 && \ |
|
16 |
- mkdir -p /usr/bin && \ |
|
9 |
+RUN yum -y install haproxy && \ |
|
17 | 10 |
mkdir -p /var/lib/containers/router/{certs,cacerts} && \ |
18 | 11 |
mkdir -p /var/lib/haproxy/{conf,run,bin,log} && \ |
19 | 12 |
touch /var/lib/haproxy/conf/{{os_http_be,os_tcp_be,os_sni_passthrough,os_reencrypt}.map,haproxy.config} && \ |
20 |
- yum -y remove gcc && \ |
|
21 | 13 |
yum clean all |
22 | 14 |
|
23 | 15 |
ADD conf/ /var/lib/haproxy/conf/ |
... | ... |
@@ -9,7 +9,7 @@ if [ -f $pid_file ]; then |
9 | 9 |
fi |
10 | 10 |
|
11 | 11 |
if [ -n "$old_pid" ]; then |
12 |
- /usr/local/sbin/haproxy -f $config_file -p $pid_file -sf $old_pid |
|
12 |
+ /usr/sbin/haproxy -f $config_file -p $pid_file -sf $old_pid |
|
13 | 13 |
else |
14 |
- /usr/local/sbin/haproxy -f $config_file -p $pid_file |
|
14 |
+ /usr/sbin/haproxy -f $config_file -p $pid_file |
|
15 | 15 |
fi |