blob: 062924da61c92a28f1deb6e891cf712f485103cf [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 Nasere786d962024-06-26 01:08:34 -04003# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser564caa82025-01-18 15:49:44 -05005FROM openstack-venv-builder AS build
Mohammed Naserda994232024-04-13 12:34:01 -04006ARG GLANCE_GIT_REF=0bcd6cd71c09917c6734421374fd598d73e8d0cc
7ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
8RUN git -C /src/glance fetch --unshallow
9ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#master /src/glance_store
10RUN git -C /src/glance_store fetch --unshallow
11RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
12pip3 install \
13 --constraint /upper-constraints.txt \
14 /src/glance \
Mohammed Naser87fe1202024-04-29 19:48:02 -040015 /src/glance_store[cinder] \
16 storpool \
17 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040018EOF
Mohammed Naser87fe1202024-04-29 19:48:02 -040019ADD --chmod=644 \
20 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/bobcat/storpool.py \
21 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserda994232024-04-13 12:34:01 -040022
Mohammed Naser564caa82025-01-18 15:49:44 -050023FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040024RUN <<EOF bash -xe
25apt-get update -qq
26apt-get install -qq -y --no-install-recommends \
Mohammed Naser0a5b2e42025-01-31 10:58:24 -050027 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 -040028apt-get clean
29rm -rf /var/lib/apt/lists/*
30EOF
31ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
32COPY --from=build --link /var/lib/openstack /var/lib/openstack