From 165ede971918d4b917ea2073e5117c30eae80fd3 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 May 2022 20:41:07 -0400 Subject: [PATCH] FIX: ensure the latest image is always pulled for the container we're building If the user has overridden the `base_image` to something other than default, we may not get the latest version of that image when bootstrapping. To remedy, always pull the image to check the manifest after we parse it out. --- launcher | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/launcher b/launcher index 59d358a..a6177e9 100755 --- a/launcher +++ b/launcher @@ -648,10 +648,6 @@ run_run() { } run_bootstrap() { - # Is the image available? - # If not, pull it here so the user is aware what's happening. - $docker_path history $image >/dev/null 2>&1 || pull_image - set_template_info base_image=`cat $config_file | $docker_path run $user_args --rm -i -a stdin -a stdout $image ruby -e \ @@ -664,6 +660,10 @@ run_bootstrap() { image=$base_image fi + # the base_image may not always be discourse/base, + # let's ensure we always build from the latest + pull_image + set_volumes set_links -- 2.25.1