Last active
November 29, 2022 08:00
-
-
Save leegin/0ee3af1c64e4e6590b628cead789d0af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We have to clone the Thanos repo and you'll find a file named "tools.go" inside the cmd/thanos directory. | |
You need to have "go" installed on your machine before this. | |
Steps to download go | |
---- | |
# Download Go for Linux | |
$ wget https://go.dev/dl/go1.18.3.linux-amd64.tar.gz | |
$ tar -xvf go1.18.3.linux-amd64.tar.gz | |
$ mv go /usr/local/ | |
# Add the below line to ~/.bashrc file | |
$ export PATH=$PATH:/usr/local/go/bin | |
# check the version of Go installed | |
$ go version | |
---- | |
Steps to install Thanos cli | |
---- | |
$ git clone https://github.com/thanos-io/thanos.git | |
$ cd thanos/ | |
$ make build | |
$ mv /root/go/bin/thanos /usr/local/go/bin/ | |
---- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment