提交 850346c3 编写于 作者: S Shu Muto 提交者: Kubernetes Prow Robot

Enable `go mod` in container for development (#3990)

上级 ebffc3ae
......@@ -75,6 +75,9 @@ RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.s
# Install delve for debuging go files.
RUN go get github.com/go-delve/delve/cmd/dlv
# Enable go mod. Note(shu-mutou): do not set this before `go get`
ENV GO111MODULE=on
# Volume for source code
VOLUME ["/go/src/github.com/kubernetes/dashboard"]
......@@ -85,7 +88,7 @@ RUN mkdir -p /home/user/.kube
WORKDIR /go/src/github.com/kubernetes/dashboard
# Expose port for frontend, backend and remote debuging
EXPOSE 8080 9090 2345
EXPOSE 8080 8443 9090 2345
# Run gosu command in container.
CMD ./aio/develop/gosu-command.sh
......@@ -79,6 +79,7 @@ docker run \
-e LOCAL_UID="${LOCAL_UID}" \
-e LOCAL_GID="${LOCAL_GID}" \
-p 8080:8080 \
-p 8443:8443 \
-p 9090:9090 \
-p 2345:2345 \
${DOCKER_RUN_OPTS} \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册