blob: 764fcd1ca96dcd83718e209790dddbe55b2a6864 [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 \
vexxhost-bot0fe4b4a2024-10-01 11:10:48 -040017 python-3parclient \
Mohammed Naser87fe1202024-04-29 19:48:02 -040018 storpool \
19 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040020EOF
21
Mohammed Naserd30f18d2024-04-17 01:20:43 -040022FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040023RUN <<EOF bash -xe
24apt-get update -qq
25apt-get install -qq -y --no-install-recommends \
Rico Lin3d7dc542024-04-23 04:39:56 +080026 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 -040027apt-get clean
28rm -rf /var/lib/apt/lists/*
29EOF
30ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
31COPY --from=build --link /var/lib/openstack /var/lib/openstack