Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
Mohammed Naser | 142dc92 | 2024-06-20 21:19:25 -0400 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-17T13:34:17Z |
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 |
Mohammed Naser | 142dc92 | 2024-06-20 21:19:25 -0400 | [diff] [blame] | 7 | ARG MANILA_GIT_REF=ed585103e4c26478b60b397b0bb064b50dc1acb5 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 8 | ADD --keep-git-dir=true https://opendev.org/openstack/manila.git#${MANILA_GIT_REF} /src/manila |
| 9 | RUN git -C /src/manila fetch --unshallow |
Mohammed Naser | 142dc92 | 2024-06-20 21:19:25 -0400 | [diff] [blame] | 10 | COPY patches/manila /patches/manila |
| 11 | RUN git -C /src/manila apply --verbose /patches/manila/* |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 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/manila |
| 16 | EOF |
| 17 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 18 | FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 19 | RUN <<EOF bash -xe |
| 20 | apt-get update -qq |
| 21 | apt-get install -qq -y --no-install-recommends \ |
| 22 | iproute2 openvswitch-switch |
| 23 | apt-get clean |
| 24 | rm -rf /var/lib/apt/lists/* |
| 25 | EOF |
| 26 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |