<commit_before># VM Setup Instructions

- Set up secrets (access tokens, passwords, etc)
- Set up docker
- Attach persistent disk
- Build docker image (+ checkout repo)
- Run image (+ setup for run on boot)


## Build image
- `<aio-builds-setup-dir>/build.sh [<name>[:<tag>] [--build-arg <NAME>=<value> ...]]`


## Run image
- `sudo docker run \
     -d \
     --dns 127.0.0.1 \
     --name <instance-name> \
     -p 80:80 \
     -p 443:443 \
    [-v <host-cert-dir>:/etc/ssl/localcerts:ro] \
     -v <host-secrets-dir>:/aio-secrets:ro \
     -v <host-builds-dir>:/var/www/aio-builds \
     <name>[:<tag>]
  `

## Questions
- Do we care to keep logs (e.g. cron, nginx, aio-upload-server, aio-clean-up, pm2) outside of the container?
- Instead of creating new comments for each commit, update the original comment?
- Do we want to drop HTTP support (and/or redirect to HTTPS)?
- When re-running a Travis job build that has previous succeeded for AIO, it will not be able to
  deploy and fail.<commit_msg>docs(aio): document arg for auto-restarting the docker container on boot<commit_after># VM Setup Instructions

- Set up secrets (access tokens, passwords, etc)
- Set up docker
- Attach persistent disk
- Build docker image (+ checkout repo)
- Run image (+ setup for run on boot)


## Build image
- `<aio-builds-setup-dir>/build.sh [<name>[:<tag>] [--build-arg <NAME>=<value> ...]]`


## Run image
- `sudo docker run \
     -d \
     --dns 127.0.0.1 \
     --name <instance-name> \
     -p 80:80 \
     -p 443:443 \
     --restart unless-stopped \
    [-v <host-cert-dir>:/etc/ssl/localcerts:ro] \
     -v <host-secrets-dir>:/aio-secrets:ro \
     -v <host-builds-dir>:/var/www/aio-builds \
     <name>[:<tag>]
  `


## Questions
- Do we care to keep logs (e.g. cron, nginx, aio-upload-server, aio-clean-up, pm2) outside of the container?
- Instead of creating new comments for each commit, update the original comment?
{'fraction_non_alphanumeric': 0.15364583333333334, 'fraction_numerical': 0.017708333333333333, 'mean_word_length': 2.730097087378641, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '4420512', 'n_tokens_mistral': 722, 'n_tokens_neox': 666, 'n_words': 212}