blob: 97746dc91b1200de530428989f4e7ac67820e8d2 [file] [log] [blame]
vexxhost-bot6e0e4362024-06-01 21:24:08 +02001# SPDX-License-Identifier: Apache-2.0
2# Atmosphere-Rebuild-Time: 2024-05-30T20:29:01Z
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 Naser5d4d4412024-05-24 19:36:35 +02007ARG HORIZON_GIT_REF=b467683b1ed2aab4e38fe2cb2ac7ae5500e5d5c0
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/horizon.git#${HORIZON_GIT_REF} /src/horizon
9RUN git -C /src/horizon fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020010ADD --keep-git-dir=true https://opendev.org/openstack/designate-dashboard.git#stable/2023.1 /src/designate-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040011RUN git -C /src/designate-dashboard fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020012ADD --keep-git-dir=true https://opendev.org/openstack/heat-dashboard.git#stable/2023.1 /src/heat-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040013RUN git -C /src/heat-dashboard fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020014ADD --keep-git-dir=true https://opendev.org/openstack/ironic-ui.git#stable/2023.1 /src/ironic-ui
Mohammed Naserda994232024-04-13 12:34:01 -040015RUN git -C /src/ironic-ui fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020016ADD --keep-git-dir=true https://opendev.org/openstack/magnum-ui.git#stable/2023.1 /src/magnum-ui
Mohammed Naserda994232024-04-13 12:34:01 -040017RUN git -C /src/magnum-ui fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020018ADD --keep-git-dir=true https://opendev.org/openstack/manila-ui.git#stable/2023.1 /src/manila-ui
Mohammed Naserda994232024-04-13 12:34:01 -040019RUN git -C /src/manila-ui fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020020ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas-dashboard.git#stable/2023.1 /src/neutron-vpnaas-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040021RUN git -C /src/neutron-vpnaas-dashboard fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020022ADD --keep-git-dir=true https://opendev.org/openstack/octavia-dashboard.git#stable/2023.1 /src/octavia-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040023RUN git -C /src/octavia-dashboard fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020024ADD --keep-git-dir=true https://opendev.org/openstack/senlin-dashboard.git#stable/2023.1 /src/senlin-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040025RUN git -C /src/senlin-dashboard fetch --unshallow
Mohammed Naser482faf52024-06-17 14:24:53 -040026COPY patches/horizon /patches/horizon
27RUN git -C /src/horizon apply --verbose /patches/horizon/*
Mohammed Naserda994232024-04-13 12:34:01 -040028COPY patches/magnum-ui /patches/magnum-ui
29RUN git -C /src/magnum-ui apply --verbose /patches/magnum-ui/*
30RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
31pip3 install \
32 --constraint /upper-constraints.txt \
33 /src/designate-dashboard \
34 /src/heat-dashboard \
35 /src/horizon \
36 /src/ironic-ui \
37 /src/magnum-ui \
38 /src/manila-ui \
39 /src/neutron-vpnaas-dashboard \
40 /src/octavia-dashboard \
41 /src/senlin-dashboard \
42 pymemcache
43EOF
44
Mohammed Naserd30f18d2024-04-17 01:20:43 -040045FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040046RUN <<EOF bash -xe
47apt-get update -qq
48apt-get install -qq -y --no-install-recommends \
49 apache2 gettext libapache2-mod-wsgi-py3
50apt-get clean
51rm -rf /var/lib/apt/lists/*
52EOF
53COPY --from=build --link /var/lib/openstack /var/lib/openstack