-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add Docker support for local development #12
Conversation
llitfkitfk
commented
Mar 22, 2020
•
edited
Loading
edited
- add docker support for local development
- add quick start for local development
|
@UlricQin |
@UlricQin updated
|
fixed |
@UlricQin All updated |
@@ -136,12 +136,12 @@ status() | |||
build_one() | |||
{ | |||
mod=$1 | |||
go build -o n9e-${mod} --tags "md5" src/modules/${mod}/${mod}.go | |||
go build -o bin/n9e-${mod} --tags "md5" src/modules/${mod}/${mod}.go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要bin目录了,会导致默认的配置文件路径不对了,二进制默认会读取etc下的配置,方便调试
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
能否加个 build for docker的 如果不加bin
之后有个不够copy需要一个个写编译出的bin文件名称 有点不通用
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
能否通过通配符的方式拷贝,比如cp n9e-* /path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
试过 不行 不支持
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好,那把control脚本修改一下吧,./control build docker 这样调用的话,就按照你这个方式来
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
docker/etc/address.yml
Outdated
@@ -0,0 +1,34 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
配置文件在docker下面又放了一份,后面修改的时候需要修改两份,可否用一份搞定?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker 内的配置 连接其他服务需要改host 能否使用环境变量?
如果不行, 明天改为打包的时候用sed修改一下host
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没太理解,能否加个微信详细沟通一下 18612185520
@UlricQin updated |