Skip to content

Commit 6904843

Browse files
Added logic while redeploy for update haproxy cfg
1 parent 625b2fc commit 6904843

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

devops/linux/docker/conf/haproxy/haproxy.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ backend fe_backup-restore-api
7070
balance roundrobin
7171
server-template jempi_backup-restore-api- 1 jempi_backup-restore-api:50000 check resolvers docker init-addr libc,none
7272

73-
7473
backend be_api_kc
7574
balance roundrobin
7675
server-template jempi_api-kc- 1 jempi_api-kc:50000 check resolvers docker init-addr libc,none

devops/linux/docker/deployment/deploy-local.sh

+8
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ create_registry(){
114114
popd
115115

116116
}
117+
copy_ha_proxy(){
118+
pushd "$JEMPI_HOME/devops/linux/docker/"
119+
source conf.env
120+
echo "Updating haproxy cfg file"
121+
cp conf/haproxy/*.* ${DATA_HAPROXY_DIR}
122+
popd
123+
}
117124
pull_docker_images_and_push_local(){
118125
# Navigate to Docker directory
119126
pushd "$JEMPI_HOME/devops/linux/docker/deployment/common"
@@ -200,6 +207,7 @@ case $choice in
200207
7)
201208
echo "Re Deploy JeMPI"
202209
run_enviroment_configuration_and_helper_script
210+
copy_ha_proxy
203211
while true; do
204212
read -p "Do you want to get the latest docker images? " yn
205213
case $yn in

0 commit comments

Comments
 (0)