openlvc / portico

Portico is an open source, cross-platform, fully supported HLA RTI implementation. Designed with modularity and flexibility in mind, Portico is a production-grade RTI for the Simulation and Training Community, so come say hi!
http://www.porticoproject.org
151 stars 81 forks source link

Docker Centralized RTI Executive Process #307

Open icemagno opened 4 years ago

icemagno commented 4 years ago

Want to have fun with PorticoRTI in Docker?

The current Portico code (presented as version 2.2.0) was containerized in a Docker image called projetoarcanjo/portico.

You can have a simple Portico environment (no Federates running, just Portico) by invoking

docker run --name portico --hostname=portico \
-v /etc/localtime:/etc/localtime:ro \
-it projetoarcanjo/portico:2.2.0

This will present you with a shell terminal inside a Docker container with Portico installed at /opt/portico-2.2.0/. Have fun.

You can have a ready-to-use version of Centralized RTI Executive Process (shortcut to rtiexec.sh) using the image projetoarcanjo/rtiexec

docker run --name rtiexec --hostname=rtiexec \
-v /etc/localtime:/etc/localtime:ro \
-p 35001:8080 \
-d projetoarcanjo/rtiexec:1.0

This will give you a running RTIEXEC container.

now go to your docker host address: http://<YOUR_DOCKER_HOST_ADDRESS>:35001/swagger-ui.html

And you will be able to stop it and run it again using your browser.

This is highly experimental and I'm not sure if the current Portico code is safe to execute.

PLEASE DO NOT ASK ANYTHING HERE Here is the official Portico issue tracker and not related to this. If you have any question go to https://github.com/icemagno/portico-wrapper/issues

As soon as I can I will publish a basic web based Federate so you can controll it using your browser. You won't need to be face-to-face to your Federation keyboard anymore.

Capturar2 Capturar

icemagno commented 4 years ago

A test WEB federate ( RESTfull ). It does nothing for now. No publish/subscribe or send anything. Just join the Federation. It have a REST endpoint to show how to manipulate the aspects of a Federate using the browser. The endpoint is an example and do nothing too, but you could do anything you have doing now using your keyboard. No more SSH! Just point your browser to your Federate's address and controll it.

http://<YOUR_DOCKER_HOST_ADDRESS>:35002/swagger-ui.html

docker run --name testfederate --hostname=testfederate \
-v /etc/localtime:/etc/localtime:ro \
-p 35002:8080 \
-e FEDERATION_NAME=TestFederation \
-e FEDERATE_NAME=federateTest001 \
-d projetoarcanjo/testfederate:1.0

Capturar3

The Docker CRTI found it!

Capturar4

bergtwvd commented 4 years ago

👍

Have a look at https://github.com/hlacontainers/about also. The Pitch and MaK variants are used for some time now.

icemagno commented 4 years ago

👍

Have a look at https://github.com/hlacontainers/about also. The Pitch and MaK variants are used for some time now.

Cool! I'll give a look.

Ackbar1 commented 2 years ago

Hello @icemagno, I'm trying to set up a web federate and would like to know how did you manage to set this spring boot? I can't find any web related functionalities in the Portico Javadoc (probably outdated). If you have any information about web functionalities with portico I'd be thankful.

icemagno commented 2 years ago

Hi. Thanks for the contact.

I'm away from my computer now but as soon as I get back in home I'll ask you in details and send you my code.

[]

Carlos Abreu Brazilian Navy

Em qua., 31 de ago. de 2022 05:42, Ackbar1 @.***> escreveu:

Hello @icemagno https://github.com/icemagno, I'm trying to set up a web federate and would like to know how did you manage to set this spring boot? I can't find any web related functionalities in the Portico Javadoc (probably outdated). If you have any information about web functionalities with portico I'd be thankful.

— Reply to this email directly, view it on GitHub https://github.com/openlvc/portico/issues/307#issuecomment-1232645237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7PWGDBKEOGEJDIXDLT6RTV34LILANCNFSM4NALXNMQ . You are receiving this because you were mentioned.Message ID: @.***>