automate/compare_docker_selections.sh

14 lines
480 B
Bash

CONTAINER1=${1:-registry.gitlab.com/paddy-hack/devuan/slim:chimaera}
#CONTAINER1=${1:-dyne/devuan:ceres}
#CONTAINER2=${2:-devuan:stable-slim}
#CONTAINER1=${1:-debian:bookworm}
CONTAINER2=${2:-debian:bookworm-slim}
docker pull $CONTAINER1
docker pull $CONTAINER2
docker run --rm ${CONTAINER1} dpkg --get-selections >/tmp/container3-pkgs.txt
docker run --rm ${CONTAINER2} dpkg --get-selections >/tmp/container4-pkgs.txt
gvimdiff /tmp/container3-pkgs.txt /tmp/container4-pkgs.txt