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
876456d2
Commit
876456d2
authored
4 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
change container port
parent
4a278c18
No related branches found
No related tags found
1 merge request
!90
Develop
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+0
-18
0 additions, 18 deletions
Dockerfile
build/dockerfiles/production/Dockerfile
+1
-1
1 addition, 1 deletion
build/dockerfiles/production/Dockerfile
build/dockerfiles/staging/Dockerfile
+1
-1
1 addition, 1 deletion
build/dockerfiles/staging/Dockerfile
with
2 additions
and
20 deletions
Dockerfile
deleted
100644 → 0
+
0
−
18
View file @
4a278c18
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/configs ./configs
ENTRYPOINT
[ "./gosdn" ]
CMD
[""]
This diff is collapsed.
Click to expand it.
build/dockerfiles/production/Dockerfile
+
1
−
1
View file @
876456d2
...
@@ -9,7 +9,7 @@ RUN go mod download
...
@@ -9,7 +9,7 @@ RUN go mod download
RUN
CGO_ENABLED
=
0
GOOS
=
linux go build ./cmd/gosdn
RUN
CGO_ENABLED
=
0
GOOS
=
linux go build ./cmd/gosdn
FROM
alpine:latest
FROM
alpine:latest
EXPOSE
8
443
EXPOSE
8
080
EXPOSE
55055
EXPOSE
55055
COPY
--from=builder /src/gosdn/gosdn .
COPY
--from=builder /src/gosdn/gosdn .
COPY
--from=builder /src/gosdn/configs ./configs
COPY
--from=builder /src/gosdn/configs ./configs
...
...
This diff is collapsed.
Click to expand it.
build/dockerfiles/staging/Dockerfile
+
1
−
1
View file @
876456d2
...
@@ -9,7 +9,7 @@ RUN go mod download
...
@@ -9,7 +9,7 @@ RUN go mod download
RUN
CGO_ENABLED
=
0
GOOS
=
linux go build
-race
./cmd/gosdn
RUN
CGO_ENABLED
=
0
GOOS
=
linux go build
-race
./cmd/gosdn
FROM
alpine:latest
FROM
alpine:latest
EXPOSE
8
443
EXPOSE
8
080
EXPOSE
55055
EXPOSE
55055
COPY
--from=builder /src/gosdn/gosdn .
COPY
--from=builder /src/gosdn/gosdn .
COPY
--from=builder /src/gosdn/configs ./configs
COPY
--from=builder /src/gosdn/configs ./configs
...
...
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