<a id="installation"></a>

# Installation

<a id="prerequisites"></a>

## Prerequisites

Make sure you have followed the [instructions](https://docs.halon.io/manual/install.html#installation) in our manual to add our package repository.

<a id="distributions"></a>

## Distributions

<a id="ubuntu"></a>

### Ubuntu

To install the .deb package use the following commands.

```console
# apt-get update
# apt-get install halon-bounce-classifier
```

<a id="rhel"></a>

### RHEL

To install the .rpm package use the following commands.

```console
# yum install halon-bounce-classifier
```

<a id="startup"></a>

## Startup

When the initial [configuration](config.html.md) is in place, the program can be started with:

```console
# systemctl start halon-bounce-classifier
```

<a id="docker-k8s"></a>

## Docker & K8s

For instructions on how to build a container image of the program as well as deploying it on K8s (Kubernetes),
see our [halon-docker](https://github.com/halon/halon-docker) GitHub repository.

<a id="docker-desktop-with-vs-code"></a>

## Docker Desktop with VS Code

For local running in Docker Desktop, make the following additions.

`.devcontainer/Dockerfile`:

```docker
RUN apt-get update && apt-get -y install 'halon-bounce-classifier=2.2.*'
```

`.devcontainer/supervisord.conf`:

```docker
[program:bounce-classifier]
command=/opt/halon/bounce-classifier/sbin/bounce-classifier
environment=PORT=8084
```

You can set [configuration](config.html.md) environment variables for the service here.
