Skip to content
Open

Wip #122

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM golang:1.22

WORKDIR /dn/ondatra
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
COPY go.mod ./
#COPY go.mod go.sum ./
RUN go mod download && go mod verify

RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest\
&& go install google.golang.org/protobuf/cmd/[email protected] \
#&& go get google.golang.org/grpc/cmd/protoc-gen-go@latest && go install google.golang.org/grpc/cmd/protoc-gen-go@latest \
&& go install golang.org/x/tools/cmd/goimports@latest

RUN apt-get -y update && apt-get install -y protobuf-compiler && apt-get install -y golang-goprotobuf-dev && apt-get install -y iproute2 && apt-get install -y sudo
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
build_container:
docker build -t ondatra-dn .

run_container:
docker run -v/home/dn/ondatra:/dn/ondatra \
-v/home/dn/cheetah/prod/dnos_monolith/yangs/:/dn/yangs \
-v/home/dn/dn_cert.crt:/dn/dn_cert.crt \
-v/var/tmp/dtest/host_fs/run/netns/test_ns:/var/run/netns/test_ns \
-it --rm ondatra-dn:latest bash
5 changes: 2 additions & 3 deletions binding/grpcutil/testservice/gen/testservice.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

111 changes: 52 additions & 59 deletions binding/grpcutil/testservice/gen/testservice_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading