blob: 99cc840e53bed8f02372e6505c64b27c8ea8ed41 [file] [log] [blame]
vexxhost-bot6e0e4362024-06-01 21:24:08 +02001# SPDX-License-Identifier: Apache-2.0
2# Atmosphere-Rebuild-Time: 2024-05-30T20:29:01Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
6FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Mohammed Naser5d4d4412024-05-24 19:36:35 +02007ARG MANILA_GIT_REF=7dbba77f8559532f46db3be24f698dbd81846279
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/manila.git#${MANILA_GIT_REF} /src/manila
9RUN git -C /src/manila fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020010COPY patches/manila /patches/manila
11RUN git -C /src/manila apply --verbose /patches/manila/*
Mohammed Naserda994232024-04-13 12:34:01 -040012RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
13pip3 install \
14 --constraint /upper-constraints.txt \
15 /src/manila
16EOF
17
Mohammed Naserd30f18d2024-04-17 01:20:43 -040018FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040019RUN <<EOF bash -xe
20apt-get update -qq
21apt-get install -qq -y --no-install-recommends \
22 iproute2 openvswitch-switch
23apt-get clean
24rm -rf /var/lib/apt/lists/*
25EOF
26COPY --from=build --link /var/lib/openstack /var/lib/openstack