Commit 1b87b376 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Integrating the encyclopedia GUI to the build.

parent daf3166f
Pipeline #77518 failed with stages
in 17 seconds
......@@ -22,7 +22,7 @@
# We use slim for the final image
FROM python:3.7-slim as final
# First built the GUI in a gui build image
# First built the GUI in the gui build image
FROM node:latest as gui_build
RUN mkdir -p /app
......@@ -34,7 +34,14 @@ COPY gui /app
RUN yarn run build
# RUN yarn run --silent react-docgen src/components --pretty > react-docgen.out
# Second, build all python stuff in a python build image
# Second, build the Encyclopedia GUI in the gui build image
RUN mkdir -p /encyclopedia
WORKDIR /encyclopedia
COPY dependencies/encyclopedia-gui/client/src /encyclopedia/src
COPY dependencies/encyclopedia-gui/client/webpack.config.js /encyclopedia/webpack.config.js
RUN webpack
# Third, build all python stuff in a python build image
FROM python:3.7-stretch as build
RUN mkdir /install
......@@ -114,6 +121,9 @@ RUN echo "copy 5"
RUN mkdir -p /app/gui
COPY --from=gui_build /app/build /app/gui/build
RUN echo "copy 6"
# copy the compiled encyclopedia gui code
COPY --from=gui_build /encyclopedia/bundle.js /app/dependencies/encyclopedia-gui/client/client/bundle.js
RUN echo "copy 7"
RUN mkdir -p /app/.volumes/fs
RUN useradd -ms /bin/bash nomad
Subproject commit 6c0daf9b15c61909dc5f9e0ad68b64dc673dc155
Subproject commit 8cb78e54b065ebce91a7f67931afa2e7f0a6c961
# Copyright 2018 Markus Scheidgen
# 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
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an"AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.
from flask import Blueprint
import os.path
gui_folder = os.path.abspath(os.path.join(
os.path.dirname(__file__), '../../gui/dependencies/encyclopedia-gui/client'))
blueprint = Blueprint('gui_encyclopedia', __name__, static_url_path='/', static_folder=gui_folder)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment