sachet
sachet copied to clipboard
The Dockerfile isn't working (go dep issue ?)
Hi,
I try to build the docker image (because no pre-build image is avalaible for arm arch) ant it isn't working, here is the traceback:
sebpomme machine:~ [645:1]% docker build -t sache "https://github.com/messagebird/sachet.git#0.2.3"
Sending build context to Docker daemon 3.77MB
Step 1/12 : FROM golang:1.14 AS builder
1.14: Pulling from library/golang
e4c3d3e4f7b0: Already exists
101c41d0463b: Pull complete
8275efcd805f: Pull complete
751620502a7a: Pull complete
aaabf962c4fc: Pull complete
8201797aea2f: Pull complete
3a0b5e7e1f6f: Pull complete
Digest: sha256:cdc098a969e749099ca24578990cf42195aa9cd2f5e04b0e196171bb0dbb885d
Status: Downloaded newer image for golang:1.14
---> d5ddd1861619
Step 2/12 : WORKDIR /build
---> Running in a92566e7ac8a
Removing intermediate container a92566e7ac8a
---> 7ebc2015b279
Step 3/12 : COPY . .
---> e655615669dc
Step 4/12 : RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -mod vendor -o sachet github.com/messagebird/sachet/cmd/sachet
---> Running in ffb91a57691f
go: inconsistent vendoring in /build:
github.com/aliyun/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/aliyun/[email protected]
github.com/carlosdp/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/carlosdp/[email protected]
github.com/golang/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/golang/[email protected]
github.com/jmespath/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/jmespath/[email protected]
github.com/messagebird/[email protected]+incompatible: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/messagebird/[email protected]
github.com/prometheus/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/prometheus/[email protected]
github.com/prometheus/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/prometheus/[email protected]
github.com/prometheus/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates github.com/prometheus/[email protected]
gopkg.in/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates gopkg.in/[email protected]
gopkg.in/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates gopkg.in/[email protected]
gopkg.in/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates gopkg.in/[email protected]
run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory
The command '/bin/sh -c GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -mod vendor -o sachet github.com/messagebird/sachet/cmd/sachet' returned a non-zero code: 1
Can you help me to fix this ?
I have this problem too. Any updates?
Got this problem too. Has someone find an idea ? Not many documentation to use Sachet with Prometheus...