This repository was archived by the owner on Aug 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Gopkg.toml example
2+ #
3+ # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
4+ # for detailed Gopkg.toml documentation.
5+ #
6+ # required = ["github.com/user/thing/cmd/thing"]
7+ # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8+ #
9+ # [[constraint]]
10+ # name = "github.com/user/project"
11+ # version = "1.0.0"
12+ #
13+ # [[constraint]]
14+ # name = "github.com/user/project2"
15+ # branch = "dev"
16+ # source = "github.com/myfork/project2"
17+ #
18+ # [[override]]
19+ # name = "github.com/x/y"
20+ # version = "2.4.0"
21+ #
22+ # [prune]
23+ # non-go = false
24+ # go-tests = true
25+ # unused-packages = true
26+
27+
28+ [[constraint ]]
29+ name = " github.com/go-kit/kit"
30+ version = " 0.6.0"
31+
32+ [[constraint ]]
33+ name = " github.com/gogo/protobuf"
34+ version = " 1.0.0"
35+
36+ [[constraint ]]
37+ branch = " master"
38+ name = " github.com/golang/snappy"
39+
40+ [[constraint ]]
41+ branch = " master"
42+ name = " github.com/lib/pq"
43+
44+ [[constraint ]]
45+ name = " github.com/prometheus/client_golang"
46+ version = " 0.8.0"
47+
48+ [[constraint ]]
49+ branch = " master"
50+ name = " github.com/prometheus/common"
51+
52+ [[constraint ]]
53+ name = " github.com/prometheus/prometheus"
54+ version = " 2.2.1"
55+
56+ [prune ]
57+ go-tests = true
58+ unused-packages = true
Original file line number Diff line number Diff line change @@ -53,23 +53,28 @@ remote_read:
5353
5454Before building, make sure the following prerequisites are installed:
5555
56- * [ Glide ] ( https://glide.sh / ) for dependency management.
56+ * [ Dep ] ( https://golang.github.io/dep / ) for dependency management.
5757* [ Go] ( https://golang.org/dl/ )
5858
5959Then build as follows:
6060
6161``` bash
6262# Install dependencies (only required once)
63- glide install --strip-vendor --strip-vcs
63+ dep ensure
6464
6565# Build binary
6666make
67+ ```
68+
69+ ## Building new Docker images
70+
71+ ``` bash
6772
6873# Build Docker image
6974make docker
7075
71- # Push to Docker registry
72- make push
76+ # Push to Docker registry (requires permission)
77+ make push ORGANIZATION=myorg
7378```
7479
7580## Contributing
You can’t perform that action at this time.
0 commit comments