Skip to content

Commit 46f1152

Browse files
committed
update docker file
1 parent 40455f3 commit 46f1152

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

Dockerfile

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
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

56
RUN 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
1414
COPY --from=build /registry /registry
1515
COPY --from=build /registry.conf /etc/registry.conf
1616

17-
VOLUME /var/log/registry
18-
VOLUME /var/opt/registry
19-
2017
EXPOSE 8000
2118

22-
ENTRYPOINT ["/registry -config /etc/registry.conf"]
23-
CMD []
19+
CMD ["/registry", "-config", "/etc/registry.conf"]

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ registry -config /etc/node0.conf
2121

2222
registry -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

etc/registry.sample.conf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
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
@@ -54,4 +54,4 @@
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"

0 commit comments

Comments
 (0)