Mohammed Naser | f1ac3f8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | # Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | f1ac3f8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM openstack-venv-builder AS build |
Yaguang Tang | da24e03 | 2025-02-08 13:32:54 +0800 | [diff] [blame] | 6 | ARG MANILA_GIT_REF=b4d1e6e9e6e9f77d5fb74c499badae92c271e1ba |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 7 | ADD --keep-git-dir=true https://opendev.org/openstack/manila.git#${MANILA_GIT_REF} /src/manila |
| 8 | RUN git -C /src/manila fetch --unshallow |
Mohammed Naser | 142dc92 | 2024-06-20 21:19:25 -0400 | [diff] [blame] | 9 | COPY patches/manila /patches/manila |
| 10 | RUN git -C /src/manila apply --verbose /patches/manila/* |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 11 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 12 | pip3 install \ |
| 13 | --constraint /upper-constraints.txt \ |
| 14 | /src/manila |
| 15 | EOF |
| 16 | |
Mohammed Naser | f1ac3f8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 17 | FROM openstack-python-runtime |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 18 | RUN <<EOF bash -xe |
| 19 | apt-get update -qq |
| 20 | apt-get install -qq -y --no-install-recommends \ |
| 21 | iproute2 openvswitch-switch |
| 22 | apt-get clean |
| 23 | rm -rf /var/lib/apt/lists/* |
| 24 | EOF |
| 25 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |