B1's website
- Install Docker and docker-compose. Use Docker Toolbox to do this easily.
- Get your shell docker-ready:
docker-machine start
eval $(docker-machine env)
- Create app.env. Specify
SECRET_KEY=generate a random string
DEBUG=True
- Start developing!! The dev server will be available at your docker-machine's IP address, port 8000. To docker your docker-machine's IP run
docker-machine ip
. - If it's your first time starting this container, you'll want to run DB migrations
docker-compose exec app python3 manage.py migrate
and create a superuser with your kerberos as the usernamedocker-compose exec app python3 manage.py createsuperuser
.
to run a django command: docker-compose exec app python3 manage.py yourcommand
to run docker-compose up
in the background use docker-compose up -d
- branch from master (
git checkout master; git checkout -b my-feature
) the branch name should be related to the feature you're working on - work on your feature and add appropriate tests
- commit and push (
git push -u origin my-feature
) - create a pull request to master
- let travis tests pass
- wait for thumbs up
- deployed maybe some day