Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
nightingale
提交
cbe0c282
N
nightingale
项目概览
DiDi
/
nightingale
12 个月 前同步成功
通知
46
Star
7053
Fork
1161
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nightingale
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cbe0c282
编写于
3月 23, 2020
作者:
L
llitfkitfk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: docker build
上级
5e2ff73e
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
10 addition
and
22 deletion
+10
-22
Dockerfile
Dockerfile
+2
-14
control
control
+2
-2
docker-compose.yml
docker-compose.yml
+6
-6
未找到文件。
Dockerfile
浏览文件 @
cbe0c282
...
@@ -8,19 +8,7 @@ WORKDIR /app
...
@@ -8,19 +8,7 @@ WORKDIR /app
# RUN go mod download
# RUN go mod download
COPY
. .
COPY
. .
ENV
GOPROXY=https://mod.gokit.info
RUN
./control build
RUN
echo
"build monapi"
\
&&
go build
-v
-o
./bin/monapi src/modules/monapi/monapi.go
\
&&
echo
"build transfer"
\
&&
go build
-v
-o
./bin/transfer src/modules/transfer/transfer.go
\
&&
echo
"build tsdb"
\
&&
go build
-v
-o
./bin/tsdb src/modules/tsdb/tsdb.go
\
&&
echo
"build index"
\
&&
go build
-v
-o
./bin/index src/modules/index/index.go
\
&&
echo
"build judge"
\
&&
go build
-v
-o
./bin/judge src/modules/judge/judge.go
\
&&
echo
"build collector"
\
&&
go build
-v
-o
./bin/collector src/modules/collector/collector.go
FROM
alpine:3.10
FROM
alpine:3.10
LABEL
maintainer="llitfkitfk@gmail.com"
LABEL
maintainer="llitfkitfk@gmail.com"
...
@@ -28,7 +16,7 @@ RUN apk add --no-cache tzdata ca-certificates bash
...
@@ -28,7 +16,7 @@ RUN apk add --no-cache tzdata ca-certificates bash
WORKDIR
/app
WORKDIR
/app
COPY
--from=builder /app/etc /app/etc
COPY
--from=builder /app/
docker/
etc /app/etc
COPY
--from=builder /app/bin /usr/local/bin
COPY
--from=builder /app/bin /usr/local/bin
...
...
control
浏览文件 @
cbe0c282
...
@@ -136,13 +136,13 @@ status()
...
@@ -136,13 +136,13 @@ status()
build_one
()
build_one
()
{
{
mod
=
$1
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
}
}
build
()
build
()
{
{
export
GO111MODULE
=
on
export
GO111MODULE
=
on
export
GOPROXY
=
https://m
irrors.aliyun.com/goproxy/
export
GOPROXY
=
https://m
od.gokit.info
mod
=
$1
mod
=
$1
if
[
"x
${
mod
}
"
=
"x"
]
;
then
if
[
"x
${
mod
}
"
=
"x"
]
;
then
...
...
docker-compose.yml
浏览文件 @
cbe0c282
...
@@ -17,7 +17,7 @@ services:
...
@@ -17,7 +17,7 @@ services:
monapi
:
monapi
:
image
:
api
image
:
api
restart
:
always
restart
:
always
command
:
monapi
command
:
n9e-
monapi
volumes
:
volumes
:
-
./docker/etc:/app/etc
-
./docker/etc:/app/etc
ports
:
ports
:
...
@@ -26,7 +26,7 @@ services:
...
@@ -26,7 +26,7 @@ services:
transfer
:
transfer
:
image
:
api
image
:
api
restart
:
always
restart
:
always
command
:
transfer
command
:
n9e-
transfer
volumes
:
volumes
:
-
./docker/etc:/app/etc
-
./docker/etc:/app/etc
ports
:
ports
:
...
@@ -36,7 +36,7 @@ services:
...
@@ -36,7 +36,7 @@ services:
tsdb
:
tsdb
:
image
:
api
image
:
api
restart
:
always
restart
:
always
command
:
tsdb
command
:
n9e-
tsdb
volumes
:
volumes
:
-
./docker/etc:/app/etc
-
./docker/etc:/app/etc
ports
:
ports
:
...
@@ -46,7 +46,7 @@ services:
...
@@ -46,7 +46,7 @@ services:
index
:
index
:
image
:
api
image
:
api
restart
:
always
restart
:
always
command
:
index
command
:
n9e-
index
volumes
:
volumes
:
-
./docker/etc:/app/etc
-
./docker/etc:/app/etc
ports
:
ports
:
...
@@ -56,7 +56,7 @@ services:
...
@@ -56,7 +56,7 @@ services:
judge
:
judge
:
image
:
api
image
:
api
restart
:
always
restart
:
always
command
:
judge
command
:
n9e-
judge
volumes
:
volumes
:
-
./docker/etc:/app/etc
-
./docker/etc:/app/etc
ports
:
ports
:
...
@@ -66,7 +66,7 @@ services:
...
@@ -66,7 +66,7 @@ services:
collector
:
collector
:
image
:
api
image
:
api
restart
:
always
restart
:
always
command
:
collector
command
:
n9e-
collector
volumes
:
volumes
:
-
./docker/etc:/app/etc
-
./docker/etc:/app/etc
ports
:
ports
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录