File tree Expand file tree Collapse file tree 3 files changed +19
-19
lines changed Expand file tree Collapse file tree 3 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 1- FROM golang:alpine AS build
1+ FROM golang:1.14 AS build
22
3- RUN apk add --no-cache -U make git
3+ COPY . /src/project
4+ WORKDIR /src/project
45
56RUN export CGO_ENABLED=0 &&\
7+ export GOPROXY=https://goproxy.io &&\
68 make &&\
7- cp cmd/registry/registry /
8- RUN cp etc/registry.sample.conf /registry.conf
9-
10- FROM golang:alpine
11-
12- RUN apk add -U git
9+ cp cmd/registry/registry /registry &&\
10+ cp etc/registry.sample.conf /registry.conf
1311
12+ FROM debian:10
13+ RUN apt-get update && apt-get install -y ca-certificates
1414COPY --from=build /registry /registry
1515COPY --from=build /registry.conf /etc/registry.conf
1616
17- VOLUME /var/log/registry
18- VOLUME /var/opt/registry
19-
2017EXPOSE 8000
2118
22- ENTRYPOINT ["/registry -config /etc/registry.conf" ]
23- CMD []
19+ CMD ["/registry" , "-config" , "/etc/registry.conf" ]
Original file line number Diff line number Diff line change @@ -21,4 +21,8 @@ registry -config /etc/node0.conf
2121
2222registry -config /tmp/node1.conf -join 127.0.0.1:9000
2323
24- ```
24+ ```
25+
26+ ## Use docker image
27+
28+ docker run -d -p8000:8000 lodastack/registry
Original file line number Diff line number Diff line change 2727 base = "ou=People,dc=gitlab,dc=example"
2828
2929[wework]
30- enable = false
31- corpid = ""
32- corpsecret = ""
33- redirect = ""
30+ enable = false
31+ corpid = ""
32+ corpsecret = ""
33+ redirect = ""
3434
3535[dns]
3636 enable = false
5454 group = "lodastack-plugins"
5555
5656[event]
57- clearURL = "http://127.0.0.1 :8001/event/status"
57+ clearURL = "http://event.default.svc.cluster.local :8001/event/status"
You can’t perform that action at this time.
0 commit comments