blob: c2c63f2bc60e3830bd0af5aa9c79bf85bcac94bc [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
Mohammed Naserd30f18d2024-04-17 01:20:43 -040015ARG RELEASE
16
17FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Mohammed Naserda994232024-04-13 12:34:01 -040018ARG HORIZON_GIT_REF=3f1f1d46e6e47a3dbe46fb023fe69ff25d6a601b
19ADD --keep-git-dir=true https://opendev.org/openstack/horizon.git#${HORIZON_GIT_REF} /src/horizon
20RUN git -C /src/horizon fetch --unshallow
21ADD --keep-git-dir=true https://opendev.org/openstack/designate-dashboard.git#master /src/designate-dashboard
22RUN git -C /src/designate-dashboard fetch --unshallow
23ADD --keep-git-dir=true https://opendev.org/openstack/heat-dashboard.git#master /src/heat-dashboard
24RUN git -C /src/heat-dashboard fetch --unshallow
25ADD --keep-git-dir=true https://opendev.org/openstack/ironic-ui.git#master /src/ironic-ui
26RUN git -C /src/ironic-ui fetch --unshallow
27ADD --keep-git-dir=true https://opendev.org/openstack/magnum-ui.git#master /src/magnum-ui
28RUN git -C /src/magnum-ui fetch --unshallow
29ADD --keep-git-dir=true https://opendev.org/openstack/manila-ui.git#master /src/manila-ui
30RUN git -C /src/manila-ui fetch --unshallow
31ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas-dashboard.git#master /src/neutron-vpnaas-dashboard
32RUN git -C /src/neutron-vpnaas-dashboard fetch --unshallow
33ADD --keep-git-dir=true https://opendev.org/openstack/octavia-dashboard.git#master /src/octavia-dashboard
34RUN git -C /src/octavia-dashboard fetch --unshallow
35ADD --keep-git-dir=true https://opendev.org/openstack/senlin-dashboard.git#master /src/senlin-dashboard
36RUN git -C /src/senlin-dashboard fetch --unshallow
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 \
51 pymemcache
52EOF
53
Mohammed Naserd30f18d2024-04-17 01:20:43 -040054FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040055RUN <<EOF bash -xe
56apt-get update -qq
57apt-get install -qq -y --no-install-recommends \
58 apache2 gettext libapache2-mod-wsgi-py3
59apt-get clean
60rm -rf /var/lib/apt/lists/*
61EOF
62COPY --from=build --link /var/lib/openstack /var/lib/openstack