blob: 5d9c12de4fc7892f476aeca90883cf33c4a3493d [file] [log] [blame]
vexxhost-bot6e0e4362024-06-01 21:24:08 +02001# SPDX-License-Identifier: Apache-2.0
vexxhost-bot65e04a22024-06-26 15:46:55 +02002# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naser91491332025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naserd30f18d2024-04-17 01:20:43 -04005ARG RELEASE
6
Mohammed Naser91491332025-01-15 16:49:44 -05007FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build
Yaguang Tang2e3f2aa2024-07-09 04:23:29 +08008ARG GLANCE_GIT_REF=edd75b70a4541c5dd89715a75ad565692dca2efa
Mohammed Naserda994232024-04-13 12:34:01 -04009ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
10RUN git -C /src/glance fetch --unshallow
Yaguang Tangba6760e2024-12-13 12:59:40 +080011ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#unmaintained/2023.1 /src/glance_store
Mohammed Naserda994232024-04-13 12:34:01 -040012RUN git -C /src/glance_store fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020013COPY patches/glance_store /patches/glance_store
14RUN git -C /src/glance_store apply --verbose /patches/glance_store/*
Mohammed Naserda994232024-04-13 12:34:01 -040015RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
16pip3 install \
17 --constraint /upper-constraints.txt \
18 /src/glance \
Mohammed Naser87fe1202024-04-29 19:48:02 -040019 /src/glance_store[cinder] \
20 storpool \
21 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040022EOF
Mohammed Naser87fe1202024-04-29 19:48:02 -040023ADD --chmod=644 \
Mohammed Naser5d4d4412024-05-24 19:36:35 +020024 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/antelope/storpool.py \
Mohammed Naser87fe1202024-04-29 19:48:02 -040025 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserda994232024-04-13 12:34:01 -040026
Mohammed Naser91491332025-01-15 16:49:44 -050027FROM ${REGISTRY}/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040028RUN <<EOF bash -xe
29apt-get update -qq
30apt-get install -qq -y --no-install-recommends \
Oleksandr K4aae76e2024-05-19 01:24:08 +020031 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 -040032apt-get clean
33rm -rf /var/lib/apt/lists/*
34EOF
35ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
36COPY --from=build --link /var/lib/openstack /var/lib/openstack