2017-02-06 13:40:28 -05:00
|
|
|
# VM Setup Instructions
|
|
|
|
|
2017-02-28 14:09:44 -05:00
|
|
|
- Set up secrets (access tokens, passwords, etc)
|
2017-02-06 13:40:28 -05:00
|
|
|
- Set up docker
|
|
|
|
- Attach persistent disk
|
|
|
|
- Build docker image (+ checkout repo)
|
|
|
|
- Run image (+ setup for run on boot)
|
|
|
|
|
|
|
|
|
|
|
|
## Build image
|
2017-03-02 07:46:06 -05:00
|
|
|
- `<aio-builds-setup-dir>/build.sh [<name>[:<tag>] [--build-arg <NAME>=<value> ...]]`
|
2017-02-06 13:40:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
## Run image
|
|
|
|
- `sudo docker run \
|
|
|
|
-d \
|
|
|
|
--dns 127.0.0.1 \
|
|
|
|
--name <instance-name> \
|
|
|
|
-p 80:80 \
|
|
|
|
-p 443:443 \
|
2017-02-27 05:11:55 -05:00
|
|
|
[-v <host-cert-dir>:/etc/ssl/localcerts:ro] \
|
2017-02-28 14:09:44 -05:00
|
|
|
-v <host-secrets-dir>:/aio-secrets:ro \
|
2017-02-27 05:11:55 -05:00
|
|
|
-v <host-builds-dir>:/var/www/aio-builds \
|
2017-02-06 13:40:28 -05:00
|
|
|
<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?
|
2017-02-27 05:11:55 -05:00
|
|
|
- Do we want to drop HTTP support (and/or redirect to HTTPS)?
|
2017-03-02 18:58:31 -05:00
|
|
|
- When re-running a Travis job build that has previous succeeded for AIO, it will not be able to
|
|
|
|
deploy and fail.
|