Docker - WildCAS/CASCategorization GitHub Wiki
Docker
What is Docker?
Docker is an application wrapper that will isolate the application's file system, configuration, libraries, etc from the host system. This level of isolation will allow for an quicker and easier setup by creating a container for the application. See the official Docker website for more details. This project will employ Docker's Compose which will allow for configuring Docker Contains with greater abstraction from managing Docker containers directly.
Getting started with Docker
Please see Docker Compose Installation Guide for instructions. Please note that for Windows and Mac developers may have to install Docker Toolbox or Docker for Windows/Mac.
(Feel free to play around with the Docker Compose Django tutorial, it will provide some intuition ☺)
Running Docker
- Verify that Docker is installed by running
docker-compose --version
. Ensure that the version is at least 1.7.1.
- For Windows users only: Start the Docker Quickstart Terminal.
- Navigate to the repo folder in the terminal.
- Run
docker-compose build
, this will start the container build process and may take a couple minutes. - Run
docker-compose run web python manage.py migrate
, which will automatically migrate the database (this is the db that is in the Docker container).
(And no need to modify the db settings 😊!)
Questions or comments or suggestions? Feel free to file an issue and/or create a PR!