vexxhost-bot | a62d931 | 2024-06-01 21:13:59 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
vexxhost-bot | 4a8f091 | 2024-06-28 22:34:23 +0200 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-28T12:14:26Z |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | 19c6c8a | 2024-04-18 01:47:10 -0400 | [diff] [blame] | 4 | ARG RELEASE |
| 5 | |
| 6 | FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 7 | ARG GLANCE_GIT_REF=06a18202ab52c64803f044b8f848ed1c160905d2 |
| 8 | ADD --keep-git-dir=true https://opendev.org/openstack/glance.git#${GLANCE_GIT_REF} /src/glance |
| 9 | RUN git -C /src/glance fetch --unshallow |
Oleksandr K | b222c79 | 2024-05-20 12:57:16 +0200 | [diff] [blame] | 10 | ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#unmaintained/zed /src/glance_store |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 11 | RUN git -C /src/glance_store fetch --unshallow |
| 12 | COPY patches/glance_store /patches/glance_store |
| 13 | RUN git -C /src/glance_store apply --verbose /patches/glance_store/* |
| 14 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 15 | pip3 install \ |
| 16 | --constraint /upper-constraints.txt \ |
| 17 | /src/glance \ |
Mohammed Naser | d61f3d4 | 2024-04-24 00:32:54 -0400 | [diff] [blame] | 18 | /src/glance_store[cinder] \ |
| 19 | storpool \ |
| 20 | storpool.spopenstack |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 21 | EOF |
Mohammed Naser | d61f3d4 | 2024-04-24 00:32:54 -0400 | [diff] [blame] | 22 | ADD --chmod=644 \ |
| 23 | https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/zed/storpool.py \ |
| 24 | /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 25 | |
Mohammed Naser | 19c6c8a | 2024-04-18 01:47:10 -0400 | [diff] [blame] | 26 | FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 27 | RUN <<EOF bash -xe |
| 28 | apt-get update -qq |
| 29 | apt-get install -qq -y --no-install-recommends \ |
vexxhost-bot | 1cc5994 | 2024-05-20 16:04:26 +0200 | [diff] [blame] | 30 | ceph-common lsscsi nvme-cli python3-rados python3-rbd qemu-block-extra qemu-utils sysfsutils udev util-linux |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 31 | apt-get clean |
| 32 | rm -rf /var/lib/apt/lists/* |
| 33 | EOF |
| 34 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl |
| 35 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |