Skip to content

cb-cities/docker-abm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for CA-ABM

Krishna Kumar

Docker image Docker Repository on Quay Build status Docker hub

Tools

  • GHC 8.0.1
  • Cabal 1.24
  • GCC 6
  • Node 6.3.1

Creating an image from the docker file

  • To build an image from docker file run as root docker build -t "cbgeo/ca-abm:latest" /path/to/Dockerfile
  • docker history will show you the effect of each command has on the overall size of the file.

Using the docker image

  • The docker image can be used directly from the Docker Hub or Quay.io
  • Pull the docker image docker pull cbgeo/ca-abm or docker pull quay.io/cbgeo/ca-abm
  • To launch the cbgeo/ca-abm docker container, run docker run -ti cbgeo/ca-abm:latest /bin/bash or docker run -ti quay.io/cbgeo/ca-abm:latest /bin/bash

Run the container with local volume mounted

  • docker run -ti -v /home/<user>/<mounted-folder>/:/<path-in-container> cbgeo/ca-abm:latest /bin/bash

Exposing ports

  • To connect to a particular port (for e.g., 3000) in docker container to port 3000 in localhost: docker run -ti -p 3000:3000 cbgeo/ca-abm