This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dockerBaseImage := "loyaltyone/dakka:0.5" | |
dockerEntrypoint := "/usr/local/bin/bootstrap" +: dockerEntrypoint.value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DOCKER_MIRROR_HOST=$(/sbin/ip route | awk '/default/ { print $3 }') | |
DOCKER_MIRROR_PORT=${MIRROR_PORT:-9001} | |
DOCKER_MIRROR="http://$DOCKER_MIRROR_HOST:$DOCKER_MIRROR_PORT" | |
# HOSTNAME is the Docker container ID, docker initializes this variable to the container ID | |
# APP_PORT is the container Port | |
export HOST_IP=$(curl $DOCKER_MIRROR/hostip) | |
export HOST_PORT=$(curl $DOCKER_MIRROR/container/$HOSTNAME/port/$APP_PORT) |
NewerOlder