Conversation
Add a docker-compose.yml, a Dockerfile and change some stuff in manage.py so that db is set up inside docker
Also remove an unused import which was causing tests to fail and add pytest to requirements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Unless Alastair has comments, lets merge this and then do LB-160.
I have the LB-160 patch ready to send as soon as this gets merged. |
Not needed anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🌵
@@ -0,0 +1,34 @@ | |||
FROM python:2.7.12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the idea is that we switch this to python3 once this PR is merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep.
README.md
Outdated
Everything should be good to go now. You should be able to access the webserver at `http://localhost:8080`. | ||
|
||
Also, in order to run the tests, just use the command: `./test.sh`. | ||
|
||
### The Usual Way | ||
|
||
Full installation instructions are available in [INSTALL.md](https://github.com/metabrainz/messybrainz-server/blob/master/INSTALL.md) file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to have normal installation instructions? I'm happy to force everyone to use Docker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, I'll remove it.
@@ -0,0 +1,130 @@ | |||
#!/bin/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're now sharing these scripts among multiple projects. I wonder if it's a good idea that we make a separate project for them and git submodule them in for use by each project. Then our test.sh
can just import this file and set a few variables.
Docker is the only supported install method now.
Almost all of the stuff taken from LB. Had to fix some tests as well.