blob: 4d93b1491e37d433759c8438cefa548b41d1c699 [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 Naser751826a2024-06-17 22:03:21 -04007ARG NEUTRON_GIT_REF=0c9735dfa92ba7ed0694f4b50356959fa4a145f6
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/neutron.git#${NEUTRON_GIT_REF} /src/neutron
9RUN git -C /src/neutron fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020010ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas.git#stable/2023.1 /src/neutron-vpnaas
Mohammed Naserda994232024-04-13 12:34:01 -040011RUN git -C /src/neutron-vpnaas fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020012COPY patches/neutron /patches/neutron
13RUN git -C /src/neutron apply --verbose /patches/neutron/*
Mohammed Naserda994232024-04-13 12:34:01 -040014RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
15pip3 install \
16 --constraint /upper-constraints.txt \
17 /src/neutron \
18 /src/neutron-vpnaas
19EOF
20
Mohammed Naserd30f18d2024-04-17 01:20:43 -040021FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040022RUN <<EOF bash -xe
23apt-get update -qq
24apt-get install -qq -y --no-install-recommends \
25 conntrack dnsmasq dnsmasq-utils ebtables ethtool haproxy iproute2 ipset iptables iputils-arping jq keepalived lshw openvswitch-switch strongswan uuid-runtime
26apt-get clean
27rm -rf /var/lib/apt/lists/*
28EOF
29COPY --from=build --link /var/lib/openstack /var/lib/openstack