rwth-acis / CAE-Frontend

This repository contains code for additions to the SyncMeta frontend, needed to realize the CAE.
Other
6 stars 2 forks source link

CAE-Frontend

Docker image

This repository contains frontend application of CAE and CAE specific widgets which will accompany to Syncmeta widgets.

Usage

First build the image:

$ cd CAE-Frontend
$ docker build -t rwthacis/cae-frontend .

Then you can run the image like this:

# Application will run on port 8070 locally in Docker container however host port mapping can be changed.
# Pass necessary environment variables which is specified in the following section with '-e' flag during initialization.
docker run -e <env1>=<val1> -e <env2>=<val2> -p 8070:8070 rwthacis/cae-frontend

After container started to run, application can be accessed via http://127.0.0.1:8070

CAE Frontend is using YJS for interwidget communication, therefore it needs y-websocket-server instance. It can be started with following command:

docker run -p 1234:1234  -d rwthacis/y-websockets-server

Then, address of y-websockets-server instance need to be passed to CAE-Frontend Docker container during initialization with YJS environment variable. If websocket server is started with previous command, its address will be 127.0.0.1:1234 and this value need to be passed to CAE Frontend Docker container during initialization.

Other components of the CAE such as backend services(Model Persistence Service, Code Generation Service) and Jenkins also need to be available in order to have full fledged CAE. You can follow instructions on main CAE repo in order to make all parts available.

Following environment variables are needed to be passed to container during initialization:

Following environment variables have default values however they can be changed during initialization: