blob: 3a5722b8ac6b7ca5aa051c5a5265c24a6e87da46 [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 Naser19c6c8a2024-04-18 01:47:10 -04004ARG RELEASE
5
6FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04007ARG GLANCE_GIT_REF=06a18202ab52c64803f044b8f848ed1c160905d2
8ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
9RUN git -C /src/glance fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020010ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#unmaintained/zed /src/glance_store
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040011RUN git -C /src/glance_store fetch --unshallow
12COPY patches/glance_store /patches/glance_store
13RUN git -C /src/glance_store apply --verbose /patches/glance_store/*
14RUN --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 Naserd61f3d42024-04-24 00:32:54 -040018 /src/glance_store[cinder] \
19 storpool \
20 storpool.spopenstack
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040021EOF
Mohammed Naserd61f3d42024-04-24 00:32:54 -040022ADD --chmod=644 \
23 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/zed/storpool.py \
24 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040025
Mohammed Naser19c6c8a2024-04-18 01:47:10 -040026FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040027RUN <<EOF bash -xe
28apt-get update -qq
29apt-get install -qq -y --no-install-recommends \
vexxhost-bot1cc59942024-05-20 16:04:26 +020030 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 -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