Skip to content
Snippets Groups Projects
Commit ad85c15a authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Port ind Dockerfile and listening address for controller changed

parent 36a67e15
Branches
Tags
3 merge requests!90Develop,!63Resolve "Dockerfile",!53V.0.1.0 Codename Threadbare
Pipeline #52967 passed
FROM golang:alpine AS builder
FROM golang:1.15-alpine AS builder
ARG GITLAB_USER
ARG GITLAB_TOKEN
WORKDIR /src/gosdn
COPY . .
RUN apk add git
RUN git config --global url."https://$GITLAB_USER:$GITLAB_TOKEN@code.fbi.h-da.de".insteadOf "https://code.fbi.h-da.de"
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build ./cmd/gosdn
FROM alpine:latest
EXPOSE 8443
EXPOSE 55055
COPY --from=builder /src/gosdn/gosdn .
COPY --from=builder /src/gosdn/config .
COPY --from=builder /src/gosdn/configs ./configs
ENTRYPOINT [ "./gosdn" ]
CMD [""]
......@@ -9,7 +9,7 @@ import (
func main() {
// register our supported flags
cliListenAddr := flag.String("cli-listen-addr", "localhost", "The IP address of the grpcCLI.")
cliListenAddr := flag.String("cli-listen-addr", "", "The IP address of the grpcCLI.")
cliListenPort := flag.String("cli-server-port", "55055", "The port number of the grpcCLI")
configFileName := flag.String("config-file", "", "Path to the config file")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment