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
Merge requests
!932
Build statically linked binaries wherever possible
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Build statically linked binaries wherever possible
statical-binaries
into
master
Overview
0
Commits
4
Pipelines
6
Changes
6
Merged
Neil-Jocelyn Schark
requested to merge
statical-binaries
into
master
10 months ago
Overview
0
Commits
4
Pipelines
6
Changes
6
Expand
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
My code follows the code style of this project.
My change requires a change to the documentation.
I have updated the documentation accordingly.
I have read the
CONTRIBUTING
document.
I have added tests to cover my changes.
All new and existing tests passed.
0
0
Merge request reports
Compare
master
version 4
421254f5
10 months ago
version 3
b1d8dec3
10 months ago
version 2
4f9bac65
10 months ago
version 1
7c619e84
10 months ago
master (base)
and
latest version
latest version
654eadb2
4 commits,
10 months ago
version 4
421254f5
4 commits,
10 months ago
version 3
b1d8dec3
3 commits,
10 months ago
version 2
4f9bac65
2 commits,
10 months ago
version 1
7c619e84
1 commit,
10 months ago
6 files
+
10
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
applications/venv-manager/venv-manager.Dockerfile
+
3
−
10
Options
@@ -6,18 +6,11 @@ FROM ${GITLAB_PROXY}golang:$GOLANG_VERSION-bookworm AS builder
WORKDIR
/gosdn
COPY
go.* ./
RUN
go mod download
COPY
./models/generated/openconfig ./models/generated/openconfig
COPY
./api ./api
COPY
./controller ./controller
COPY
applications/venv-manager/ applications/venv-manager/
RUN
CGO_ENABLED
=
0
GOOS
=
linux
GOARCH
=
amd64 go build
-ldflags
=
"-w -s"
-o
venv-manager applications/venv-manager/main.go
COPY
. .
RUN
make build-venv-manager
FROM
${GITLAB_PROXY}ubuntu:22.04
COPY
--from=builder /gosdn/venv-manager /venv-manager
COPY
--from=builder /gosdn/
artifacts/
venv-manager /venv-manager
ENTRYPOINT
["/venv-manager"]
Loading