ITEM_HOST

This commit is contained in:
mr
2025-04-01 10:07:11 +02:00
parent 752446dd40
commit 66b4a2b226
28 changed files with 87 additions and 1365 deletions

View File

@@ -1,20 +1,13 @@
# Environemnt to install flutter and build web
FROM debian:latest AS build-env
ARG HOST=${HOST:-"http://localhost:8000"}
ARG AUTH_MODE=true
# install all needed stuff
RUN apt-get update
RUN apt-get install -y curl git unzip
ARG WORKSPACE_HOST=${WORKSPACE_HOST:-"http://localhost:8000/workspace"}
ARG WORKFLOW_HOST=${WORKFLOW_HOST:-"http://localhost:8000/workflow"}
ARG ITEM_HOST=${ITEM_HOST:-"http://localhost:8000/catalog"}
ARG SCHEDULER_HOST=${SCHEDULER_HOST:-"http://localhost:8000/scheduler"}
ARG LOGS_HOST=${LOGS_HOST:-"http://localhost:8000/tools/loki"}
ARG PEER_HOST=${PEER_HOST:-"http://localhost:8000/peer"}
ARG DATACENTER_HOST=${DATACENTER_HOST:-"http://localhost:8000/datacenter"}
ARG COLLABORATIVE_AREA_HOST=${COLLABORATIVE_AREA_HOST:-"http://localhost:8000/shared"}
ARG AUTH_HOST=${AUTH_HOST:-"http://localhost:8000/auth"}
ARG AUTH_MODE=true
# define variables
ARG FLUTTER_SDK=/usr/local/flutter
ARG FLUTTER_VERSION=3.19.6
@@ -44,14 +37,8 @@ RUN flutter clean
RUN flutter pub get
RUN flutter build web \
--dart-define=AUTH_MODE=$AUTH_MODE \
--dart-define=WORKSPACE_HOST=$WORKSPACE_HOST \
--dart-define=WORKFLOW_HOST=$WORKFLOW_HOST \
--dart-define=PEER_HOST=$PEER_HOST \
--dart-define=COLLABORATIVE_AREA_HOST=$COLLABORATIVE_AREA_HOST \
--dart-define=SCHEDULER_HOST=$SCHEDULER_HOST \
--dart-define=LOGS_HOST=$LOGS_HOST \
--dart-define=ITEM_HOST=$ITEM_HOST \
--dart-define=DATACENTER_HOST=$DATACENTER_HOST
--dart-define=HOST=$HOST
# once heare the app will be compiled and ready to deploy
# use nginx to deploy