| # SPDX-License-Identifier: Apache-2.0 |
| # Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z |
| |
| ARG RELEASE |
| |
| FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
| RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| pip3 install \ |
| --constraint /upper-constraints.txt \ |
| osc-placement \ |
| python-barbicanclient \ |
| python-designateclient \ |
| python-glanceclient \ |
| python-heatclient \ |
| python-ironicclient \ |
| python-magnumclient \ |
| python-manilaclient \ |
| python-neutronclient \ |
| python-octaviaclient \ |
| python-openstackclient \ |
| python-swiftclient |
| 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 |