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