What's the right way to share environment and code between team members?
I need this for local development. In my vision, a developer download from a git repo the environment (basically a docker compose with subfolders and configuration), then pull from another repo the code and put it inside the right folder of the previous structure.
REPO1 -> docker-compose with configuration, specific Dockerfile etc.
REPO2 -> code
So I'll have two separate, and then nested, git repositories, at this point I can build and deploy the whole thing. Is it the right path?
- Should I build a docker image and share that, instead of the
environment details? Can I then pull code and insert it?
- How do you commit empty folder (the one that will be used to host
the code) in a git repository without using the ".keep file"
trick?
As you can see I'm a newbie and have quite a bit of confusion in my head.
Any help would be appreciated. Thanks.
question from:
https://stackoverflow.com/questions/65859317/sharing-docker-envinroment 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…