From c7fa036f64b30a48424e2e247adc15677c42eb19 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Fri, 12 Jul 2024 14:49:05 -0400 Subject: [PATCH] Fix CLI issues (#1575) This fixes the ability to be able to run the CLI anywhere other than /tmp and also exports the SHELL variable so that the Magnum clients works happily. --- images/python-openstackclient/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/images/python-openstackclient/Dockerfile b/images/python-openstackclient/Dockerfile index 22132240a..3e525aeff 100644 --- a/images/python-openstackclient/Dockerfile +++ b/images/python-openstackclient/Dockerfile @@ -22,3 +22,11 @@ EOF FROM registry.atmosphere.dev/library/python-base:${RELEASE} COPY --from=build --link /var/lib/openstack /var/lib/openstack + +# NOTE(mnaser): The Magnum client relies on the SHELL environment variable +# to determine the shell to use. +ENV SHELL=/bin/bash + +# NOTE(mnaser): When we call this container, we mount the current directory +# into `/opt` and then we can call `openstack` commands. +WORKDIR /opt