Don't pull ubuntu image on every startup. Use server's full hostname.

This commit is contained in:
Martin Lablans 2022-10-26 10:44:32 +02:00
parent 2b8ed4233e
commit 3351e696af
1 changed files with 5 additions and 2 deletions

View File

@ -109,8 +109,11 @@ fail_and_report() {
}
##Setting Network properties
export HOSTIP=$(MSYS_NO_PATHCONV=1 docker run --rm --add-host=host.docker.internal:host-gateway ubuntu cat /etc/hosts | grep 'host.docker.internal' | awk '{print $1}');
export HOST=$(hostname)
# currently not needed
#export HOSTIP=$(MSYS_NO_PATHCONV=1 docker run --rm --add-host=host.docker.internal:host-gateway ubuntu cat /etc/hosts | grep 'host.docker.internal' | awk '{print $1}');
export HOST=$(hostname -f)
export PRODUCTION="false";
if [ "$(git branch --show-current)" == "main" ]; then
export PRODUCTION="true";