mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 13:00:14 +02:00
Don't pull ubuntu image on every startup. Use server's full hostname.
This commit is contained in:
@ -109,8 +109,11 @@ fail_and_report() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
##Setting Network properties
|
##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}');
|
# currently not needed
|
||||||
export HOST=$(hostname)
|
#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";
|
export PRODUCTION="false";
|
||||||
if [ "$(git branch --show-current)" == "main" ]; then
|
if [ "$(git branch --show-current)" == "main" ]; then
|
||||||
export PRODUCTION="true";
|
export PRODUCTION="true";
|
||||||
|
Reference in New Issue
Block a user