blob: 7144e7062c450fe456295c3d2464ac1e54c8936a [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
Rico Lin94ee76e2024-07-09 22:15:51 +080010ARG NEUTRON_VPNAAS_GIT_REF=45d63e1e9adc2b3ce4e3b2b5728744f99ea70a97
11ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas.git#${NEUTRON_VPNAAS_GIT_REF} /src/neutron-vpnaas
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040012RUN git -C /src/neutron-vpnaas fetch --unshallow
Mohammed Nasere40c3e82024-07-04 02:52:34 -040013ARG POLICY_SERVER_GIT_REF=4a86b140d5510823a8fb8a59137feddf5b111b26
14ADD --keep-git-dir=true https://github.com/vexxhost/neutron-policy-server.git#${POLICY_SERVER_GIT_REF} /src/neutron-policy-server
15RUN git -C /src/neutron-policy-server fetch --unshallow
Oleksandr K99dc2fe2024-07-12 00:36:52 +020016ARG LOG_PASER_GIT_REF=3bc113d9fc0eb3264feca5900e550f6ed15503c2
17ADD --keep-git-dir=true https://github.com/vexxhost/neutron-ovn-network-logging-parser.git#${LOG_PASER_GIT_REF} /src/neutron-ovn-network-logging-parser
18RUN git -C /src/neutron-ovn-network-logging-parser fetch --unshallow
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040019COPY patches/neutron /patches/neutron
20RUN git -C /src/neutron apply --verbose /patches/neutron/*
21RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
22pip3 install \
23 --constraint /upper-constraints.txt \
24 /src/neutron \
Mohammed Nasere40c3e82024-07-04 02:52:34 -040025 /src/neutron-vpnaas \
Oleksandr K99dc2fe2024-07-12 00:36:52 +020026 /src/neutron-policy-server \
27 /src/neutron-ovn-network-logging-parser
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040028EOF
29
Mohammed Naser19c6c8a2024-04-18 01:47:10 -040030FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040031RUN <<EOF bash -xe
32apt-get update -qq
33apt-get install -qq -y --no-install-recommends \
34 conntrack dnsmasq dnsmasq-utils ebtables ethtool haproxy iproute2 ipset iptables iputils-arping jq keepalived lshw openvswitch-switch strongswan uuid-runtime
35apt-get clean
36rm -rf /var/lib/apt/lists/*
37EOF
38COPY --from=build --link /var/lib/openstack /var/lib/openstack