Skip to content

Instantly share code, notes, and snippets.

ukayani / build.sbt
Created Nov 21, 2017
Adding dakka image to sbt akka project
View build.sbt
dockerBaseImage := "loyaltyone/dakka:0.5"
dockerEntrypoint := "/usr/local/bin/bootstrap" +: dockerEntrypoint.value
ukayani /
Created Nov 21, 2017
Bootstrapping docker image with Docker Mirror
DOCKER_MIRROR_HOST=$(/sbin/ip route | awk '/default/ { print $3 }')
# 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)