<commit_before># Building

**Requirements:** Install [boot2docker](http://boot2docker.io/) and make sure it's running

**Note:** All commands below assume you are working from this `./server` directory.

```
docker build -f rust-dockerfile -t realscouteng/rust-emulator .
docker build -f avr-dockerfile -t realscouteng/avr-emulator .
```

**Note:** If you are getting ssl errors when building, run `boot2docker restart`.

# Running Docker Locally

``` bash
# In a separate terminal session
boot2docker ssh -vnNTL 8000:localhost:8000
```

```bash
docker run -p 8000:8000 -t realscouteng/avr-emulator
```

# Updating the avr-emulator docker image

```bash
docker push realscouteng/avr-emulator
```

# Deployment

#### Configure docker api to use Joyent

See [Joyent Docs](https://apidocs.joyent.com/docker/) for more info

```bash
bash sdc-docker-setup.sh https://us-east-1.api.joyent.com ch<EMAIL> ~/.ssh/chris-triton
```

**NB:** This will issue a new public ip address every time - I have a support ticket with Joyent asking how to keep a
static ip address.

```bash
docker run -p 8000:8000 -d realscouteng/avr-emulator
```

<commit_msg>readme update<commit_after># Building

**Requirements:** Install [boot2docker](http://boot2docker.io/) and make sure it's running

**Note:** All commands below assume you are working from this `./server` directory.

```
docker build -f rust-dockerfile -t realscouteng/rust-emulator .
docker build -f avr-dockerfile -t realscouteng/avr-emulator .
```

**Note:** If you are getting ssl errors when building, run `boot2docker restart`.

# Running Docker Locally

``` bash
# In a separate terminal session
boot2docker ssh -vnNTL 8000:localhost:8000
```

```bash
docker run -p 8000:8000 -t realscouteng/avr-emulator
```

# Updating the avr-emulator docker image

```bash
docker push realscouteng/avr-emulator
```

# Deployment

See [Joyent Docs](https://apidocs.joyent.com/docker/) for more info

```bash
bash sdc-docker-setup.sh https://us-east-1.api.joyent.com <EMAIL> ~/.ssh/chris-triton
```

```bash
docker run -p 8000:8000 -d realscouteng/avr-emulator
```

**NB:** This will issue a new public ip address every time - I have a support ticket with Joyent asking how to keep a
static ip address.
{'fraction_non_alphanumeric': 0.12909009412819364, 'fraction_numerical': 0.025997310623038995, 'mean_word_length': 4.339712918660287, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5734697', 'n_tokens_mistral': 846, 'n_tokens_neox': 718, 'n_words': 249}