Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 1 | # 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 Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 15 | ARG RELEASE |
| 16 | |
| 17 | FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 18 | ARG HORIZON_GIT_REF=3f1f1d46e6e47a3dbe46fb023fe69ff25d6a601b |
| 19 | ADD --keep-git-dir=true https://opendev.org/openstack/horizon.git#${HORIZON_GIT_REF} /src/horizon |
| 20 | RUN git -C /src/horizon fetch --unshallow |
| 21 | ADD --keep-git-dir=true https://opendev.org/openstack/designate-dashboard.git#master /src/designate-dashboard |
| 22 | RUN git -C /src/designate-dashboard fetch --unshallow |
| 23 | ADD --keep-git-dir=true https://opendev.org/openstack/heat-dashboard.git#master /src/heat-dashboard |
| 24 | RUN git -C /src/heat-dashboard fetch --unshallow |
| 25 | ADD --keep-git-dir=true https://opendev.org/openstack/ironic-ui.git#master /src/ironic-ui |
| 26 | RUN git -C /src/ironic-ui fetch --unshallow |
| 27 | ADD --keep-git-dir=true https://opendev.org/openstack/magnum-ui.git#master /src/magnum-ui |
| 28 | RUN git -C /src/magnum-ui fetch --unshallow |
| 29 | ADD --keep-git-dir=true https://opendev.org/openstack/manila-ui.git#master /src/manila-ui |
| 30 | RUN git -C /src/manila-ui fetch --unshallow |
| 31 | ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas-dashboard.git#master /src/neutron-vpnaas-dashboard |
| 32 | RUN git -C /src/neutron-vpnaas-dashboard fetch --unshallow |
| 33 | ADD --keep-git-dir=true https://opendev.org/openstack/octavia-dashboard.git#master /src/octavia-dashboard |
| 34 | RUN git -C /src/octavia-dashboard fetch --unshallow |
| 35 | ADD --keep-git-dir=true https://opendev.org/openstack/senlin-dashboard.git#master /src/senlin-dashboard |
| 36 | RUN git -C /src/senlin-dashboard fetch --unshallow |
| 37 | COPY patches/magnum-ui /patches/magnum-ui |
| 38 | RUN git -C /src/magnum-ui apply --verbose /patches/magnum-ui/* |
| 39 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 40 | pip3 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 \ |
| 51 | pymemcache |
| 52 | EOF |
| 53 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 54 | FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 55 | RUN <<EOF bash -xe |
| 56 | apt-get update -qq |
| 57 | apt-get install -qq -y --no-install-recommends \ |
| 58 | apache2 gettext libapache2-mod-wsgi-py3 |
| 59 | apt-get clean |
| 60 | rm -rf /var/lib/apt/lists/* |
| 61 | EOF |
| 62 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |