interledger-deprecated / ilp-kit-docker-compose

Deploy a complete ILP Kit in one command
3 stars 5 forks source link

upgrade instructions #9

Open michielbdejong opened 7 years ago

michielbdejong commented 7 years ago

When running your server using this docker-compose, how do you update your server?

I think something like this might work, but would appreciate @sharafian's feedback:

To update the image to latest release:

# starting in the ilp-kit-docker-compose folder
docker-compose pull interledgerjs/ilp-kit

To update the image to latest master:

# starting in the ilp-kit-docker-compose folder
cd ..
git clone https://github.com/interledgerjs/ilp-kit
cd ilp-kit
docker build -t interledgerjs/ilp-kit .
cd ../ilp-kit-docker-compose

In both cases, to update the running container to the new image:

# starting in the ilp-kit-docker-compose folder
docker-compose stop ilp-kit
docker-compose kill ilp-kit
docker-compose up -d --no-deps ilp-kit

The last part is based on http://staxmanade.com/2016/09/how-to-update-a-single-running-docker-compose-container/ - not sure if this is correct?

sharafian commented 7 years ago

The article above seems to recommend stop over kill (due to the confusing formatting it looks as though he's recommending both). Looks good otherwise though.

michielbdejong commented 7 years ago

cool! trying it out now, will create a docs PR once tested.

michielbdejong commented 7 years ago

i had to stop the live containers to prevent the build from running out of memory, might be worth advising that in the instructions.