Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To inspect the concerns image, for example, run the following on the dev server; 

$ export SERVICE=concerns
$ docker inspect -f '{{ index .Config.Labels "com.transformuk.hee.tis.build_version" }}' docker-hee.transformcloud.net:5000/hee/${SERVICE}:latest

To inspect the build version of a container is a bit eaiser; 

$ docker inspect -f '{{ index .Config.Labels "com.transformuk.hee.tis.build_version" }}' concerns_concerns_1

It is a useful sanity check to make sure that the latest tag on dev is the version you expect.

Once you have established the versions of the images, they can be added to the stage/platform.yml or prod/platform.yml if they are ready to release.

Cleaning up Docker Hosts

There are two steps required to clean up a host;

  1. Stop all running containers;

    Code Block
    $ docker stop $(docker ps -q)
  2. Remove all docker-compose files for the existing stacks; 

    Code Block
    $ sudo rm -rf /data/docker/stacks