blob: 058f79083c34183ac333a892b9321f288ce924b4 [file] [log] [blame]
vexxhost-bot6e0e4362024-06-01 21:24:08 +02001# SPDX-License-Identifier: Apache-2.0
2# Atmosphere-Rebuild-Time: 2024-05-30T20:29:01Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
6FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Mohammed Naser5d4d4412024-05-24 19:36:35 +02007ARG GLANCE_GIT_REF=70170d2a99f9d30bddcc55a9183133a16ed14c06
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
9RUN git -C /src/glance fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020010ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#stable/2023.1 /src/glance_store
Mohammed Naserda994232024-04-13 12:34:01 -040011RUN git -C /src/glance_store fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020012COPY patches/glance_store /patches/glance_store
13RUN git -C /src/glance_store apply --verbose /patches/glance_store/*
Mohammed Naserda994232024-04-13 12:34:01 -040014RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
15pip3 install \
16 --constraint /upper-constraints.txt \
17 /src/glance \
Mohammed Naser87fe1202024-04-29 19:48:02 -040018 /src/glance_store[cinder] \
19 storpool \
20 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040021EOF
Mohammed Naser87fe1202024-04-29 19:48:02 -040022ADD --chmod=644 \
Mohammed Naser5d4d4412024-05-24 19:36:35 +020023 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/antelope/storpool.py \
Mohammed Naser87fe1202024-04-29 19:48:02 -040024 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserda994232024-04-13 12:34:01 -040025
Mohammed Naserd30f18d2024-04-17 01:20:43 -040026FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040027RUN <<EOF bash -xe
28apt-get update -qq
29apt-get install -qq -y --no-install-recommends \
Oleksandr K4aae76e2024-05-19 01:24:08 +020030 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 -040031apt-get clean
32rm -rf /var/lib/apt/lists/*
33EOF
34ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
35COPY --from=build --link /var/lib/openstack /var/lib/openstack