blob: 3bf6a7338540a2ff6d0e892575475d3161541654 [file] [log] [blame]
Mohammed Naser564caa82025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Naser30004232025-02-20 16:43:21 -05003# Atmosphere-Rebuild-Time: 2025-02-20T21:42:46Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser564caa82025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naser8ed5c8e2025-03-19 23:37:52 -04006# renovate: name=openstack/glance repo=https://opendev.org/openstack/glance.git branch=stable/2024.2
Mohammed Naser49aa2332025-02-17 16:53:31 -05007ARG GLANCE_GIT_REF=d1cc917a29c9d2e87b1bad51a33a8a2500eb69c6
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
9RUN git -C /src/glance fetch --unshallow
Mohammed Naser8ed5c8e2025-03-19 23:37:52 -040010# renovate: name=openstack/glance_store repo=https://opendev.org/openstack/glance_store.git branch=stable/2024.2
11ARG GLANCE_STORE_GIT_REF=6182b2b2fe640df4c763ae8fc6c04571374479a1
12ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#${GLANCE_STORE_GIT_REF} /src/glance_store
Mohammed Naserda994232024-04-13 12:34:01 -040013RUN git -C /src/glance_store fetch --unshallow
Mohammed Naserafc8c8c2025-02-21 15:02:33 -050014RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
15uv pip install \
Mohammed Naserda994232024-04-13 12:34:01 -040016 --constraint /upper-constraints.txt \
17 /src/glance \
Mohammed Naser87fe1202024-04-29 19:48:02 -040018 /src/glance_store[cinder] \
19 storpool \
20 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040021EOF
Mohammed Naser87fe1202024-04-29 19:48:02 -040022ADD --chmod=644 \
Mohammed Naser4672c4c2025-02-17 16:52:51 -050023 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/caracal/storpool.py \
Mohammed Naser87fe1202024-04-29 19:48:02 -040024 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserda994232024-04-13 12:34:01 -040025
Mohammed Naser564caa82025-01-18 15:49:44 -050026FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040027RUN <<EOF bash -xe
28apt-get update -qq
29apt-get install -qq -y --no-install-recommends \
Mohammed Naser0a5b2e42025-01-31 10:58:24 -050030 ceph-common dmidecode lsscsi nvme-cli python3-rados python3-rbd qemu-block-extra qemu-utils sysfsutils udev util-linux
Mohammed Naserda994232024-04-13 12:34:01 -040031apt-get clean
32rm -rf /var/lib/apt/lists/*
33EOF
34ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
35COPY --from=build --link /var/lib/openstack /var/lib/openstack