blob: 1a3a5cc9b8a3db7653316008bff1c00c614c9f5b [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 Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
6FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Yaguang Tangb81c9492024-07-09 04:12:03 +08007ARG CINDER_GIT_REF=db98dc207060da234c32a563c13cac1edbd62952
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder
9RUN git -C /src/cinder fetch --unshallow
10COPY patches/cinder /patches/cinder
11RUN git -C /src/cinder apply --verbose /patches/cinder/*
12RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
13pip3 install \
14 --constraint /upper-constraints.txt \
15 /src/cinder \
Mohammed Naser87fe1202024-04-29 19:48:02 -040016 purestorage \
17 storpool \
18 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040019EOF
20
Mohammed Naserd30f18d2024-04-17 01:20:43 -040021FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040022RUN <<EOF bash -xe
23apt-get update -qq
24apt-get install -qq -y --no-install-recommends \
Rico Lin3d7dc542024-04-23 04:39:56 +080025 ceph-common lsscsi nvme-cli python3-rados python3-rbd qemu-utils qemu-block-extra sysfsutils udev util-linux
Mohammed Naserda994232024-04-13 12:34:01 -040026apt-get clean
27rm -rf /var/lib/apt/lists/*
28EOF
29ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
30COPY --from=build --link /var/lib/openstack /var/lib/openstack