Merge "HAProxy container"
This commit is contained in:
commit
6d4a55060e
11
docker/centos/binary/haproxy/Dockerfile
Executable file
11
docker/centos/binary/haproxy/Dockerfile
Executable file
@ -0,0 +1,11 @@
|
||||
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
RUN yum -y install \
|
||||
haproxy \
|
||||
&& yum clean all
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker/centos/binary/haproxy/build
Symbolic link
1
docker/centos/binary/haproxy/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../tools/build-docker-image
|
1
docker/centos/binary/haproxy/config-external.sh
Symbolic link
1
docker/centos/binary/haproxy/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../common/haproxy/config-external.sh
|
1
docker/centos/binary/haproxy/start.sh
Symbolic link
1
docker/centos/binary/haproxy/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../common/haproxy/start.sh
|
11
docker/common/haproxy/config-external.sh
Executable file
11
docker/common/haproxy/config-external.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
SOURCE="/opt/kolla/haproxy/haproxy.cfg"
|
||||
TARGET="/etc/haproxy/haproxy.cfg"
|
||||
OWNER="root"
|
||||
|
||||
if [[ -f "$SOURCE" ]]; then
|
||||
rm $TARGET
|
||||
cp $SOURCE $TARGET
|
||||
chown ${OWNER}: $TARGET
|
||||
chmod 0644 $TARGET
|
||||
fi
|
17
docker/common/haproxy/start.sh
Executable file
17
docker/common/haproxy/start.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -o errexit
|
||||
|
||||
CMD='/usr/sbin/haproxy'
|
||||
# Parameters:
|
||||
# -db for non-daemon execution and logging to stdout
|
||||
# -p pidfile to specify pidfile and allow hot reconfiguration
|
||||
# loop which generates -f file.conf for each file in /etc/haproxy and /etc/haproxy/conf.d
|
||||
ARGS="-db -f /etc/haproxy/haproxy.cfg"
|
||||
|
||||
# Loading common functions.
|
||||
source /opt/kolla/kolla-common.sh
|
||||
|
||||
# Config-internal script exec out of this function, it does not return here.
|
||||
set_configs
|
||||
|
||||
exec $CMD $ARGS
|
@ -229,6 +229,10 @@ In order for each service to function, there is a minimum set of required variab
|
||||
GLANCE_DB_USER
|
||||
MARIADB_SERVICE_HOST
|
||||
|
||||
# Haproxy
|
||||
|
||||
None
|
||||
|
||||
# Hautoproxy
|
||||
|
||||
None
|
||||
|
Loading…
Reference in New Issue
Block a user