blob: 21816a54bede0a6aa190ea8f8a73bc6126e0359b [file] [log] [blame]
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04001# Copyright (c) 2024 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
Mohammed Naser19c6c8a2024-04-18 01:47:10 -040015ARG RELEASE
16
17FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040018ARG HORIZON_GIT_REF=5de40f9b222608d35c5a0919117259e966217a86
19ADD --keep-git-dir=true https://opendev.org/openstack/horizon.git#${HORIZON_GIT_REF} /src/horizon
20RUN git -C /src/horizon fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020021ADD --keep-git-dir=true https://opendev.org/openstack/designate-dashboard.git#unmaintained/zed /src/designate-dashboard
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040022RUN git -C /src/designate-dashboard fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020023ADD --keep-git-dir=true https://opendev.org/openstack/heat-dashboard.git#unmaintained/zed /src/heat-dashboard
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040024RUN git -C /src/heat-dashboard fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020025ADD --keep-git-dir=true https://opendev.org/openstack/ironic-ui.git#unmaintained/zed /src/ironic-ui
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040026RUN git -C /src/ironic-ui fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020027ADD --keep-git-dir=true https://opendev.org/openstack/magnum-ui.git#unmaintained/zed /src/magnum-ui
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040028RUN git -C /src/magnum-ui fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020029ADD --keep-git-dir=true https://opendev.org/openstack/manila-ui.git#unmaintained/zed /src/manila-ui
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040030RUN git -C /src/manila-ui fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020031ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas-dashboard.git#unmaintained/zed /src/neutron-vpnaas-dashboard
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040032RUN git -C /src/neutron-vpnaas-dashboard fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020033ADD --keep-git-dir=true https://opendev.org/openstack/octavia-dashboard.git#unmaintained/zed /src/octavia-dashboard
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040034RUN git -C /src/octavia-dashboard fetch --unshallow
Oleksandr Kb222c792024-05-20 12:57:16 +020035ADD --keep-git-dir=true https://opendev.org/openstack/senlin-dashboard.git#unmaintained/zed /src/senlin-dashboard
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040036RUN git -C /src/senlin-dashboard fetch --unshallow
37COPY patches/horizon /patches/horizon
38RUN git -C /src/horizon apply --verbose /patches/horizon/*
39COPY patches/magnum-ui /patches/magnum-ui
40RUN git -C /src/magnum-ui apply --verbose /patches/magnum-ui/*
41RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
42pip3 install \
43 --constraint /upper-constraints.txt \
44 /src/designate-dashboard \
45 /src/heat-dashboard \
46 /src/horizon \
47 /src/ironic-ui \
48 /src/magnum-ui \
49 /src/manila-ui \
50 /src/neutron-vpnaas-dashboard \
51 /src/octavia-dashboard \
52 /src/senlin-dashboard
53EOF
54
Mohammed Naser19c6c8a2024-04-18 01:47:10 -040055FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040056RUN <<EOF bash -xe
57apt-get update -qq
58apt-get install -qq -y --no-install-recommends \
59 apache2 gettext libapache2-mod-wsgi-py3
60apt-get clean
61rm -rf /var/lib/apt/lists/*
62EOF
63COPY --from=build --link /var/lib/openstack /var/lib/openstack