Skip to content

SWAPI: update Commonfare docker service

Pietro edited this page Oct 30, 2018 · 1 revision

This guide shows the steps to follow for updating the version of the SWAPI used in the docker compose file of commonfare.net.

Step 1: Update SWAPI docker image

Clone commonfare-swapi-docker and run

make clean
make docker/build

After having verified that it works, push the updated image to DockerHub

make docker/push

Step 1.1 (optional but recommended): try it with local standalone docker compose

Clone commonfare-swapi-deploy and run

docker-compose pull
docker-compose up

Verify that it works: you can run the tests of social_wallet_ruby to check that everything works

Step 2: Udpate the compose files of commonfare.net

For each environment (development, staging, production) run

docker-compose pull <SERVICE_NAME> # e.g. swapi_commoncoin for development

Then restart the container.