International-Data-Spaces-Association / IDS-testbed

Apache License 2.0
24 stars 33 forks source link

gnome-terminal not working #43

Closed sebplorenz closed 2 years ago

sebplorenz commented 2 years ago

When the install script runs the following line:

gnome-terminal --title "CONNECTOR B" -e "docker run --publish 8081:8081 --name connectorb --network=broker-localhost_default dscb"

it opens a new terminal window that immediately closes. The container is not started up. If I replace the -e option with -- , then the terminal stays open but shows the following error message:

Failed to execve: No such file or directory.

The workaround from #39 works. I would propose that the install.sh script should not open a new terminal window but use the -d option for starting the containers. This might fix #42 too.

aitorcelaya commented 2 years ago

Thank you for your issue.

The initial idea was to let the users see how the components behave by looking at the terminal. I will look into removing the gnome-terminals and showing the users how to take a look look at the logs if they choose to.

SebastianOpriel commented 2 years ago

In my case I needed to use sudo apt install gnome-terminal instead of sudo apt-get install gnome-terminal

But due to other problems (docker commands are not started), I would recommend to get rid of gnome-terminal and execute directly docker commands in a detached mode, e.g.: docker run -d --publish 8080:8080 --name connectora --network=broker-localhost_default dsca

aitorcelaya commented 2 years ago

The new install script has removed the use of gnome-terminal as is now launching the components in detatched mode. This should be fixed with PR 41.

jfernandezsqs commented 2 years ago

The PR that fix this issue has been merged. Therefore, I close the issue.