blob: 37897688370ab9775955bd66df7e53bb3bbbd80c [file] [log] [blame]
vexxhost-bota62d9312024-06-01 21:13:59 +02001# SPDX-License-Identifier: Apache-2.0
2# Atmosphere-Rebuild-Time: 2024-05-30T20:29:01Z
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04003
Mohammed Naser19c6c8a2024-04-18 01:47:10 -04004ARG RELEASE
5
6FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Mohammed Naser1f689d82024-06-01 15:14:04 -04007ARG NEUTRON_GIT_REF=ece6a9a7acab20d5a39f54784427258d54b72cfd
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04008ADD --keep-git-dir=true https://opendev.org/openstack/neutron.git#${NEUTRON_GIT_REF} /src/neutron
9RUN git -C /src/neutron fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020010ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas.git#unmaintained/zed /src/neutron-vpnaas
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040011RUN git -C /src/neutron-vpnaas fetch --unshallow
12COPY patches/neutron /patches/neutron
13RUN git -C /src/neutron apply --verbose /patches/neutron/*
14RUN --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 Naser19c6c8a2024-04-18 01:47:10 -040021FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -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