Looks like good advice. Here’s how I do that. It assumes you’ve got asdf and docker.
IMAGE_MAGICK_VERSION=$(docker run discourse/base:release bash -c 'magick --version'|head -1|cut -d' ' -f3)
echo "Got IMAGE_MAGICK_VERSION: $IMAGE_MAGICK_VERSION"
asdf install imagemagick $IMAGE_MAGICK_VERSION 2>&1 |grep -v "already"
echo "installed imagemagic, now set global"
asdf global imagemagick $IMAGE_MAGICK_VERSION 2>&1 |grep -v "already"
echo "global done."