Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
161 views
in Technique[技术] by (71.8m points)

git - Sharing docker envinroment

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...