806146e7ac
This reverts commit 2eca3bcbe0
.
Change-Id: I0c5f58c8fa1f079a467d9926d252a4a7ff8140b3
51 lines
2.1 KiB
Docker
51 lines
2.1 KiB
Docker
# Copyright (c) 2020 VEXXHOST, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
FROM docker.io/opendevorg/python-builder as builder
|
|
COPY bindep.txt /tmp/src/bindep.txt
|
|
RUN assemble horizon==18.3.1 \
|
|
python-memcached \
|
|
heat-dashboard==2.0.0 \
|
|
designate-dashboard==9.0.0 \
|
|
neutron-vpnaas-dashboard==1.6.0 \
|
|
octavia-dashboard==4.0.0 \
|
|
sahara-dashboard==11.0.0 \
|
|
magnum-ui==6.0.0
|
|
|
|
FROM docker.io/opendevorg/uwsgi-base
|
|
COPY --from=builder /output/ /output
|
|
RUN /output/install-from-bindep
|
|
WORKDIR /usr/local/lib/python3.7/site-packages/openstack_dashboard
|
|
RUN ln -s /etc/horizon/local_settings.py local/local_settings.py && \
|
|
cp ../designatedashboard/enabled/*.py enabled/ && \
|
|
cp ../heat_dashboard/enabled/*.py enabled/ && \
|
|
cp ../magnum_ui/enabled/*.py enabled/ && \
|
|
cp ../neutron_vpnaas_dashboard/enabled/*.py enabled/ && \
|
|
cp ../octavia_dashboard/enabled/*.py enabled/ && \
|
|
cp ../sahara_dashboard/enabled/*.py enabled/
|
|
COPY manage.py .
|
|
RUN python manage.py compilemessages && \
|
|
python manage.py collectstatic --no-input && \
|
|
python manage.py compress --force && \
|
|
chown 1001 -R local/ ../static
|
|
COPY *.svg ../static/dashboard/img/
|
|
COPY *.ico ../static/dashboard/img/
|
|
EXPOSE 8000
|
|
ENV UWSGI_HTTP_SOCKET=:8000 \
|
|
UWSGI_WSGI_FILE=/usr/local/lib/python3.7/site-packages/openstack_dashboard/wsgi.py \
|
|
UWSGI_CHECK_STATIC=/usr/local/lib/python3.7/site-packages/static/ \
|
|
UWSGI_STATIC_MAP="/static=/usr/local/lib/python3.7/site-packages/static/" \
|
|
UWSGI_MIME_FILE="/etc/mime.types"
|