-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (38 loc) · 1.89 KB
/
Dockerfile
File metadata and controls
40 lines (38 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
# SPDX-License-Identifier: GPL-3.0-or-later
FROM ghcr.io/vexxhost/openstack-venv-builder:main@sha256:3c9397b807eb33e855ce5712d5af8e52ddab417585d2db2ec8e7f35756f36501 AS build
RUN \
--mount=type=bind,from=horizon,source=/,target=/src/horizon,readwrite \
--mount=type=bind,from=designate-dashboard,source=/,target=/src/designate-dashboard,readwrite \
--mount=type=bind,from=heat-dashboard,source=/,target=/src/heat-dashboard,readwrite \
--mount=type=bind,from=ironic-ui,source=/,target=/src/ironic-ui,readwrite \
--mount=type=bind,from=magnum-ui,source=/,target=/src/magnum-ui,readwrite \
--mount=type=bind,from=manila-ui,source=/,target=/src/manila-ui,readwrite \
--mount=type=bind,from=neutron-vpnaas-dashboard,source=/,target=/src/neutron-vpnaas-dashboard,readwrite \
--mount=type=bind,from=octavia-dashboard,source=/,target=/src/octavia-dashboard,readwrite <<EOF bash -xe
uv pip 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 \
pymemcache
EOF
FROM ghcr.io/vexxhost/python-base:main@sha256:aff68355bf7c3ea231a3a69ba7f422cb26e7149e705e5bfa3d7f784224a51843
RUN \
groupadd -g 42424 horizon && \
useradd -u 42424 -g 42424 -M -d /var/lib/horizon -s /usr/sbin/nologin -c "Horizon User" horizon && \
mkdir -p /etc/horizon /var/log/horizon /var/lib/horizon /var/cache/horizon && \
chown -Rv horizon:horizon /etc/horizon /var/log/horizon /var/lib/horizon /var/cache/horizon
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