Skip to content

Commit fb6ae79

Browse files
authored
Run tests, works with tls (#4)
* Run tests, works with tls * remove dn yangs * fix build
1 parent d0360b6 commit fb6ae79

File tree

11 files changed

+49377
-48775
lines changed

11 files changed

+49377
-48775
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ COPY go.mod ./
66
#COPY go.mod go.sum ./
77
RUN go mod download && go mod verify
88

9-
RUN apt-get -y update && apt-get install -y protobuf-compiler && apt-get install -y golang-goprotobuf-dev
10-
119
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest\
1210
&& go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 \
1311
#&& go get google.golang.org/grpc/cmd/protoc-gen-go@latest && go install google.golang.org/grpc/cmd/protoc-gen-go@latest \
1412
&& go install golang.org/x/tools/cmd/goimports@latest
1513

14+
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

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ build_container:
22
docker build -t ondatra-dn .
33

44
run_container:
5-
docker run -v /home/dn/ondatra:/dn/ondatra -v/home/dn/cheetah/prod/dnos_monolith/yangs/:/dn/yangs -it --rm ondatra-dn:latest bash
5+
docker run -v/home/dn/ondatra:/dn/ondatra \
6+
-v/home/dn/cheetah/prod/dnos_monolith/yangs/:/dn/yangs \
7+
-v/home/dn/ondatra/dn_cert.crt:/dn/dn_cert.crt \
8+
-v/var/tmp/dtest/host_fs/run/netns/test_ns:/var/run/netns/test_ns \
9+
-it --rm ondatra-dn:latest bash

0 commit comments

Comments
 (0)