Mohammed Naser | f1ac3f8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | # Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | f1ac3f8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM openstack-venv-builder AS build |
Yaguang Tang | cd972f6 | 2024-07-09 04:12:05 +0800 | [diff] [blame] | 6 | ARG GLANCE_GIT_REF=835c89c711993c51aa8752d96b4c8effa1a97009 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 7 | ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance |
| 8 | RUN git -C /src/glance fetch --unshallow |
Mohammed Naser | 142dc92 | 2024-06-20 21:19:25 -0400 | [diff] [blame] | 9 | ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#stable/2023.2 /src/glance_store |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 10 | RUN git -C /src/glance_store fetch --unshallow |
| 11 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 12 | pip3 install \ |
| 13 | --constraint /upper-constraints.txt \ |
| 14 | /src/glance \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 15 | /src/glance_store[cinder] \ |
| 16 | storpool \ |
| 17 | storpool.spopenstack |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 18 | EOF |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 19 | ADD --chmod=644 \ |
Mohammed Naser | 911d814 | 2025-02-17 16:52:51 -0500 | [diff] [blame] | 20 | https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/bobcat/storpool.py \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 21 | /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] | 22 | |
Mohammed Naser | f1ac3f8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 23 | FROM openstack-python-runtime |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 24 | RUN <<EOF bash -xe |
| 25 | apt-get update -qq |
| 26 | apt-get install -qq -y --no-install-recommends \ |
Mohammed Naser | 0d3e110 | 2025-01-31 10:58:24 -0500 | [diff] [blame] | 27 | ceph-common dmidecode 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] | 28 | apt-get clean |
| 29 | rm -rf /var/lib/apt/lists/* |
| 30 | EOF |
| 31 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl |
| 32 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |