fix(install): Correct local Docker setup and uninstall scripts
This commit is contained in:
@@ -40,6 +40,9 @@ else
|
|||||||
elif [[ $(systemd-detect-virt) == 'wsl' ]]; then
|
elif [[ $(systemd-detect-virt) == 'wsl' ]]; then
|
||||||
ip=$(hostname -I | awk '{print $1}')
|
ip=$(hostname -I | awk '{print $1}')
|
||||||
registry_url="http://$ip:3030/subscribers"
|
registry_url="http://$ip:3030/subscribers"
|
||||||
|
elif [[ $(grep -i 'ubuntu' /etc/os-release) ]]; then
|
||||||
|
ip=localhost
|
||||||
|
registry_url="http://$ip:3030/subscribers"
|
||||||
else
|
else
|
||||||
registry_url="http://$(get_container_ip registry):3030/subscribers"
|
registry_url="http://$(get_container_ip registry):3030/subscribers"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ else
|
|||||||
elif [[ $(systemd-detect-virt) == 'wsl' ]]; then
|
elif [[ $(systemd-detect-virt) == 'wsl' ]]; then
|
||||||
ip=$(hostname -I | awk '{print $1}')
|
ip=$(hostname -I | awk '{print $1}')
|
||||||
registry_url="http://$ip:3030/subscribers"
|
registry_url="http://$ip:3030/subscribers"
|
||||||
|
elif [[ $(grep -i 'ubuntu' /etc/os-release) ]]; then
|
||||||
|
ip=localhost
|
||||||
|
registry_url="http://$ip:3030/subscribers"
|
||||||
else
|
else
|
||||||
registry_url="http://$(get_container_ip registry):3030/subscribers"
|
registry_url="http://$(get_container_ip registry):3030/subscribers"
|
||||||
fi
|
fi
|
||||||
|
|||||||
2
install/uninstall.sh
Normal file → Executable file
2
install/uninstall.sh
Normal file → Executable 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-bap.yml down -v
|
||||||
docker compose -f docker-compose-bpp.yml down -v
|
docker compose -f docker-compose-bpp.yml down -v
|
||||||
docker compose -f docker-compose-bpp-with-sandbox.yml down -v
|
docker compose -f docker-compose-bpp-with-sandbox.yml down -v
|
||||||
|
|||||||
Reference in New Issue
Block a user