<commit_before># Running

Kapua can be run in a few differnt ways. See th following chapters for
more information about how to start and run Kapua.

{% hint style='info' %}
Most of the following descriptions focus on a developer centric
setup and not on a full blown production setup.
{% endhint %}

## Docker containers

Running Kapua on local docker containers is as easy as:

1. Install docker
1. Run `mvn -f assembly -Pdocker` once
1. Run the docker images you want to start, see [assembly/README.md](https://github.com/eclipse/kapua/blob/develop/assembly/README.md) 

## OpenShift

For running Kapua on an OpenShift cluster you will need to:

1. Download and install the OpenShift client 
1. Log in to your OpenShift instance: `oc login`
1. Create a new project: `oc new-project eclipse-kapua`
1. Run: `dev-tools/src/main/openshift/openshift-deploy.sh`

{% hint style='working' %}
For the moment you will need to provide a specific Docker Hub repository
for downloading Kapua images: `DOCKER_ACCOUNT=hekonsek dev-tools/src/main/openshift/openshift-deploy.sh`
{% endhint %}

If you need a local instance of OpenShift you can create one on a local 64bit Linux by:

    oc cluster up

## Vagrant

Kapua can also be run with Vagrant.

### Installing Vagrant

Before Vargant can be used to run Kapua it needs to be installed. This is different on each distribution.<commit_msg>We don't need user coordinates when working with OpenShift.<commit_after># Running

Kapua can be run in a few differnt ways. See th following chapters for
more information about how to start and run Kapua.

{% hint style='info' %}
Most of the following descriptions focus on a developer centric
setup and not on a full blown production setup.
{% endhint %}

## Docker containers

Running Kapua on local docker containers is as easy as:

1. Install docker
1. Run `mvn -f assembly -Pdocker` once
1. Run the docker images you want to start, see [assembly/README.md](https://github.com/eclipse/kapua/blob/develop/assembly/README.md) 

## OpenShift

For running Kapua on an OpenShift cluster you will need to:

1. Download and install the OpenShift client 
1. Log in to your OpenShift instance: `oc login`
1. Create a new project: `oc new-project eclipse-kapua`
1. Run: `dev-tools/src/main/openshift/openshift-deploy.sh`

If you need a local instance of OpenShift you can create one on a local 64bit Linux by:

    oc cluster up

## Vagrant

Kapua can also be run with Vagrant.

### Installing Vagrant

Before Vargant can be used to run Kapua it needs to be installed. This is different on each distribution.
{'fraction_non_alphanumeric': 0.07131782945736434, 'fraction_numerical': 0.0069767441860465115, 'mean_word_length': 4.080708661417323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2250874', 'n_tokens_mistral': 786, 'n_tokens_neox': 742, 'n_words': 367}