Mohammed Naser | 7bda44d | 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 | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | 7bda44d | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM openstack-venv-builder AS build |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -0400 | [diff] [blame] | 6 | ARG MANILA_GIT_REF=c0fc23a39f87629b59fae7bbf46f70e3e1b459cd |
| 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 |
| 9 | COPY patches/manila /patches/manila |
| 10 | RUN git -C /src/manila apply --verbose /patches/manila/* |
| 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 | 7bda44d | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 17 | FROM openstack-python-runtime |
Mohammed Naser | d28fbaf | 2024-04-08 17:15:00 -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 |