<commit_before># OTP Docker

This project contains a docker recipe for deploying an Ubuntu instance with OpenTripPlanner installed. Additionaly it contains configuration to deploy the container to AWS Elastic Beanstalk.


## Requirements

In order to use this repository, you need to have the `AWS CLI` and `EB CLI`
installed.
If you want to test the images locally, you also must install `docker`:

```
$ brew install awscli aws-elasticbeanstalk
```

## Deploy the container to AWS EB

Open up the directory `docker` in your favourite text editor and change
the following files according to your needs:

* `docker/Dockerfile`: Change the OTP download url if needed and adapt the
  changes to the version number of the downloaded file.
* `docker/run.sh` Change the version number of otp and also change the
  memory needed to run OTP for the region you want to deploy

You should now change your working directory to `./docker`:

```
$ cd docker
```

To deploy a new OTP instance either create a new `AWS EB Environment` or clone an existing
one first.
To see which environments are available, type `eb list`.

### Cloning an environment:
Select the desired environment to clone via `eb use <ENVIRONMENT-NAME` and then
type `eb clone`.
You will be asked about the name, cname and other things about your new environment.<commit_msg>fixed typo<commit_after># OTP Docker

This project contains a docker recipe for deploying an Ubuntu instance with OpenTripPlanner installed. Additionaly it contains configuration to deploy the container to AWS Elastic Beanstalk.


## Requirements

In order to use this repository, you need to have the `AWS CLI` and `EB CLI`
installed.
If you want to test the images locally, you also must install `docker`:

```
$ brew install awscli aws-elasticbeanstalk
```

## Deploy the container to AWS EB

Open up the directory `docker` in your favourite text editor and change
the following files according to your needs:

* `docker/Dockerfile`: Change the OTP download url if needed and adapt the
  changes to the version number of the downloaded file.
* `docker/run.sh` Change the version number of otp and also change the
  memory needed to run OTP for the region you want to deploy

You should now change your working directory to `./docker`:

```
$ cd docker
```

To deploy a new OTP instance either create a new `AWS EB Environment` or clone an existing
one first.
To see which environments are available, type `eb list`.

### Cloning an environment:
Select the desired environment to clone via `eb use <ENVIRONMENT-NAME>` and then
type `eb clone`.
You will be asked about the name, cname and other things about your new environment.
{'fraction_non_alphanumeric': 0.05597295266716754, 'fraction_numerical': 0.0, 'mean_word_length': 4.412601626016261, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3646742', 'n_tokens_mistral': 731, 'n_tokens_neox': 673, 'n_words': 408}