blob: 6cd2c602b146f82bf528543e749a7a6ba83fce43 [file] [log] [blame]
Mohammed Naser7bda44d2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Nasercf7c06d2025-02-18 09:25:27 -05003# Atmosphere-Rebuild-Time: 2025-02-18T16:06:32Z
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04004
Mohammed Naser7bda44d2025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naser22819092025-03-19 23:37:52 -04006# renovate: name=openstack/glance repo=https://opendev.org/openstack/glance.git branch=unmaintained/zed
Yaguang Tang2dd850a2024-09-30 23:20:49 +08007ARG GLANCE_GIT_REF=8bbe205c6497032790505579accb4cf1ff341599
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04008ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
9RUN git -C /src/glance fetch --unshallow
Mohammed Naser22819092025-03-19 23:37:52 -040010# renovate: name=openstack/glance_store repo=https://opendev.org/openstack/glance_store.git branch=unmaintained/zed
11ARG GLANCE_STORE_GIT_REF=ff4513e715ebf407d27e31ef46a115174720926d
12ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#${GLANCE_STORE_GIT_REF} /src/glance_store
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040013RUN git -C /src/glance_store fetch --unshallow
14COPY patches/glance_store /patches/glance_store
15RUN git -C /src/glance_store apply --verbose /patches/glance_store/*
16RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
17pip3 install \
18 --constraint /upper-constraints.txt \
19 /src/glance \
Mohammed Naserd61f3d42024-04-24 00:32:54 -040020 /src/glance_store[cinder] \
21 storpool \
22 storpool.spopenstack
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040023EOF
Mohammed Naserd61f3d42024-04-24 00:32:54 -040024ADD --chmod=644 \
25 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/zed/storpool.py \
26 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040027
Mohammed Naser7bda44d2025-01-18 15:49:44 -050028FROM openstack-python-runtime
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040029RUN <<EOF bash -xe
30apt-get update -qq
31apt-get install -qq -y --no-install-recommends \
Mohammed Naser7ee29252025-01-31 10:58:24 -050032 ceph-common dmidecode lsscsi nvme-cli python3-rados python3-rbd qemu-block-extra qemu-utils sysfsutils udev util-linux
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040033apt-get clean
34rm -rf /var/lib/apt/lists/*
35EOF
36ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
37COPY --from=build --link /var/lib/openstack /var/lib/openstack