blob: 8d9c30541ca3983357868626a33ab4671913591e [file] [log] [blame]
vexxhost-bota62d9312024-06-01 21:13:59 +02001# SPDX-License-Identifier: Apache-2.0
vexxhost-bot4a8f0912024-06-28 22:34:23 +02002# Atmosphere-Rebuild-Time: 2024-06-28T12:14:26Z
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04003
Mohammed Naseraa212e62025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naser19c6c8a2024-04-18 01:47:10 -04005ARG RELEASE
6
Mohammed Naseraa212e62025-01-15 16:49:44 -05007FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build
Yaguang Tang2dd850a2024-09-30 23:20:49 +08008ARG GLANCE_GIT_REF=8bbe205c6497032790505579accb4cf1ff341599
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04009ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
10RUN git -C /src/glance fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020011ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#unmaintained/zed /src/glance_store
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040012RUN git -C /src/glance_store fetch --unshallow
13COPY patches/glance_store /patches/glance_store
14RUN git -C /src/glance_store apply --verbose /patches/glance_store/*
15RUN --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 Naserd61f3d42024-04-24 00:32:54 -040019 /src/glance_store[cinder] \
20 storpool \
21 storpool.spopenstack
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040022EOF
Mohammed Naserd61f3d42024-04-24 00:32:54 -040023ADD --chmod=644 \
24 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/zed/storpool.py \
25 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040026
Mohammed Naseraa212e62025-01-15 16:49:44 -050027FROM ${REGISTRY}/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040028RUN <<EOF bash -xe
29apt-get update -qq
30apt-get install -qq -y --no-install-recommends \
vexxhost-bot1cc59942024-05-20 16:04:26 +020031 ceph-common lsscsi nvme-cli python3-rados python3-rbd qemu-block-extra qemu-utils sysfsutils udev util-linux
Mohammed Naserd28fbaf2024-04-08 17:15:00 -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