blob: 34b387ffb0c8fedd2c8b6d9cb21c7b2566b1d7eb [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 GLANCE_GIT_REF=b5b29a0ae15d44424f04db0686328d0a01a14853
Mohammed Naserda994232024-04-13 12:34:01 -04009ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
10RUN git -C /src/glance fetch --unshallow
Mohammed Naser05795e52024-06-26 07:52:19 -040011ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#stable/2024.1 /src/glance_store
Mohammed Naserda994232024-04-13 12:34:01 -040012RUN git -C /src/glance_store fetch --unshallow
13RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
14pip3 install \
15 --constraint /upper-constraints.txt \
16 /src/glance \
Mohammed Naser87fe1202024-04-29 19:48:02 -040017 /src/glance_store[cinder] \
18 storpool \
19 storpool.spopenstack
Mohammed Naserda994232024-04-13 12:34:01 -040020EOF
21
Mohammed Naserd4ae9be2025-01-15 16:49:44 -050022FROM ${REGISTRY}/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 \
Oleksandr K4aae76e2024-05-19 01:24:08 +020026 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 -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