vajda-lab / scc-api

RESTful API for high performance computing centers
0 stars 1 forks source link
api-rest high-performance-computing

Read Me

Build Status

Docker Setup

Our Docker containers expect the existence of an environment file. To generate it on *nix systems please invoke the build_docker_env.sh script.

./build_docker_env.sh

To run the Docker containers use the command below.

$ docker-compose up

If you wish to run the servers in the background use the -d (detached) flag, as demonstrated below.

$ docker-compose up -d

To turn off the server use Control-C in the terminal window. If running in the background use the command below.

$ docker-compose down

To remove all of the assets created by Docker to run the server use the command below. The --volumes flag may be shortened to -v. NOTE The command below will also remove the database, thus removing any records or users created. This includes the superuser.

$ docker-compose down --volumes --rmi local

To create a superuser use:

$ docker-compose run --rm django python manage.py createsuperuser

To run the tests in Docker use:

# from root of project
$ docker-compose run --rm django pytest