Skip to content
Snippets Groups Projects
Commit 6d4a5506 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "HAProxy container"

parents 3803663c 38bed674
No related branches found
No related tags found
No related merge requests found
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"]
../../../../tools/build-docker-image
\ No newline at end of file
../../../common/haproxy/config-external.sh
\ No newline at end of file
../../../common/haproxy/start.sh
\ No newline at end of file
#!/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
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment