blob: 09e32a504912dcbbc7cd8d5a7b9e3ca4f91e4d15 [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
Mohammed Naser735efe22024-06-26 23:46:25 -04002# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserd4ae9be2025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naserd30f18d2024-04-17 01:20:43 -04005ARG RELEASE
6
Mohammed Naserd4ae9be2025-01-15 16:49:44 -05007FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build
Yaguang Tangb81c9492024-07-09 04:12:03 +08008ARG CINDER_GIT_REF=db98dc207060da234c32a563c13cac1edbd62952
Mohammed Naserda994232024-04-13 12:34:01 -04009ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder
10RUN git -C /src/cinder fetch --unshallow
11COPY patches/cinder /patches/cinder
12RUN git -C /src/cinder apply --verbose /patches/cinder/*
13RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
14pip3 install \
15 --constraint /upper-constraints.txt \
16 /src/cinder \
Mohammed Naser87fe1202024-04-29 19:48:02 -040017 purestorage \
vexxhost-bot0fe4b4a2024-10-01 11:10:48 -040018 python-3parclient \
Mohammed Naser87fe1202024-04-29 19:48:02 -040019 storpool \
20 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040021EOF
22
Mohammed Naserd4ae9be2025-01-15 16:49:44 -050023FROM ${REGISTRY}/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040024RUN <<EOF bash -xe
25apt-get update -qq
26apt-get install -qq -y --no-install-recommends \
vexxhost-bot2bb1ca02024-11-29 03:40:43 -050027 ceph-common lsscsi nfs-common nvme-cli python3-rados python3-rbd qemu-utils qemu-block-extra sysfsutils udev util-linux
Mohammed Naserda994232024-04-13 12:34:01 -040028apt-get clean
29rm -rf /var/lib/apt/lists/*
30EOF
31ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
32COPY --from=build --link /var/lib/openstack /var/lib/openstack