Skip to content
Snippets Groups Projects
Commit 4b0c2b05 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

moved apt commands further to the beginning

parent 38fc9ce5
No related branches found
No related tags found
No related merge requests found
Pipeline #76645 passed
...@@ -2,10 +2,12 @@ FROM golang:1.16-buster AS builder ...@@ -2,10 +2,12 @@ FROM golang:1.16-buster AS builder
ARG GITLAB_USER ARG GITLAB_USER
ARG GITLAB_TOKEN ARG GITLAB_TOKEN
ARG BUILDARGS ARG BUILDARGS
WORKDIR /src/gosdn
COPY . .
RUN apt-get update && apt-get install -y git RUN apt-get update && apt-get install -y git
RUN git config --global url."https://$GITLAB_USER:$GITLAB_TOKEN@code.fbi.h-da.de".insteadOf "https://code.fbi.h-da.de" RUN git config --global url."https://$GITLAB_USER:$GITLAB_TOKEN@code.fbi.h-da.de".insteadOf "https://code.fbi.h-da.de"
WORKDIR /src/gosdn
COPY . .
RUN GOOS=linux go build $BUILDARGS ./cmd/gosdn RUN GOOS=linux go build $BUILDARGS ./cmd/gosdn
FROM debian:latest FROM debian:latest
......
...@@ -86,7 +86,7 @@ func init() { ...@@ -86,7 +86,7 @@ func init() {
rootCmd.Flags().StringVar(&grpcPort, "grpc-port", "55055", "port for gRPC NBI") rootCmd.Flags().StringVar(&grpcPort, "grpc-port", "55055", "port for gRPC NBI")
} }
// initConfig reads in config file and ENV variables if set. // initConfig reads in config file and ENV variables if set
func initConfig() { func initConfig() {
if cfgFile != "" { if cfgFile != "" {
// Use config file from the flag. // Use config file from the flag.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment