Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
Mohammed Naser | e786d96 | 2024-06-26 01:08:34 -0400 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | bcd5311 | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 4 | ARG REGISTRY |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 5 | ARG RELEASE |
| 6 | |
Mohammed Naser | bcd5311 | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 7 | FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 8 | ARG GLANCE_GIT_REF=0bcd6cd71c09917c6734421374fd598d73e8d0cc |
| 9 | ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance |
| 10 | RUN git -C /src/glance fetch --unshallow |
| 11 | ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#master /src/glance_store |
| 12 | RUN git -C /src/glance_store fetch --unshallow |
| 13 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 14 | pip3 install \ |
| 15 | --constraint /upper-constraints.txt \ |
| 16 | /src/glance \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 17 | /src/glance_store[cinder] \ |
| 18 | storpool \ |
| 19 | storpool.spopenstack |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 20 | EOF |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 21 | ADD --chmod=644 \ |
| 22 | https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/bobcat/storpool.py \ |
| 23 | /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 24 | |
Mohammed Naser | bcd5311 | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 25 | FROM ${REGISTRY}/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 26 | RUN <<EOF bash -xe |
| 27 | apt-get update -qq |
| 28 | apt-get install -qq -y --no-install-recommends \ |
Oleksandr K | 4aae76e | 2024-05-19 01:24:08 +0200 | [diff] [blame] | 29 | ceph-common lsscsi nvme-cli python3-rados python3-rbd qemu-block-extra qemu-utils sysfsutils udev util-linux |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 30 | apt-get clean |
| 31 | rm -rf /var/lib/apt/lists/* |
| 32 | EOF |
| 33 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl |
| 34 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |