Skip to content

Instantly share code, notes, and snippets.

@vodolaz
Created March 16, 2021 07:08
Show Gist options
  • Save vodolaz/4390bcb2b9eb64196fe11b217976d98c to your computer and use it in GitHub Desktop.
Save vodolaz/4390bcb2b9eb64196fe11b217976d98c to your computer and use it in GitHub Desktop.
Step 1/9 : FROM golang:1.15 as builder
---> 4873f85e381b
Step 2/9 : WORKDIR /go/src/github.com/percona/mongodb_exporter
---> Using cache
---> 778e119eb609
Step 3/9 : ARG tag=v0.6.2
---> Using cache
---> 89e80e04dde4
Step 4/9 : RUN apt-get update && apt-get install -y wget git ca-certificates
---> Using cache
---> 6ad14f676a0a
Step 5/9 : RUN git clone -b $tag --recursive https://github.com/percona/mongodb_exporter.git . && make build
---> Running in c17cd88face3
Cloning into '.'...
Note: checking out 'fbf8e3a4d88d9efbe98e65fb3e61f82862464bb1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
go get -u github.com/AlekSi/gocoverutil
GOOS=linux \
GOARCH=amd64 \
go get -u github.com/prometheus/promu
cannot find package "github.com/google/go-github/v25/github" in any of:
/usr/local/go/src/github.com/google/go-github/v25/github (from $GOROOT)
/go/src/github.com/google/go-github/v25/github (from $GOPATH)
make: *** [Makefile:64: init] Error 1
The command '/bin/sh -c git clone -b $tag --recursive https://github.com/percona/mongodb_exporter.git . && make build' returned a non-zero code: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment