fix(install): Correct local Docker setup and uninstall scripts

This commit is contained in:
ameersohel45
2025-10-15 18:08:38 +05:30
parent 261822c935
commit ba94a7cb3c
3 changed files with 7 additions and 1 deletions

View File

@@ -40,6 +40,9 @@ else
elif [[ $(systemd-detect-virt) == 'wsl' ]]; then
ip=$(hostname -I | awk '{print $1}')
registry_url="http://$ip:3030/subscribers"
elif [[ $(grep -i 'ubuntu' /etc/os-release) ]]; then
ip=localhost
registry_url="http://$ip:3030/subscribers"
else
registry_url="http://$(get_container_ip registry):3030/subscribers"
fi

View File

@@ -42,6 +42,9 @@ else
elif [[ $(systemd-detect-virt) == 'wsl' ]]; then
ip=$(hostname -I | awk '{print $1}')
registry_url="http://$ip:3030/subscribers"
elif [[ $(grep -i 'ubuntu' /etc/os-release) ]]; then
ip=localhost
registry_url="http://$ip:3030/subscribers"
else
registry_url="http://$(get_container_ip registry):3030/subscribers"
fi

2
install/uninstall.sh Normal file → Executable file
View File

@@ -1,4 +1,4 @@
docker compose -f docker-compose-adapter2.yml down -v
docker compose -f docker-compose-adapter.yml down -v
docker compose -f docker-compose-bap.yml down -v
docker compose -f docker-compose-bpp.yml down -v
docker compose -f docker-compose-bpp-with-sandbox.yml down -v