#!/bin/sh # Commit a docker DaCHS "upgrade" container after an apt-get upgrade has # been successful. # See http://vo.ari.uni-heidelberg.de/arivo/Integration%20Testing # for details. if [ $# -ne 2 ]; then echo "Usage: $0 " echo " where is release or beta and is" echo " the package version you just upgraded to. See" echo " http://svn.ari.uni-heidelberg.de/svn/debian-package/gavodachs/trunk/debian/changelog" exit 1 fi dist=$1 dest_version=$2 container_id=$(podman ps | grep "upgrade-$dist" | cut -d " " -f1) if [ "t$container_id" = "t" ]; then echo "Cannot see an upgrade-$dist container running, so nothing" echo "to commit. Bailing out." exit 1 fi image_id=$(podman commit $container_id) podman tag $image_id "upgrade-$dist-$dest_version"