blob: 58e8a654359f56eaa8e66022850fd1767316e884 [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
15FROM registry.atmosphere.dev/library/openstack-venv-builder:zed AS build
16ARG HORIZON_GIT_REF=5de40f9b222608d35c5a0919117259e966217a86
17ADD --keep-git-dir=true https://opendev.org/openstack/horizon.git#${HORIZON_GIT_REF} /src/horizon
18RUN git -C /src/horizon fetch --unshallow
19ADD --keep-git-dir=true https://opendev.org/openstack/designate-dashboard.git#stable/zed /src/designate-dashboard
20RUN git -C /src/designate-dashboard fetch --unshallow
21ADD --keep-git-dir=true https://opendev.org/openstack/heat-dashboard.git#stable/zed /src/heat-dashboard
22RUN git -C /src/heat-dashboard fetch --unshallow
23ADD --keep-git-dir=true https://opendev.org/openstack/ironic-ui.git#stable/zed /src/ironic-ui
24RUN git -C /src/ironic-ui fetch --unshallow
25ADD --keep-git-dir=true https://opendev.org/openstack/magnum-ui.git#stable/zed /src/magnum-ui
26RUN git -C /src/magnum-ui fetch --unshallow
27ADD --keep-git-dir=true https://opendev.org/openstack/manila-ui.git#stable/zed /src/manila-ui
28RUN git -C /src/manila-ui fetch --unshallow
29ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas-dashboard.git#stable/zed /src/neutron-vpnaas-dashboard
30RUN git -C /src/neutron-vpnaas-dashboard fetch --unshallow
31ADD --keep-git-dir=true https://opendev.org/openstack/octavia-dashboard.git#stable/zed /src/octavia-dashboard
32RUN git -C /src/octavia-dashboard fetch --unshallow
33ADD --keep-git-dir=true https://opendev.org/openstack/senlin-dashboard.git#stable/zed /src/senlin-dashboard
34RUN git -C /src/senlin-dashboard fetch --unshallow
35COPY patches/horizon /patches/horizon
36RUN git -C /src/horizon apply --verbose /patches/horizon/*
37COPY patches/magnum-ui /patches/magnum-ui
38RUN git -C /src/magnum-ui apply --verbose /patches/magnum-ui/*
39RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
40pip3 install \
41 --constraint /upper-constraints.txt \
42 /src/designate-dashboard \
43 /src/heat-dashboard \
44 /src/horizon \
45 /src/ironic-ui \
46 /src/magnum-ui \
47 /src/manila-ui \
48 /src/neutron-vpnaas-dashboard \
49 /src/octavia-dashboard \
50 /src/senlin-dashboard
51EOF
52
53FROM registry.atmosphere.dev/library/openstack-python-runtime:zed
54RUN <<EOF bash -xe
55apt-get update -qq
56apt-get install -qq -y --no-install-recommends \
57 apache2 gettext libapache2-mod-wsgi-py3
58apt-get clean
59rm -rf /var/lib/apt/lists/*
60EOF
61COPY --from=build --link /var/lib/openstack /var/lib/openstack