Skip to content
Snippets Groups Projects
Commit 44b13f79 authored by Malte Bauch's avatar Malte Bauch
Browse files

Add goreleaser dockerfile

parent 4c215ca2
No related branches found
No related tags found
No related merge requests found
Pipeline #185170 failed
......@@ -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
......
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" ]
.git
.gitlab
.cobra.yaml
.dockerignore
.gitlab-ci.yaml
CONTRIBUTING.md
README.md
ci
doc
artifacts
build-tools
examples/models
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment