Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for Docker. This is intended to easy the initial set-up of the environment and requirements for recurring and first-time contributors alike. The advantage of using this approach is that the developer does not need to install and configure postgresql, ruby, python3.4 and all python packages locally, effectively simplifying the installation and set up of the environment. Also, if the environment is not needed, is very easy to clean.
To install all dependencies and start the containers:
Install docker and docker-compose
docker-compose up --build
The first set up will take a while, but after that everything will be cached and therefore new instantiation of the containers will take much less time.
Access the webpage on
localhost:8000
.Profit! 馃挵
If you want to change anything in the project and see the result, just re-run
docker-compose up --build
again. Take into account that this will NOT reset the database. If you want to start truly clean, rundocker-compose rm
first to remove the previous containers.One of the main targets of using this approach is to make much easier to set up everything for new developers and contributors, no mater if they use Windows, Linux or MacOS as long as they can run docker.