From 914e02502bcbe05a76fed2b85d7291fbef68a43d Mon Sep 17 00:00:00 2001 From: hxsf Date: Tue, 17 Mar 2020 10:52:52 +0800 Subject: [PATCH 1/2] add baseurl & default_etcd options --- Dockerfile | 7 +- assets/etcdkeeper/index.html | 232 ++++++++++++++++------------------- src/etcdkeeper/main.go | 158 +++++++++++++----------- 3 files changed, 195 insertions(+), 202 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e48cd3..1249961 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM golang:1.12 as build +FROM harbor.hxsf.work/library/golang:1.12-alpine3.10 as build ENV GO111MODULE on -ENV GOPROXY "https://goproxy.io" +ENV GOPROXY "https://goproxy.cn" WORKDIR /opt RUN mkdir etcdkeeper @@ -27,4 +27,5 @@ ADD assets assets EXPOSE ${PORT} -ENTRYPOINT ./etcdkeeper.bin -h $HOST -p $PORT \ No newline at end of file +ENTRYPOINT ["./etcdkeeper.bin"] +CMD ["-h", "$HOST", "-p", "$PORT"] diff --git a/assets/etcdkeeper/index.html b/assets/etcdkeeper/index.html index 8f31c0b..5d99ef9 100644 --- a/assets/etcdkeeper/index.html +++ b/assets/etcdkeeper/index.html @@ -8,6 +8,7 @@ + @@ -32,7 +33,7 @@

ETCD Keeper v3

- +
@@ -92,7 +93,7 @@

Submit

- +
@@ -110,7 +111,7 @@

Submit

- +
@@ -131,10 +132,10 @@

json

-
-
version 3
-
version 2
-
+
+
version 3
+
version 2
+