| # SPDX-License-Identifier: Apache-2.0 |
| # Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z |
| FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
| ARG CINDER_GIT_REF=db98dc207060da234c32a563c13cac1edbd62952 |
| ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder |
| RUN git -C /src/cinder fetch --unshallow |
| COPY patches/cinder /patches/cinder |
| RUN git -C /src/cinder apply --verbose /patches/cinder/* |
| RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| --constraint /upper-constraints.txt \ |
| FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
| apt-get install -qq -y --no-install-recommends \ |
| ceph-common lsscsi nfs-common nvme-cli python3-rados python3-rbd qemu-utils qemu-block-extra sysfsutils udev util-linux |
| rm -rf /var/lib/apt/lists/* |
| ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl |
| COPY --from=build --link /var/lib/openstack /var/lib/openstack |