blob: f92dd1b73a6b5adf2b1baadd6e44804d2f06545c [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
Mohammed Naserc2769ab2024-06-26 07:52:39 -04002# Atmosphere-Rebuild-Time: 2024-06-26T11:52:25Z
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
Mohammed Naser05795e52024-06-26 07:52:19 -04007ARG GLANCE_GIT_REF=eb3eb4ea269f608a7b534bb205f917309420cd51
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 Naser05795e52024-06-26 07:52:19 -040010ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#stable/2024.1 /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
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 \
Oleksandr K4aae76e2024-05-19 01:24:08 +020025 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 -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