Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gNMI Target
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
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
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
gNMI Target
Commits
44b13f79
Commit
44b13f79
authored
1 year ago
by
Malte Bauch
Browse files
Options
Downloads
Patches
Plain Diff
Add goreleaser dockerfile
parent
4c215ca2
No related branches found
No related tags found
No related merge requests found
Pipeline
#185170
failed
1 year ago
Stage: release
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.goreleaser.yml
+1
-1
1 addition, 1 deletion
.goreleaser.yml
examples/example01/goreleaser.Dockerfile
+29
-0
29 additions, 0 deletions
examples/example01/goreleaser.Dockerfile
examples/example01/goreleaser.Dockerfile.dockerignore
+12
-0
12 additions, 0 deletions
examples/example01/goreleaser.Dockerfile.dockerignore
with
42 additions
and
1 deletion
.goreleaser.yml
+
1
−
1
View file @
44b13f79
...
...
@@ -30,7 +30,7 @@ builds:
main
:
./examples/example01
dockers
:
-
dockerfile
:
"
examples/example01/
target
.Dockerfile"
-
dockerfile
:
"
examples/example01/
goreleaser
.Dockerfile"
-
image_templates
:
-
"
registry.code.fbi.h-da.de/danet/gnmi-target/ubuntu:{{
.Tag
}}"
use
:
buildx
...
...
This diff is collapsed.
Click to expand it.
examples/example01/goreleaser.Dockerfile
0 → 100644
+
29
−
0
View file @
44b13f79
ARG
GOLANG_VERSION=1.22
ARG
GITLAB_PROXY
ARG
BUILDARGS
FROM
${GITLAB_PROXY}ubuntu:22.04
as
ubuntu
RUN
apt-get update
&&
apt-get upgrade
-y
&&
apt-get
install
-y
\
iproute2
\
iputils-ping
\
openssh-client
\
openssh-server
\
libssl-dev
COPY
gnmi-target /usr/bin/gnmi-target
EXPOSE
7030
ENTRYPOINT
["/usr/bin/gnmi-target"]
CMD
[ "start", "--log", "debug" ]
FROM
${GITLAB_PROXY}debian:bookworm
as
debian
RUN
apt-get update
&&
apt-get upgrade
-y
&&
apt-get
install
-y
\
iproute2
\
iputils-ping
\
openssh-client
\
openssh-server
\
libssl-dev
COPY
gnmi-target /usr/bin/gnmi-target
EXPOSE
7030
ENTRYPOINT
["/usr/bin/gnmi-target"]
CMD
[ "start", "--log", "debug" ]
This diff is collapsed.
Click to expand it.
examples/example01/goreleaser.Dockerfile.dockerignore
0 → 100644
+
12
−
0
View file @
44b13f79
.git
.gitlab
.cobra.yaml
.dockerignore
.gitlab-ci.yaml
CONTRIBUTING.md
README.md
ci
doc
artifacts
build-tools
examples/models
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