Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
ad85c15a
Commit
ad85c15a
authored
4 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
Port ind Dockerfile and listening address for controller changed
parent
36a67e15
Branches
Branches containing commit
No related tags found
3 merge requests
!90
Develop
,
!63
Resolve "Dockerfile"
,
!53
V.0.1.0 Codename Threadbare
Pipeline
#52967
passed
4 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+4
-2
4 additions, 2 deletions
Dockerfile
cmd/gosdn/main.go
+1
-1
1 addition, 1 deletion
cmd/gosdn/main.go
with
5 additions
and
3 deletions
Dockerfile
+
4
−
2
View file @
ad85c15a
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/config
s
.
/configs
ENTRYPOINT
[ "./gosdn" ]
CMD
[""]
This diff is collapsed.
Click to expand it.
cmd/gosdn/main.go
+
1
−
1
View file @
ad85c15a
...
...
@@ -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"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment