Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
Mohammed Naser | 3000423 | 2025-02-20 16:43:21 -0500 | [diff] [blame] | 3 | # Atmosphere-Rebuild-Time: 2025-02-20T21:42:46Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM openstack-venv-builder AS build |
Mohammed Naser | 8ed5c8e | 2025-03-19 23:37:52 -0400 | [diff] [blame^] | 6 | # renovate: name=openstack/glance repo=https://opendev.org/openstack/glance.git branch=stable/2024.2 |
Mohammed Naser | 49aa233 | 2025-02-17 16:53:31 -0500 | [diff] [blame] | 7 | ARG GLANCE_GIT_REF=d1cc917a29c9d2e87b1bad51a33a8a2500eb69c6 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 8 | ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance |
| 9 | RUN git -C /src/glance fetch --unshallow |
Mohammed Naser | 8ed5c8e | 2025-03-19 23:37:52 -0400 | [diff] [blame^] | 10 | # renovate: name=openstack/glance_store repo=https://opendev.org/openstack/glance_store.git branch=stable/2024.2 |
| 11 | ARG GLANCE_STORE_GIT_REF=6182b2b2fe640df4c763ae8fc6c04571374479a1 |
| 12 | ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#${GLANCE_STORE_GIT_REF} /src/glance_store |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 13 | RUN git -C /src/glance_store fetch --unshallow |
Mohammed Naser | afc8c8c | 2025-02-21 15:02:33 -0500 | [diff] [blame] | 14 | RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe |
| 15 | uv pip install \ |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 16 | --constraint /upper-constraints.txt \ |
| 17 | /src/glance \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 18 | /src/glance_store[cinder] \ |
| 19 | storpool \ |
| 20 | storpool.spopenstack |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 21 | EOF |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 22 | ADD --chmod=644 \ |
Mohammed Naser | 4672c4c | 2025-02-17 16:52:51 -0500 | [diff] [blame] | 23 | https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/caracal/storpool.py \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 24 | /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] | 25 | |
Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 26 | FROM openstack-python-runtime |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 27 | RUN <<EOF bash -xe |
| 28 | apt-get update -qq |
| 29 | apt-get install -qq -y --no-install-recommends \ |
Mohammed Naser | 0a5b2e4 | 2025-01-31 10:58:24 -0500 | [diff] [blame] | 30 | 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] | 31 | apt-get clean |
| 32 | rm -rf /var/lib/apt/lists/* |
| 33 | EOF |
| 34 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl |
| 35 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |