blob: ecf27efdd7960bbdf39d883e2e06ccab4205dadd [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
vexxhost-botc2fd4282024-06-26 07:04:25 +02002# Atmosphere-Rebuild-Time: 2024-06-25T13:53:44Z
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
Yaguang Tangcd972f62024-07-09 04:12:05 +08007ARG GLANCE_GIT_REF=835c89c711993c51aa8752d96b4c8effa1a97009
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 Naser142dc922024-06-20 21:19:25 -040010ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#stable/2023.2 /src/glance_store
Mohammed Naserda994232024-04-13 12:34:01 -040011RUN git -C /src/glance_store fetch --unshallow
12RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
13pip3 install \
14 --constraint /upper-constraints.txt \
15 /src/glance \
Mohammed Naser87fe1202024-04-29 19:48:02 -040016 /src/glance_store[cinder] \
17 storpool \
18 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040019EOF
Mohammed Naser87fe1202024-04-29 19:48:02 -040020ADD --chmod=644 \
Mohammed Naser142dc922024-06-20 21:19:25 -040021 https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/antelope/storpool.py \
Mohammed Naser87fe1202024-04-29 19:48:02 -040022 /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
Mohammed Naserda994232024-04-13 12:34:01 -040023
Mohammed Naserd30f18d2024-04-17 01:20:43 -040024FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040025RUN <<EOF bash -xe
26apt-get update -qq
27apt-get install -qq -y --no-install-recommends \
Oleksandr K4aae76e2024-05-19 01:24:08 +020028 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 -040029apt-get clean
30rm -rf /var/lib/apt/lists/*
31EOF
32ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
33COPY --from=build --link /var/lib/openstack /var/lib/openstack