| # Copyright (c) 2024 VEXXHOST, Inc. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| # not use this file except in compliance with the License. You may obtain |
| # a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| # License for the specific language governing permissions and limitations |
| # under the License. |
| |
| ARG RELEASE |
| |
| FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
| ARG HORIZON_GIT_REF=5de40f9b222608d35c5a0919117259e966217a86 |
| ADD --keep-git-dir=true https://opendev.org/openstack/horizon.git#${HORIZON_GIT_REF} /src/horizon |
| RUN git -C /src/horizon fetch --unshallow |
| ADD --keep-git-dir=true https://opendev.org/openstack/designate-dashboard.git#stable/zed /src/designate-dashboard |
| RUN git -C /src/designate-dashboard fetch --unshallow |
| ADD --keep-git-dir=true https://opendev.org/openstack/heat-dashboard.git#stable/zed /src/heat-dashboard |
| RUN git -C /src/heat-dashboard fetch --unshallow |
| ADD --keep-git-dir=true https://opendev.org/openstack/ironic-ui.git#stable/zed /src/ironic-ui |
| RUN git -C /src/ironic-ui fetch --unshallow |
| ADD --keep-git-dir=true https://opendev.org/openstack/magnum-ui.git#stable/zed /src/magnum-ui |
| RUN git -C /src/magnum-ui fetch --unshallow |
| ADD --keep-git-dir=true https://opendev.org/openstack/manila-ui.git#stable/zed /src/manila-ui |
| RUN git -C /src/manila-ui fetch --unshallow |
| ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas-dashboard.git#stable/zed /src/neutron-vpnaas-dashboard |
| RUN git -C /src/neutron-vpnaas-dashboard fetch --unshallow |
| ADD --keep-git-dir=true https://opendev.org/openstack/octavia-dashboard.git#stable/zed /src/octavia-dashboard |
| RUN git -C /src/octavia-dashboard fetch --unshallow |
| ADD --keep-git-dir=true https://opendev.org/openstack/senlin-dashboard.git#stable/zed /src/senlin-dashboard |
| RUN git -C /src/senlin-dashboard fetch --unshallow |
| COPY patches/horizon /patches/horizon |
| RUN git -C /src/horizon apply --verbose /patches/horizon/* |
| COPY patches/magnum-ui /patches/magnum-ui |
| RUN git -C /src/magnum-ui apply --verbose /patches/magnum-ui/* |
| RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| pip3 install \ |
| --constraint /upper-constraints.txt \ |
| /src/designate-dashboard \ |
| /src/heat-dashboard \ |
| /src/horizon \ |
| /src/ironic-ui \ |
| /src/magnum-ui \ |
| /src/manila-ui \ |
| /src/neutron-vpnaas-dashboard \ |
| /src/octavia-dashboard \ |
| /src/senlin-dashboard |
| EOF |
| |
| FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
| RUN <<EOF bash -xe |
| apt-get update -qq |
| apt-get install -qq -y --no-install-recommends \ |
| apache2 gettext libapache2-mod-wsgi-py3 |
| apt-get clean |
| rm -rf /var/lib/apt/lists/* |
| EOF |
| COPY --from=build --link /var/lib/openstack /var/lib/openstack |