GithubHelp home page GithubHelp logo

ccn-coverage-docker's Introduction

This repo allows you to run the ccn-coverage project in docker compose.

Prerequisites

You have checked out ccn-coverage-related git repos as follows:

foo/
├── ccn-coverage-api/
├── ccn-coverage-vis/
├── ccn-coverage-docker/ (this repo)

All commands below must be executed while you have cd'd to this directory.

Setting up for the first time

docker compose run --rm \
  -v "$PWD/mongo-data-init:/mongo-data-init" \
  mongo \
  /mongo-data-init/initialize.sh

docker compose build

Running for dev

docker compose up -d

# Follow logs in order to infer when the containers are ready. (Docker cannot inform application logic readiness.)
docker compose logs -f api
docker compose logs -f vis

# Open the app on your browser at this address.
curl localhost:8000

# When done
docker compose down

Running the "release" versions of containers

docker compose \
  -f docker-compose.yaml \
  -f docker-compose.override.release.yaml \
  build

docker compose \
  -f docker-compose.yaml \
  -f docker-compose.override.release.yaml \
  up -d

# The workflow for dev is applicable here too (build, up, logs, down).
# Until you bring down the containers, remember to specify the same yaml files in the same order: `docker compose -f <ditto> -f <ditto> <your_command ...>`.

Troubleshooting

If stuck, try down, build, then up.

  1. docker compose <...> down
  2. docker ps -a. This lists all containers (exited or running). You might want to kill some or all of them. docker rm <name or id of container>.
  3. docker compose <...> build
  4. docker compose <...> up -d

ccn-coverage-docker's People

Contributors

ysono avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.