The goal of this project is to give possibility to setup Django-Oscar development environment as easy as it possible. More development tools for debugging and monitoring will follow.
Clone this project into your work directory:
$ git clone "https://github.com/trydirect/django-oscar.git"
$ cd django-oscar
Run stack with:
$ docker-compose up -d
In order to create django oscar database structure and load demo data execute following command:
docker exec --user=oscar -it oscar /sandbox.sh
Sync project source code on host machine and container
- Generate static files
docker exec --user=oscar -it oscar bash -c 'cd sandbox && python3 manage.py collectstatic’
- Copy source code from container to host machine:
docker cp oscar:/app .
- Remove containers
docker-compose down
- Add line from below to docker-compose.yml for oscar service:
volumes:
- ./app:/app
- Add line from below to docker-compose.yml for nginx service:
volumes:
- ./app/sandbox/public:/usr/share/nginx/html
- Recreate containers
docker-compose up -d
COMPOSE_HTTP_TIMEOUT=300 docker-compose exec sentry bash -c "sentry upgrade"
- Fork it (https://github.com/trydirect/django-oscar/fork)
- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request