Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement/Add Docker-Compose file for development #204

Merged
merged 2 commits into from May 20, 2019

Conversation

@c-w
Copy link
Member

c-w commented May 16, 2019

This pull request adds a compose file to set up the development environment with just one command: docker-compose up.

The compose file runs and links the Django server, Webpack devserver and a Postgres database. An admin user is also created if it doesn't exist yet.

The compose file uses standard base images (node:8 and python:3.6) and injects the code via bind-mounts. This approach provides an efficient development experience by avoiding the Docker build step and also enabling automatic reloading of the Django and Webpack servers when the code is changed.

To prevent potential issues resulting from differences in the operating system in the containers and the host operating system, the virtualenv and node_modules are hidden from the host via volumes.

@c-w c-w force-pushed the CatalystCode:enhancement/docker-compose branch from d7c9305 to 3b30f7e May 16, 2019
@c-w c-w force-pushed the CatalystCode:enhancement/docker-compose branch 2 times, most recently from f9745d4 to 13f22b3 May 16, 2019
@c-w c-w force-pushed the CatalystCode:enhancement/docker-compose branch from 13f22b3 to 996d67a May 16, 2019
@Hironsan Hironsan merged commit 2cc11c0 into doccano:master May 20, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@c-w c-w deleted the CatalystCode:enhancement/docker-compose branch Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.