Skip to content

Commit

Permalink
Fix docker networking things for OSX (and hopefully linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaida Masaki committed Sep 20, 2017
1 parent 20f1b93 commit 675b4ab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/start-renderer.sh
Expand Up @@ -20,6 +20,13 @@ if [ '--dev' = "$1" ]; then
else
bin/dockerize.sh
rm frozen.txt
docker run -p 4096:4096 -e STYLE_HOST=localhost -e STYLE_PORT=4097 -e LOG_LEVEL=INFO carto-renderer

if [ 'Darwin' = "$(uname)" ]; then
OPTS=(-p 4096:4096 -e 'STYLE_HOST=docker.for.mac.localhost')
else
OPTS=('--net=host')
fi

docker run "${OPTS[@]}" -e STYLE_PORT=4097 -e LOG_LEVEL=INFO carto-renderer
fi

0 comments on commit 675b4ab

Please sign in to comment.