cd ~/ws/national-parks-plan hab studio enter
build
hab pkg export docker mattray/national-parks
HAB_MONGODB="$(cat mongodb/mongo.toml)" hab start core/mongodb
docker images
hab pkg export docker core/mongodb
hab pkg export docker billmeyer/mongodb
docker run -it -p 27017:27017 billmeyer/mongodb
docker run -it -p 27017:27017 core/mongodb
hab sup config learn/mongodb
DOCKER_CID=$(docker ps | grep "mattray/mongodb" | awk '{print
hab start mattray/national-parks --peer 172.17.0.2 --bind database:mongodb.default
curl http://172.17.0.2:9631/services
curl http://52.237.210.184:9631/services curl http://52.237.210.184:9631/butterfly
curl http://:9631/census curl http://:9631/services curl http://:9631/services/{name}/{group}/config curl http://:9631/services/{name}/{group}/{organization}/config curl http://:9631/services/{name}/{group}/health curl http://:9631/services/{name}/{group}/{organization}/health curl http://:9631/butterfly
hab-sup(GS): Supervisor 172.17.0.4: 4765dcc9-f0f3-4c08-97cb-cace4f253c23 hab-sup(GS): Census mongodb.default: 553b43a7-704e-4f48-9d29-9160f9a38fd8
docker run -it -p 8080:8080 mattray/national-parks --peer 172.17.0.4 --bind database:mongodb.default
open http://192.168.142.180:8080/ open http://192.168.142.180:8080/national-parks/
open http://0.0.0.0:8080/national-parks/ open http://localhost:8080/national-parks/
echo $(docker ps | grep redis | awk '{ print $1 }' | xargs docker inspect -f '{{ .NetworkSettings.IPAddress }}' | tail -1)