Skip to content

Commit

Permalink
Update Neville.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Internev authored Jan 10, 2017
1 parent 18c026f commit d18605c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Neville.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,22 @@ To start server run:
go run editor/*.go
```
from root.

## Deployment with Docker
Assuming the dockerfile is ok, docker hub will build a new image each time we push a new version to the main repo. Deployment on digital ocean is trivial. Choose the "Docker 1.12.5, Ubuntu 16.04" droplet, once it's been created, SSH in and run:
```
docker run -p 443:8443 tesislab/tesis
```
And docker will download and run the latest build exposing port 443 (which is bound to 8443 from the internals of docker).
*nb: builds take ~10min on docker hub, so if you've just pushed, give it time to build the latest image.

If you have previously run an image, docker will cache it locally. At present there doesn't seem to be an elegant way to handle this (big thread on docker github about it), so to get the latest you need to remove the version you have, then get the new one, so run:
```
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
```
to stop then remove all containers, then you can just remove the image:
```
docker rmi tesislab/tesis
```
then just run the docker run above.

0 comments on commit d18605c

Please sign in to comment.