Mohammed Naser | fe5e63b | 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 | fe5e63b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM openstack-venv-builder AS build |
Mohammed Naser | d4a365e | 2025-03-19 23:37:52 -0400 | [diff] [blame^] | 6 | # renovate: name=openstack/glance repo=https://opendev.org/openstack/glance.git branch=unmaintained/2023.1 |
Yaguang Tang | 2e3f2aa | 2024-07-09 04:23:29 +0800 | [diff] [blame] | 7 | ARG GLANCE_GIT_REF=edd75b70a4541c5dd89715a75ad565692dca2efa |
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 | d4a365e | 2025-03-19 23:37:52 -0400 | [diff] [blame^] | 10 | # renovate: name=openstack/glance_store repo=https://opendev.org/openstack/glance_store.git branch=unmaintained/2023.1 |
| 11 | ARG GLANCE_STORE_GIT_REF=97b6f4c030189a80df0b525420a3760ae3a81941 |
| 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 | 5d4d441 | 2024-05-24 19:36:35 +0200 | [diff] [blame] | 14 | COPY patches/glance_store /patches/glance_store |
| 15 | RUN git -C /src/glance_store apply --verbose /patches/glance_store/* |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 16 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 17 | pip3 install \ |
| 18 | --constraint /upper-constraints.txt \ |
| 19 | /src/glance \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 20 | /src/glance_store[cinder] \ |
| 21 | storpool \ |
| 22 | storpool.spopenstack |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 23 | EOF |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 24 | ADD --chmod=644 \ |
Mohammed Naser | 5d4d441 | 2024-05-24 19:36:35 +0200 | [diff] [blame] | 25 | https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/antelope/storpool.py \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 26 | /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] | 27 | |
Mohammed Naser | fe5e63b | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 28 | FROM openstack-python-runtime |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 29 | RUN <<EOF bash -xe |
| 30 | apt-get update -qq |
| 31 | apt-get install -qq -y --no-install-recommends \ |
Mohammed Naser | 23c4362 | 2025-01-31 10:58:24 -0500 | [diff] [blame] | 32 | 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] | 33 | apt-get clean |
| 34 | rm -rf /var/lib/apt/lists/* |
| 35 | EOF |
| 36 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl |
| 37 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |