mirror of
https://github.com/eosswedenorg/thalos-docs
synced 2026-06-17 04:40:02 +02:00
Initial Commit
This commit is contained in:
commit
f81ec14da7
21 changed files with 1781 additions and 0 deletions
68
docs/installation/debian.md
Normal file
68
docs/installation/debian.md
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
---
|
||||
next:
|
||||
text: Configuration
|
||||
link: /docs/configuration
|
||||
---
|
||||
|
||||
# Debian
|
||||
|
||||
The following documentation assumes that you have already set up a `redis` server, a `leap SHIP` node, and a running `leap API` node.
|
||||
|
||||
## 1. Installing the package
|
||||
|
||||
### Using Sw/edens apt repository
|
||||
|
||||
First, obtain the key.
|
||||
|
||||
```sh
|
||||
sudo apt-get install software-properties-common
|
||||
curl -sS https://apt.eossweden.org/key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/eossweden-2023.gpg > /dev/null
|
||||
```
|
||||
|
||||
Next, install the package.
|
||||
|
||||
#### For bash shell
|
||||
|
||||
```shell
|
||||
sudo apt-add-repository -y "deb [arch=amd64] https://apt.eossweden.org/main `lsb_release -cs` stable"
|
||||
sudo apt-get install thalos
|
||||
```
|
||||
|
||||
#### For fish shell
|
||||
|
||||
```shell
|
||||
sudo apt-add-repository -y "deb [arch=amd64] https://apt.eossweden.org/main "(lsb_release -cs)" stable"
|
||||
sudo apt-get install thalos
|
||||
```
|
||||
|
||||
### Manual installation
|
||||
|
||||
Alternatively, you can manually install the package by downloading the .deb file from the [latest](https://github.com/eosswedenorg/thalos/releases/latest) release.
|
||||
|
||||
```shell
|
||||
curl https://github.com/eosswedenorg/thalos/releases/download/<version>/thalos_<version>_amd64.deb
|
||||
sudo apt-get install ./thalos_<version>_amd64.deb
|
||||
```
|
||||
|
||||
## 2. Configuration
|
||||
|
||||
The configuration file is located at `/etc/thalos/config.yml` and contains an example configuration with extensive documentation.
|
||||
|
||||
See [Configuration](/docs/configuration) for more information
|
||||
|
||||
## 3. Starting the Server via systemd
|
||||
|
||||
```shell
|
||||
sudo systemctl enable thalos-server
|
||||
sudo systemctl start thalos-server
|
||||
```
|
||||
|
||||
After executing these commands, the server should be up and running. You can check the logs at `/var/log/thalos.log` (unless specified otherwise in the configuration), or by running `sudo systemctl status thalos-server`.
|
||||
|
||||
### Starting Manually
|
||||
|
||||
If desired, Thalos can also be started manually for quick configuration testing or in cases where running systemd is not preferable:
|
||||
|
||||
```shell
|
||||
/usr/bin/thalos-server --config /etc/thalos/thalos.yml
|
||||
```
|
||||
53
docs/installation/index.md
Normal file
53
docs/installation/index.md
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
---
|
||||
next:
|
||||
text: Configuration
|
||||
link: /docs/configuration
|
||||
---
|
||||
|
||||
|
||||
# Installation
|
||||
|
||||
There are several ways to install thalos, via package manager, downloading a pre-built binary or building directly from source.
|
||||
|
||||
## Package Managers
|
||||
|
||||
* [Debian/Ubuntu based (apt)](/docs/installation/debian)
|
||||
|
||||
## Manually
|
||||
|
||||
### Bundled binaries
|
||||
|
||||
You can get the latest archive package [here](https://github.com/eosswedenorg/thalos/releases/latest)
|
||||
|
||||
Simply download using your webbrowser or via curl:
|
||||
|
||||
```shell
|
||||
curl -Ls https://github.com/eosswedenorg/thalos/releases/download/<version>/thalos-server-<version>-linux-amd64.tar.gz | tar -z --one-top-level=thalos -xvf -
|
||||
```
|
||||
|
||||
::: info
|
||||
Using curl command above, the files are extracted into the `thalos` subdirectory of the current directory where the command is run.
|
||||
:::
|
||||
|
||||
### Compiling from source
|
||||
|
||||
You will need golang version `1.18` or later to compile the source.
|
||||
|
||||
#### Compile using make
|
||||
|
||||
```shell
|
||||
make
|
||||
```
|
||||
|
||||
or using go directly if you dont have make installed.
|
||||
|
||||
```shell
|
||||
go build -o build/thalos-server cmd/main/main.go
|
||||
```
|
||||
|
||||
#### Install
|
||||
|
||||
After building the binary you can install it along with basic config file and start/stop scripts using `install.sh`
|
||||
|
||||
```shell
|
||||
./install.sh /path/to/your/directory/of/choice
|
||||
Loading…
Add table
Add a link
Reference in a new issue