Skip to content

Commit

Permalink
Fix CLI issues (#1575)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mnaser authored Jul 12, 2024
1 parent 92ac0b6 commit c7fa036
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions images/python-openstackclient/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c7fa036

Please sign in to comment.