blob: b2c6713f0844b3845071817e81e8c586c0e9afa2 [file] [log] [blame]
vexxhost-bota62d9312024-06-01 21:13:59 +02001# SPDX-License-Identifier: Apache-2.0
vexxhost-bot4a8f0912024-06-28 22:34:23 +02002# Atmosphere-Rebuild-Time: 2024-06-28T12:14:26Z
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04003
Mohammed Naseraa212e62025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naser19c6c8a2024-04-18 01:47:10 -04005ARG RELEASE
6
Mohammed Naseraa212e62025-01-15 16:49:44 -05007FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04008ARG MANILA_GIT_REF=c0fc23a39f87629b59fae7bbf46f70e3e1b459cd
9ADD --keep-git-dir=true https://opendev.org/openstack/manila.git#${MANILA_GIT_REF} /src/manila
10RUN git -C /src/manila fetch --unshallow
11COPY patches/manila /patches/manila
12RUN git -C /src/manila apply --verbose /patches/manila/*
13RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
14pip3 install \
15 --constraint /upper-constraints.txt \
16 /src/manila
17EOF
18
Mohammed Naseraa212e62025-01-15 16:49:44 -050019FROM ${REGISTRY}/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040020RUN <<EOF bash -xe
21apt-get update -qq
22apt-get install -qq -y --no-install-recommends \
23 iproute2 openvswitch-switch
24apt-get clean
25rm -rf /var/lib/apt/lists/*
26EOF
27COPY --from=build --link /var/lib/openstack /var/lib/openstack