This is the repo that controls the viewing of the groove.io live music site. It's currently using Flask and communicates with a mongo database.
First, install docker toolkit. Use your mad google skillz to figure that out
To run the project, execute the following command in this directory: docker-compose up
The current docker-compose file adds the current directory as a volume so any edits you do locally will be instantly reflected in the container. Python source edits should restart the server. If its not picking up the change just restart the container.
As of this writing, when the compose stack comes up, the scraper will immediately go to the current day's gigs and populate the DB. Soon, all builds will be triggered via scrapyd's JSON API.
app/static - CSS, images app/templates - HTML templates in jinja2 app/views.py - Router for all the endpoints. This does most of the db querying and builds the objects which are passed to the templates.
To hit the site, hit the docker endpoint:
http://192.168.99.100/gigs/2016-07-16
This repo will use automated testing eventually...
Committing to master on this repo will trigger a build on docker hub. Once finished, a trigger is sent to docker cloud where the container is pulled down and deployed to the environment. As the project grows, production deployments will need to be manually approved and automated deployments will go to a dev environment.
docker-machine ip defaultdocker ps - get container process ID
docker exec -it <containerID> bashContent type
Image
Digest
Size
267.6 MB
Last updated
over 9 years ago
docker pull wandergeek/site