Skip to content

Build and run GraphSpace docker image using DockerFile

JingVT edited this page Oct 10, 2018 · 9 revisions

Running Docker

The reason we have a docker image is to make it easier for you to run GraphSpace on your local machine. Follow these steps to build and run the graphspace docker image on your machine:

  1. Install Docker

    Check out How To Install and Use Docker on Ubuntu 16.04 to learn how to install Docker on Ubuntu instances.

  2. Install Docker-compose

    Check out How To Install Docker Compose on Ubuntu 16.04 to learn how to install Docker Compose on Ubuntu instances.

  3. Clone the GraphSpace repo.

    git clone -b notifications https://github.com/Murali-group/GraphSpace.git

  4. Go to GraphSpace repo.

  5. Purging all dangling and unused images, containers, volumes, and networks

    # These commands work for Ubuntu 16.04
    sudo docker system prune
    sudo docker system prune -a
    
  6. Run docker

    sudo docker-compose up
    
  7. Go to 0.0.0.0:8000 in your browser to access GraphSpace.

If you face any problems, please refer to this issue and let us know if it doesn't help.

Upgrade Docker

Follow these steps:

  1. Fork the GraphSpace repository.

  2. Update the DockerFile with new packages.

    Learn more about how to work with DockerFile here

  3. Update docker_command.sh file, add command to run the installed package/service. These commands are executed when the docker image is run on a container.

  4. After thorough testing send a PR.

Clone this wiki locally