blob: 4eb1d5cd666529a13607521f2f7f9e735a4f729a [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 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
Mohammed Nasere40c3e82024-07-04 02:52:34 -040012ARG POLICY_SERVER_GIT_REF=4a86b140d5510823a8fb8a59137feddf5b111b26
13ADD --keep-git-dir=true https://github.com/vexxhost/neutron-policy-server.git#${POLICY_SERVER_GIT_REF} /src/neutron-policy-server
14RUN git -C /src/neutron-policy-server fetch --unshallow
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040015COPY patches/neutron /patches/neutron
16RUN git -C /src/neutron apply --verbose /patches/neutron/*
17RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
18pip3 install \
19 --constraint /upper-constraints.txt \
20 /src/neutron \
Mohammed Nasere40c3e82024-07-04 02:52:34 -040021 /src/neutron-vpnaas \
22 /src/neutron-policy-server
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040023EOF
24
Mohammed Naser19c6c8a2024-04-18 01:47:10 -040025FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040026RUN <<EOF bash -xe
27apt-get update -qq
28apt-get install -qq -y --no-install-recommends \
29 conntrack dnsmasq dnsmasq-utils ebtables ethtool haproxy iproute2 ipset iptables iputils-arping jq keepalived lshw openvswitch-switch strongswan uuid-runtime
30apt-get clean
31rm -rf /var/lib/apt/lists/*
32EOF
33COPY --from=build --link /var/lib/openstack /var/lib/openstack