blob: e97e6d3080c491b156eaa3ad30ea83415102aefa [file] [log] [blame]
vexxhost-bot6e0e4362024-06-01 21:24:08 +02001# SPDX-License-Identifier: Apache-2.0
vexxhost-bot65e04a22024-06-26 15:46:55 +02002# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
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
Rico Lin53d34452024-06-28 05:43:46 +080010ARG NEUTRON_VPNAAS_GIT_REF=25a6800815a8592df57f81cf310c8a6fd78e0b70
11ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas.git#${NEUTRON_VPNAAS_GIT_REF} /src/neutron-vpnaas
Mohammed Naserda994232024-04-13 12:34:01 -040012RUN git -C /src/neutron-vpnaas fetch --unshallow
vexxhost-bot395b2482024-08-22 14:40:17 -040013ARG POLICY_SERVER_GIT_REF=85f47edbcf66aaf3a289dc3ae76191adce91018f
Mohammed Naser68896022024-07-03 13:04:34 -040014ADD --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 K829dfe52024-07-12 00:43:20 +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 Naser5d4d4412024-05-24 19:36:35 +020019COPY patches/neutron /patches/neutron
20RUN git -C /src/neutron apply --verbose /patches/neutron/*
Mohammed Naserda994232024-04-13 12:34:01 -040021RUN --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 Naser68896022024-07-03 13:04:34 -040025 /src/neutron-vpnaas \
Oleksandr K829dfe52024-07-12 00:43:20 +020026 /src/neutron-policy-server \
27 /src/neutron-ovn-network-logging-parser
Mohammed Naserda994232024-04-13 12:34:01 -040028EOF
29
Mohammed Naserd30f18d2024-04-17 01:20:43 -040030FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -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