Add some docker magick to drb_counter
This commit is contained in:
@@ -20,10 +20,10 @@ docker rmi mozo_drb_counter
|
||||
docker build -f drb_counter/Dockerfile -t mozo_drb_counter .
|
||||
|
||||
# debug docker and enter the bash:
|
||||
# docker run --network=host --env DRB_ENV=production -t -i --rm mozo_drb_counter bash
|
||||
# docker run --network=host --env DRB_ENV=production --env COUCHDB_ADMIN_PASSWORD=$COUCHDB_ADMIN_PASSWORD -t -i --rm mozo_drb_counter bash
|
||||
|
||||
# 5. Spin up the counter container from the generated image
|
||||
docker run --network=host --env DRB_ENV=production --env COUCHDB_ADMIN_PASSWORD=$COUCHDB_ADMIN_PASSWORD --restart unless-stopped --detach --name=mozo_drb_counter mozo_drb_counter
|
||||
docker run --network=host --env DRB_ENV=production --env COUCHDB_ADMIN_PASSWORD=$COUCHDB_ADMIN_PASSWORD --add-host=host.docker.internal:host-gateway --restart unless-stopped --detach --name=mozo_drb_counter mozo_drb_counter
|
||||
|
||||
# To just start the container created through al these steps without rebuilding them:
|
||||
# docker container start $(docker ps -a -q --filter ancestor=mozo_drb_counter)
|
||||
|
||||
Reference in New Issue
Block a user