blob: 1f2bcb0ecd207f884390cacd1f0fae9254171245 [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 Naser5d4d4412024-05-24 19:36:35 +020018ARG HORIZON_GIT_REF=b467683b1ed2aab4e38fe2cb2ac7ae5500e5d5c0
Mohammed Naserda994232024-04-13 12:34:01 -040019ADD --keep-git-dir=true https://opendev.org/openstack/horizon.git#${HORIZON_GIT_REF} /src/horizon
20RUN git -C /src/horizon fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020021ADD --keep-git-dir=true https://opendev.org/openstack/designate-dashboard.git#stable/2023.1 /src/designate-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040022RUN git -C /src/designate-dashboard fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020023ADD --keep-git-dir=true https://opendev.org/openstack/heat-dashboard.git#stable/2023.1 /src/heat-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040024RUN git -C /src/heat-dashboard fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020025ADD --keep-git-dir=true https://opendev.org/openstack/ironic-ui.git#stable/2023.1 /src/ironic-ui
Mohammed Naserda994232024-04-13 12:34:01 -040026RUN git -C /src/ironic-ui fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020027ADD --keep-git-dir=true https://opendev.org/openstack/magnum-ui.git#stable/2023.1 /src/magnum-ui
Mohammed Naserda994232024-04-13 12:34:01 -040028RUN git -C /src/magnum-ui fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020029ADD --keep-git-dir=true https://opendev.org/openstack/manila-ui.git#stable/2023.1 /src/manila-ui
Mohammed Naserda994232024-04-13 12:34:01 -040030RUN git -C /src/manila-ui fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020031ADD --keep-git-dir=true https://opendev.org/openstack/neutron-vpnaas-dashboard.git#stable/2023.1 /src/neutron-vpnaas-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040032RUN git -C /src/neutron-vpnaas-dashboard fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020033ADD --keep-git-dir=true https://opendev.org/openstack/octavia-dashboard.git#stable/2023.1 /src/octavia-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040034RUN git -C /src/octavia-dashboard fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020035ADD --keep-git-dir=true https://opendev.org/openstack/senlin-dashboard.git#stable/2023.1 /src/senlin-dashboard
Mohammed Naserda994232024-04-13 12:34:01 -040036RUN 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