Difference between revisions of "Remote Experiment Controller"
Line 1: | Line 1: | ||
− | + | = Pre-requisites = | |
− | + | * OpenJDK 11 | |
+ | * Docker | ||
+ | * docker-compose | ||
− | + | = Pre-Steps = | |
− | |||
− | |||
− | + | ||
− | + | experiments/create_pendulum_experiment.sh | |
− | + | echo "experiment name - Name of the experiment (e.g. worldpendulum)" | |
− | + | echo "experiment ID - ID of the experiment (e.g. ELAB_WORLD_PENDULUM_CCVALG)" | |
+ | echo "Location - Pendulum location (e.g. Faro)" | ||
+ | echo "(optional) Video Location - URL to the video (e.g. rtsp://elabmc.ist.utl.pt:80/wp_ccvalg.sdp)" | ||
+ | echo "(optional) Serial Device - Pendulum serial device location at the server (e.g. /dev/ttyS0)" | ||
+ | |||
+ | = Build = | ||
+ | |||
+ | Follow the next steps to build and run at target environments. | ||
+ | |||
+ | '''build_pendulum.properties:''' | ||
+ | |||
+ | * '''lab.list''': Name of the laboratories to build, comma (,) delimited. | ||
+ | * '''pendulum.experiment.list''': Name of the experiment(s) to build, comma (,) delimited. | ||
+ | * '''pendulum.multicast.controller.host''': Hostname where Multicast controller is going to be installed | ||
+ | * '''pendulum.multicast.controller.port''': Listen CORBA port used to recieve connections from Hardware Server, rec.web and rec.client (default: 9001) | ||
+ | * '''pendulum.rec.multicastcontroller.jmxremote.port''': Listen JMX port used to recieve connections from rec.web (default: 25001) | ||
+ | * '''install.dir''': Base directory where Multicast Controller is going to be installed (default: /home/elab) | ||
+ | * '''deployment.subdir''': Sub directory where Multicast Controller is going to be installed (default: /rec-deployment) | ||
+ | |||
+ | == Local == | ||
+ | |||
+ | This option only serves testing purposes (install locally a clean environment), Pendulum Hardware Server is not used at this step. | ||
+ | |||
+ | $ mvn clean package -Dmaven.test.skip=true -Djarsigner.alias="REC" -Dbuild.environment=local | ||
+ | |||
+ | Be aware that a virtual experiment is started by this step, not the pendulum! | ||
+ | |||
+ | |||
+ | == Production == | ||
+ | |||
+ | |||
Build the project: | Build the project: |
Revision as of 10:14, 12 April 2021
Pre-requisites
- OpenJDK 11
- Docker
- docker-compose
Pre-Steps
experiments/create_pendulum_experiment.sh echo "experiment name - Name of the experiment (e.g. worldpendulum)" echo "experiment ID - ID of the experiment (e.g. ELAB_WORLD_PENDULUM_CCVALG)" echo "Location - Pendulum location (e.g. Faro)" echo "(optional) Video Location - URL to the video (e.g. rtsp://elabmc.ist.utl.pt:80/wp_ccvalg.sdp)" echo "(optional) Serial Device - Pendulum serial device location at the server (e.g. /dev/ttyS0)"
Build
Follow the next steps to build and run at target environments.
build_pendulum.properties:
- lab.list: Name of the laboratories to build, comma (,) delimited.
- pendulum.experiment.list: Name of the experiment(s) to build, comma (,) delimited.
- pendulum.multicast.controller.host: Hostname where Multicast controller is going to be installed
- pendulum.multicast.controller.port: Listen CORBA port used to recieve connections from Hardware Server, rec.web and rec.client (default: 9001)
- pendulum.rec.multicastcontroller.jmxremote.port: Listen JMX port used to recieve connections from rec.web (default: 25001)
- install.dir: Base directory where Multicast Controller is going to be installed (default: /home/elab)
- deployment.subdir: Sub directory where Multicast Controller is going to be installed (default: /rec-deployment)
Local
This option only serves testing purposes (install locally a clean environment), Pendulum Hardware Server is not used at this step.
$ mvn clean package -Dmaven.test.skip=true -Djarsigner.alias="REC" -Dbuild.environment=local
Be aware that a virtual experiment is started by this step, not the pendulum!
Production
Build the project:
$ mvn clean package -Dmaven.test.skip=true -Djarsigner.alias="REC" -Dbuild.environment=pendulum
Steps to build and deploy ReC at target environments:
- TODO Steps
Steps to connect to IST environment:
- TODO Steps