blob: a333624e38731456ab327fc83297f1e8f2eddb2c [file] [log] [blame]
Mohammed Naserfe5e63b2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
3# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naserfe5e63b2025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Yaguang Tang2e3f2aa2024-07-09 04:23:29 +08006ARG GLANCE_GIT_REF=edd75b70a4541c5dd89715a75ad565692dca2efa
Mohammed Naserda994232024-04-13 12:34:01 -04007ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
8RUN git -C /src/glance fetch --unshallow
Yaguang Tangba6760e2024-12-13 12:59:40 +08009ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#unmaintained/2023.1 /src/glance_store
Mohammed Naserda994232024-04-13 12:34:01 -040010RUN git -C /src/glance_store fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020011COPY patches/glance_store /patches/glance_store
12RUN git -C /src/glance_store apply --verbose /patches/glance_store/*
Mohammed Naserda994232024-04-13 12:34:01 -040013RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
14pip3 install \
15 --constraint /upper-constraints.txt \
16 /src/glance \
Mohammed Naser87fe1202024-04-29 19:48:02 -040017 /src/glance_store[cinder] \
18 storpool \
19 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040020EOF
Mohammed Naser87fe1202024-04-29 19:48:02 -040021ADD --chmod=644 \
Mohammed Naser5d4d4412024-05-24 19:36:35 +020022 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/antelope/storpool.py \
Mohammed Naser87fe1202024-04-29 19:48:02 -040023 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserda994232024-04-13 12:34:01 -040024
Mohammed Naserfe5e63b2025-01-18 15:49:44 -050025FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040026RUN <<EOF bash -xe
27apt-get update -qq
28apt-get install -qq -y --no-install-recommends \
Mohammed Naser23c43622025-01-31 10:58:24 -050029 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 -040030apt-get clean
31rm -rf /var/lib/apt/lists/*
32EOF
33ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
34COPY --from=build --link /var/lib/openstack /var/lib/openstack