Thanks for the project. I'm hitting some error while building a new docker image on Ubuntu18.04.
Context: I have a scenario where I need to create a vxlan tunnel with a bare-metal machine. So, peer is not a pod but a machine.
For that I was changing the code and had to build a new image.
Error: While running 'make build', I hit the error
ubuntu@ip-172-31-30-58:~/meshnet-cni$ DOCKER_BUILDKIT=1 docker build -t meshnet -f docker/Dockerfile .
[+] Building 1.7s (21/30)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 38B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/alpine:latest 0.7s
=> [internal] load metadata for docker.io/library/golang:1.12.7 0.7s
=> [internal] load build context 0.0s
=> => transferring context: 3.25kB 0.0s
=> [stage-3 1/9] FROM docker.io/library/alpine:latest@sha256:c19173c5ada610a5989151111163d28a67368362762534d8a8121ce95cf2bd5a 0.0s
=> [proto_base 1/8] FROM docker.io/library/golang:1.12.7@sha256:f5486a917b57f8b14be4345604bc4654147416a327d6d63271a0c52c907001c4 0.0s
=> CACHED [stage-3 2/9] RUN apk add --no-cache jq 0.0s
=> CACHED [build_base 2/5] WORKDIR /go/src/github.com/tahir24434/meshnet-cni 0.0s
=> CACHED [build_base 3/5] COPY go.mod . 0.0s
=> CACHED [build_base 4/5] COPY go.sum . 0.0s
=> CANCELED [build_base 5/5] RUN go mod download 0.9s
=> CACHED [proto_base 2/8] RUN apt-get update && apt-get -y install curl unzip 0.0s
=> CACHED [proto_base 3/8] RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.9.1/protoc-3.9.1-linux-x86_64.zip && unzip protoc-3.9.1-linux-x86_64.zip 0.0s
=> CACHED [proto_base 4/8] RUN go get -u github.com/golang/protobuf/protoc-gen-go 0.0s
=> CACHED [proto_base 5/8] COPY daemon/ daemon/ 0.0s
=> CACHED [proto_base 6/8] COPY Makefile . 0.0s
=> CACHED [proto_base 7/8] COPY .mk/ .mk/ 0.0s
=> CACHED [proto_base 8/8] RUN make proto 0.0s
=> CACHED [build 1/4] COPY . . 0.0s
=> ERROR [build 2/4] COPY --from=proto_base daemon/generated daemon/generated 0.0s
------
> [build 2/4] COPY --from=proto_base daemon/generated daemon/generated:
------
failed to solve with frontend dockerfile.v0: failed to build LLB: failed to compute cache key: failed to walk /var/lib/docker/tmp/buildkit-mount009672704/daemon: lstat /var/lib/docker/tmp/buildkit-mount009672704/daemon: no such file or directory
What are the steps to generate the new docker image holding modified-code/binary.
Thanks for the project. I'm hitting some error while building a new docker image on Ubuntu18.04.
Context: I have a scenario where I need to create a vxlan tunnel with a bare-metal machine. So, peer is not a pod but a machine. For that I was changing the code and had to build a new image.
Error: While running 'make build', I hit the error
What are the steps to generate the new docker image holding modified-code/binary.