blob: 6690bc29aac20330f8a2483c4b023cf611184a83 [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
Mohammed Nasere786d962024-06-26 01:08:34 -04002# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserbcd53112025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naserd30f18d2024-04-17 01:20:43 -04005ARG RELEASE
6
Mohammed Naserbcd53112025-01-15 16:49:44 -05007FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build
Mohammed Naserda994232024-04-13 12:34:01 -04008ARG GLANCE_GIT_REF=0bcd6cd71c09917c6734421374fd598d73e8d0cc
9ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
10RUN git -C /src/glance fetch --unshallow
11ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#master /src/glance_store
12RUN git -C /src/glance_store fetch --unshallow
13RUN --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 \
22 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/bobcat/storpool.py \
23 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserda994232024-04-13 12:34:01 -040024
Mohammed Naserbcd53112025-01-15 16:49:44 -050025FROM ${REGISTRY}/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040026RUN <<EOF bash -xe
27apt-get update -qq
28apt-get install -qq -y --no-install-recommends \
Oleksandr K4aae76e2024-05-19 01:24:08 +020029 ceph-common 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