Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Quickstart (for Linux)

Justin Grant edited this page Aug 26, 2015 · 12 revisions

Make sure your requirements for Linux are installed.

Starting up a Server Container as an Administrator

  1. Open a terminal window

  2. Run sudo docker run -d -p 27017:27017 --name deloitte-mongodb deloitteva/docker-mongodb

    This will start up a server container and let it run in the background.

Running MongoDB Queries

  1. Run sudo docker run -it --name deloitte-mongodb-client --link deloitte-mongodb:mongo --rm deloitteva/docker-mongodb-client

    This will start up a client container that will be running Mongo Shell and allow you to interact with it.

  2. Execute your Mongo shell queries

Running Tomcat Application Container

  1. Run sudo docker run -it -p 8080:8080 --rm --link deloitte-mongodb:mongo -v /mydata:/data deloitteva/docker-snp

    This will start up the tomcat application container with the web application loaded. Note that it is assumed that you have downloaded the data files to the /mydata directory. Please adjust this accordingly. Once the system has started up (which can take a couple of minutes), REST points can then be accessed via the REST API

Exit/Stop/Cleanup Commands

  1. In the Mongo shell, type exit when you are done executing queries.

  2. Run sudo docker kill deloitte-mongodb

    This will stop the mongo server container.

  3. run sudo docker rm deloitte-mongodb to cleanup

    This will help to cleanup and avoid issues starting another container with the same name going forward.

Clone this wiki locally