<commit_before>
# Rook Standalone

- [Directly on Linux Host](#directly-on-linux-host)
- [Vagrant](#vagrant)
- [Design](#design)

## Directly on Linux Host

Rook can be deployed as a standalone service directly on any modern Linux host by running the following:

1. Download the latest client and server binaries

```bash
wget https://github.com/rook/rook/releases/download/v0.2.2/rook-v0.2.2-linux-amd64.tar.gz
tar xvf rook-v0.2.2-linux-amd64.tar.gz
```

2. Start a one node Rook cluster
```bash
./rookd --data-dir /tmp/rook-test
```

3. In another console (but in the same path), verify the Rook cluster is ready
```bash
./rook status
```

At this point, you can use the `rook` tool along with some [simple steps to create and manage block, file and object storage](../client/README.md).


## Vagrant

Rook is also easy to run in virutal machines with `vagrant` using the provided [Vagrantfile](Vagrantfile) in this directory.  When instructed, `vagrant` will start up CoreOS virtual machines and launch `rook` via `rkt`.  Note that you can make configuration changes as desired in the provided [cloud config file](cloud-config.yml.in).

```
vagrant up
```

### Rook Client Tool
Once the Rook cluster in Vagrant is running and initialized, you can use the `rook` client tool to manage the cluster and consume the storage.  First, either use a locally built `rook` tool or download the latest release from github:<commit_msg>indent code blocks for correct numbering<commit_after>
# Rook Standalone

- [Directly on Linux Host](#directly-on-linux-host)
- [Vagrant](#vagrant)
- [Design](#design)

## Directly on Linux Host

Rook can be deployed as a standalone service directly on any modern Linux host by running the following:

1. Download the latest client and server binaries
   ```bash
   wget https://github.com/rook/rook/releases/download/v0.2.2/rook-v0.2.2-linux-amd64.tar.gz
   tar xvf rook-v0.2.2-linux-amd64.tar.gz
   ```

2. Start a one node Rook cluster
   ```bash
   ./rookd --data-dir /tmp/rook-test
   ```

3. In another console (but in the same path), verify the Rook cluster is ready
   ```bash
   ./rook status
   ```

At this point, you can use the `rook` tool along with some [simple steps to create and manage block, file and object storage](../client/README.md).


## Vagrant

Rook is also easy to run in virutal machines with `vagrant` using the provided [Vagrantfile](Vagrantfile) in this directory.  When instructed, `vagrant` will start up CoreOS virtual machines and launch `rook` via `rkt`.  Note that you can make configuration changes as desired in the provided [cloud config file](cloud-config.yml.in).

```
vagrant up
```

### Rook Client Tool
Once the Rook cluster in Vagrant is running and initialized, you can use the `rook` client tool to manage the cluster and consume the storage.  First, either use a locally built `rook` tool or download the latest release from github:
{'fraction_non_alphanumeric': 0.09903713892709766, 'fraction_numerical': 0.011004126547455296, 'mean_word_length': 3.9897084048027445, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5184341', 'n_tokens_mistral': 930, 'n_tokens_neox': 885, 'n_words': 384}