Skip to content

【文章自荐】习惯于使用docker做任何开发 #2122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AlexChingEraser opened this issue Dec 24, 2021 · 0 comments
Open

【文章自荐】习惯于使用docker做任何开发 #2122

AlexChingEraser opened this issue Dec 24, 2021 · 0 comments

Comments

@AlexChingEraser
Copy link

Dock Life: Using Docker for All The things!

文章里面有几个观点很有意思:

  • 如果不考虑配置,我们使用docker image更像使用app。站在使用者的角度来看,虽然开发一款app很难,但使用app就跟玩一样(大概就是这个意思哈哈哈)。这一定程度上分离了我对docker的看法,就像文章中说的,我可以把docker看成是使用app,而不是一开始就陷入学习怎么写Dockerfile上,因为我们更像是一个app用户而不是app开发者,不是吗?
  • 如果我们要使用一个app或者一个功能,我们总是倾向于下载到本地然后走一遍很多繁琐的配置项。但如果我们习惯了使用docker,我们每次切换到一台新机子上时,只需要copy走本地的docker alias,像:
    alias composer='docker run --rm -it -v "${CURDIR}":/app -v ${COMPOSER_HOME:-$HOME/.composer}:/tmp composer '(配置在~/.bashrc中),并不需要陷入下载-配置-运行-卸载的循环中;
  • 拿来就用,用了就走。很像现在的小程序思想,用户本地的包袱会很小,只需要考虑如何用即可,甚至说我把配置alias全放在云端,本地机器简直就是海王,撩了很多app,然后用了app就撤。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants