# create container
lxc launch ubuntu:20.04 osc
lxc shell osc
# install OpenStack CLI
apt install -y python3-openstackclient python3-neutron-vpnaas python3-octaviaclient python3-barbicanclient
openstack complete | sudo tee /etc/bash_completion.d/openstack
source /etc/bash_completion
# configure connection
mkdir -p ~/.config/openstack
cat <<EOF> ~/.config/openstack/clouds.yaml
clouds:
dev-foo-app:
auth:
auth_url: https://keystone.service.example.com/v3
application_credential_id: "xxxxxxxx"
application_credential_secret: "xxxxxxxx"
region_name: "eu-fra1"
interface: "public"
identity_api_version: 3
auth_type: "v3applicationcredential"
EOF
echo export OS_CLOUD=dev-foo-app >> .bashrc
# test
export OS_CLOUD=dev-foo-app
openstack image list