Skip to content

Commit

Permalink
docs(getting-started): Overhaul (#2754)
Browse files Browse the repository at this point in the history
* docs(getting-started): initial overhaul of category

* docs(getting-started): overhaul nav and getting started

* docs(getting-started): open tt page

* docs(getting-started): edit nav

* docs(getting-started): finish open page

* docs(getting-started): added no otel no code

* docs(getting-started): fix

* docs(getting-started): add auto instr tab

* docs(getting-started): finalize no-otel

* Update docs/docs/getting-started/cli-installation-reference.md

Co-authored-by: Julianne Fermi <[email protected]>

* Update docs/docs/getting-started/detailed-installation.md

Co-authored-by: Julianne Fermi <[email protected]>

* Update docs/docs/getting-started/detailed-installation.md

Co-authored-by: Julianne Fermi <[email protected]>

* Apply suggestions from code review

Co-authored-by: Julianne Fermi <[email protected]>

* docs(getting-started): typo

* docs(getting-started): fix detailed instal

---------

Co-authored-by: Julianne Fermi <[email protected]>
  • Loading branch information
Adnan Rahić and jfermi authored Jul 10, 2023
1 parent 20e5ae2 commit 520dad5
Show file tree
Hide file tree
Showing 9 changed files with 861 additions and 339 deletions.
77 changes: 77 additions & 0 deletions docs/docs/getting-started/cli-installation-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# CLI Installation Reference

This page contains a reference of all options for installing Tracetest CLI.

## Detailed Instructions on Installing Tracetest Using the CLI

Tracetest has a command line interface (CLI) which includes an **install wizard** that helps to install the Tracetest server into Docker or Kubernetes. The CLI can also be used to run tests, download or upload tests, and manage much of the capability of Tracetest.

## Installing the Tracetest Server via the CLI

Use the CLI's install wizard to install a Tracetest server locally using Docker Compose or to a local or remote Kubernetes cluster.

The wizard installs all the tools required to set up the desired environment and creates all the configurations, tailored to your case.

Every time we release a new version of Tracetest, we generate binaries for Linux, MacOS, and Windows. Supporting both amd64, and ARM64 architectures, in `tar.gz`, `deb`, `rpm` and `exe` formats.

You can find the latest version [here](https://github.com/kubeshop/tracetest/releases/latest).

### Linux/MacOS

Tracetest CLI can be installed automatically using the following script:

```sh
curl -L https://raw.githubusercontent.com/kubeshop/tracetest/main/install-cli.sh | bash
```

It works for systems with Homebrew, `apt-get`, `dpkg`, `yum`, `rpm` installed, and if no package manager is available, it will try to download the build and install it manually.

You can also manually install it with one of the following methods.

#### Homebrew

```sh
brew install kubeshop/tracetest/tracetest
```

#### APT

```sh
# requirements for our deb repo to work
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates

# add repo
echo "deb [trusted=yes] https://apt.fury.io/tracetest/ /" | sudo tee /etc/apt/sources.list.d/fury.list

# update and install
sudo apt-get update
sudo apt-get install tracetest
```

#### YUM

```sh
# add repository
cat <<EOF | sudo tee /etc/yum.repos.d/tracetest.repo
[tracetest]
name=Tracetest
baseurl=https://yum.fury.io/tracetest/
enabled=1
gpgcheck=0
EOF

# install
sudo yum install tracetest --refresh
```

### Windows

#### Chocolatey

```bash
choco source add --name=kubeshop_repo --source=https://chocolatey.kubeshop.io/chocolatey ; choco install tracetest
```

#### From source

Download one of the files from the latest tag, extract to your machine, and then [add the tracetest binary to your PATH variable](https://stackoverflow.com/a/41895179).
74 changes: 5 additions & 69 deletions docs/docs/getting-started/detailed-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,76 +3,12 @@
Tracetest has a command line interface (CLI) which includes an **install wizard** that helps to install the Tracetest server into Docker or Kubernetes. The CLI can also be used to run tests, download or upload tests, and manage much of the capability of Tracetest.

:::note
To read about deploying Tracetest with Helm, view the [Kubernetes Deployment docs](../deployment/kubernetes.mdx).
To read about installing the Tracetest CLI, view the [CLI installation reference](./cli-installation-reference.md).
:::

## Installing the Tracetest Server via the CLI
This page provides a step-by-step guide to install Tracetest using the Tracetest CLI.

Use the CLI's install wizard to install a Tracetest server locally using Docker Compose or to a local or remote Kubernetes cluster.

The wizard installs all the tools required to set up the desired environment and creates all the configurations, tailored to your case.

Every time we release a new version of Tracetest, we generate binaries for Linux, MacOS, and Windows. Supporting both amd64, and ARM64 architectures, in `tar.gz`, `deb`, `rpm` and `exe` formats.

You can find the latest version [here](https://github.com/kubeshop/tracetest/releases/latest).

### Linux/MacOS

Tracetest CLI can be installed automatically using the following script:

```sh
curl -L https://raw.githubusercontent.com/kubeshop/tracetest/main/install-cli.sh | bash
```

It works for systems with Homebrew, `apt-get`, `dpkg`, `yum`, `rpm` installed, and if no package manager is available, it will try to download the build and install it manually.

You can also manually install it with one of the following methods.

#### Homebrew

```sh
brew install kubeshop/tracetest/tracetest
```

#### APT

```sh
# requirements for our deb repo to work
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates

# add repo
echo "deb [trusted=yes] https://apt.fury.io/tracetest/ /" | sudo tee /etc/apt/sources.list.d/fury.list

# update and install
sudo apt-get update
sudo apt-get install tracetest
```

#### YUM

```sh
# add repository
cat <<EOF | sudo tee /etc/yum.repos.d/tracetest.repo
[tracetest]
name=Tracetest
baseurl=https://yum.fury.io/tracetest/
enabled=1
gpgcheck=0
EOF

# install
sudo yum install tracetest --refresh
```

### Windows

Download one of the files from the latest tag, extract to your machine, and then [add the tracetest binary to your PATH variable](https://stackoverflow.com/a/41895179)

## Install a Tracetest Server for Development with the CLI

This guide will help you get Tracetest running using the Tracetest CLI.

### Prerequisites
## Prerequisites

:::info
Make sure you have [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/), or [Kubernetes](https://kubernetes.io/) installed.
Expand Down Expand Up @@ -152,8 +88,8 @@ In this step, you can choose to install just Tracetest alone or install it with

```text title="Expected output:"
Do you have OpenTelemetry based tracing already set up, or would you like us to install a demo tracing environment and app? [type to search]:
> I have a tracing environment already. Just install Tracetest
Just learning tracing! Install Tracetest, OpenTelemetry Collector and the sample app.
I have a tracing environment already - Just install Tracetest.
> Just learning tracing! Install Tracetest, OpenTelemetry Collector and the sample app.
```

By choosing any option, this installer will create a `tracetest` directory in the current directory and will add a `docker-compose.yaml` file to it.
Expand Down
Loading

0 comments on commit 520dad5

Please sign in to comment.