raintank / raintank-docker

raintank docker images and dev stack DEPRECATED / UNMAINTAINED
https://blog.raintank.io/docker-based-development-environment/
16 stars 4 forks source link

Schema mismatch trying to build raintank/benchmark #69

Closed deanpemberton closed 8 years ago

deanpemberton commented 8 years ago

There appears to be a mismatch in schema versions somewhere in the build chain. inspect-es tries to use gopkg.in/raintank/schema.v1 and gopkg.in/raintank/schema.v0

running "./build_all.sh" on a brand new ubuntu 16.04 VM with Docker version 1.11.2, build b9f10c9

# ./build_all.sh

##### -> docker build -t raintank/nodejs .
Sending build context to Docker daemon 2.048 kB
...
...
##### -> docker build -t raintank/benchmark .
Sending build context to Docker daemon 3.584 kB
...
...
Step 6 : RUN go get github.com/raintank/inspect/inspect-es
 ---> Running in bafb76cdfc6c
# github.com/raintank/inspect/inspect-es
go/src/github.com/raintank/inspect/inspect-es/main.go:108: cannot use met (type []*"gopkg.in/raintank/schema.v1".MetricDefinition) as type []*"gopkg.in/raintank/schema.v0".MetricDefinition in argument to show
go/src/github.com/raintank/inspect/inspect-es/main.go:112: cannot use met (type []*"gopkg.in/raintank/schema.v1".MetricDefinition) as type []*"gopkg.in/raintank/schema.v0".MetricDefinition in argument to show
The command '/bin/sh -c go get github.com/raintank/inspect/inspect-es' returned a non-zero code: 2
ERROR: failed building benchmark. stopping.
Dieterbe commented 8 years ago

Hey Dean, https://github.com/raintank/inspect/commit/f1b0947b1a1b12a4d1e5c5331755b30d03931bb4 should fix this.

deanpemberton commented 8 years ago
Step 6 : RUN go get github.com/raintank/inspect/inspect-es
 ---> Running in 845b23899dda
 ---> 54643455998c
Removing intermediate container 845b23899dda
Step 7 : RUN go get github.com/raintank/fakemetrics

And on with the show =) Thanks heaps for the quick turn around!