I'm working with git and docker and wanted some advice as to how I should implement my project.
The project has these functional components:
- Web scraper (info scraped gets thrown into a database, which must be shared by all components)
- Basic data analysis on scraped content (reads from database)
- Statistical analysis and simulation (reads from database)
I want to be able to do something like
"git pull web_scraper"
from within a docker image and only have the files from the web scraper component.
I am pretty sure this can be done very easily with branches, but I am not sure how.
Edit 1
My question is more geared towards git than docker. I am figuring that out pretty well.
-prj
| +scraper
| +analyzer
| +statistics
I want to know whether I should have a git repository for just prj or initialize one within scraper, analyzer, and statistics.
I am loving docker, but just want to have the ability to edit code on a nice editor (sublime).
git pullin your docker image? Whether you are doing this duringdocker buildor after running the container that is a bad practice 99 percent of the time.