blob: 3b160dee66fdb34ee2a0b91d2d15dd263686834c [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 Naseraa212e62025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naser19c6c8a2024-04-18 01:47:10 -04005ARG RELEASE
6
Mohammed Naseraa212e62025-01-15 16:49:44 -05007FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build
Mohammed Naser1f689d82024-06-01 15:14:04 -04008ARG NEUTRON_GIT_REF=ece6a9a7acab20d5a39f54784427258d54b72cfd
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04009ADD --keep-git-dir=true https://opendev.org/openstack/neutron.git#${NEUTRON_GIT_REF} /src/neutron
10RUN git -C /src/neutron fetch --unshallow
Rico Lin94ee76e2024-07-09 22:15:51 +080011ARG NEUTRON_VPNAAS_GIT_REF=45d63e1e9adc2b3ce4e3b2b5728744f99ea70a97
12ADD --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 -040013RUN git -C /src/neutron-vpnaas fetch --unshallow
Mohammed Naser8374fa42024-12-20 15:00:16 -050014ARG NETWORKING_BAREMETAL_GIT_REF=fc8ddc5f68eba645239e5faa3c370dab5cc94bc9
15ADD --keep-git-dir=true https://opendev.org/openstack/networking-baremetal.git#${NETWORKING_BAREMETAL_GIT_REF} /src/networking-baremetal
16RUN git -C /src/networking-baremetal fetch --unshallow
vexxhost-bot74cbb732024-08-22 17:14:17 -040017ARG POLICY_SERVER_GIT_REF=85f47edbcf66aaf3a289dc3ae76191adce91018f
Mohammed Nasere40c3e82024-07-04 02:52:34 -040018ADD --keep-git-dir=true https://github.com/vexxhost/neutron-policy-server.git#${POLICY_SERVER_GIT_REF} /src/neutron-policy-server
19RUN git -C /src/neutron-policy-server fetch --unshallow
okozachenko1203f31813d2025-01-16 00:35:57 +110020ARG LOG_PASER_GIT_REF=9bc923c1294864ec709c538ba5c309065ef710d5
Oleksandr K99dc2fe2024-07-12 00:36:52 +020021ADD --keep-git-dir=true https://github.com/vexxhost/neutron-ovn-network-logging-parser.git#${LOG_PASER_GIT_REF} /src/neutron-ovn-network-logging-parser
22RUN git -C /src/neutron-ovn-network-logging-parser fetch --unshallow
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040023COPY patches/neutron /patches/neutron
24RUN git -C /src/neutron apply --verbose /patches/neutron/*
25RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
26pip3 install \
27 --constraint /upper-constraints.txt \
28 /src/neutron \
Mohammed Nasere40c3e82024-07-04 02:52:34 -040029 /src/neutron-vpnaas \
Mohammed Naser8374fa42024-12-20 15:00:16 -050030 /src/networking-baremetal \
Oleksandr K99dc2fe2024-07-12 00:36:52 +020031 /src/neutron-policy-server \
32 /src/neutron-ovn-network-logging-parser
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040033EOF
34
Mohammed Naseraa212e62025-01-15 16:49:44 -050035FROM ${REGISTRY}/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040036RUN <<EOF bash -xe
37apt-get update -qq
38apt-get install -qq -y --no-install-recommends \
39 conntrack dnsmasq dnsmasq-utils ebtables ethtool haproxy iproute2 ipset iptables iputils-arping jq keepalived lshw openvswitch-switch strongswan uuid-runtime
40apt-get clean
41rm -rf /var/lib/apt/lists/*
42EOF
43COPY --from=build --link /var/lib/openstack /var/lib/openstack