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.
}
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 \
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