blob: 4036373d98a284ed1777ea74c016a0291e5fabce [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
Mohammed Nasere786d962024-06-26 01:08:34 -04002# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
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 Naser05795e52024-06-26 07:52:19 -04007ARG MANILA_GIT_REF=f0c33dec536708c940f2010d11dd8c778c28d2e7
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
10RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
11pip3 install \
12 --constraint /upper-constraints.txt \
13 /src/manila
14EOF
15
Mohammed Naserd30f18d2024-04-17 01:20:43 -040016FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040017RUN <<EOF bash -xe
18apt-get update -qq
19apt-get install -qq -y --no-install-recommends \
20 iproute2 openvswitch-switch
21apt-get clean
22rm -rf /var/lib/apt/lists/*
23EOF
24COPY --from=build --link /var/lib/openstack /var/lib/openstack