Registry id and url for all in one install

This commit is contained in:
Venkatesh Babu
2024-05-10 17:28:08 +05:30
parent f4372c6b20
commit 061adc604a
2 changed files with 4 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ install_gateway() {
if [[ $1 && $2 ]]; then if [[ $1 && $2 ]]; then
bash scripts/update_gateway_details.sh $1 $2 bash scripts/update_gateway_details.sh $1 $2
else else
bash scripts/update_gateway_details.sh registry bash scripts/update_gateway_details.sh http://registry:3030
fi fi
echo "${GREEN}................Installing Gateway service................${NC}" echo "${GREEN}................Installing Gateway service................${NC}"
start_container $gateway_docker_compose_file gateway start_container $gateway_docker_compose_file gateway

View File

@@ -90,6 +90,9 @@ if [[ $1 ]]; then
registry_id=$(echo "$1" | sed 's/http:\/\///') registry_id=$(echo "$1" | sed 's/http:\/\///')
fi fi
fi fi
if [[ $registry_id = "registry:3030" ]]; then
registry_id="registry"
fi
fi fi
if [[ $2 ]]; then if [[ $2 ]]; then