1 Star 0 Fork 0

mattu/replication-manager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 833 Bytes
一键复制 编辑 原始数据 按行查看 历史
svaroqui 提交于 2016-12-03 13:04 . Add event status failover
FROM alpine:3.4
# set env from golang container
ENV \
GOPATH="/go" \
PATH="/go/bin:/usr/local/go/bin:$PATH"
RUN mkdir -p /go/src/github.com/tanji/replication-manager
WORKDIR /go/src/github.com/tanji/replication-manager
COPY . /go/src/github.com/tanji/replication-manager/
RUN mkdir -p \
/go/bin \
/etc/replication-manager \
/usr/share/replication-manager/dashboard
RUN \
apk --no-cache --update add git go haproxy && \
go install github.com/tanji/replication-manager && \
apk --no-cache del git go && \
rm -rf /go/src /go/pkg && \
rm -rf /var/cache/apk/*
COPY etc/config.toml.sample /etc/replication-manager/
COPY dashboard /usr/share/replication-manager/dashboard/
WORKDIR /go/bin
ENTRYPOINT ["replication-manager"]
CMD ["monitor", "--daemon", "--http-server"]
EXPOSE 10001
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mattu/replication-manager.git
[email protected]:mattu/replication-manager.git
mattu
replication-manager
replication-manager
0.7

搜索帮助