Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
Mohammed Naser | 735efe2 | 2024-06-26 23:46:25 -0400 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 4 | ARG RELEASE |
| 5 | |
| 6 | FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
Yaguang Tang | b81c949 | 2024-07-09 04:12:03 +0800 | [diff] [blame] | 7 | ARG GLANCE_GIT_REF=b5b29a0ae15d44424f04db0686328d0a01a14853 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 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 |
Mohammed Naser | 05795e5 | 2024-06-26 07:52:19 -0400 | [diff] [blame] | 10 | ADD --keep-git-dir=true https://opendev.org/openstack/glance_store.git#stable/2024.1 /src/glance_store |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 11 | RUN git -C /src/glance_store fetch --unshallow |
| 12 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 13 | pip3 install \ |
| 14 | --constraint /upper-constraints.txt \ |
| 15 | /src/glance \ |
Mohammed Naser | 87fe120 | 2024-04-29 19:48:02 -0400 | [diff] [blame] | 16 | /src/glance_store[cinder] \ |
| 17 | storpool \ |
| 18 | storpool.spopenstack |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 19 | EOF |
| 20 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 21 | FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 22 | RUN <<EOF bash -xe |
| 23 | apt-get update -qq |
| 24 | apt-get install -qq -y --no-install-recommends \ |
Oleksandr K | 4aae76e | 2024-05-19 01:24:08 +0200 | [diff] [blame] | 25 | ceph-common lsscsi nvme-cli python3-rados python3-rbd qemu-block-extra qemu-utils sysfsutils udev util-linux |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 26 | apt-get clean |
| 27 | rm -rf /var/lib/apt/lists/* |
| 28 | EOF |
| 29 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl |
| 30 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |