Skip to content

Conversation

pavanvidem
Copy link
Member

It is implemented as an option for the serve command. It can also be enabled by default if it is fine.

@pavanvidem
Copy link
Member Author

Here it is. Thanks @bernt-matthias

Copy link
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working this out. I would make this the default with an option to disable interactive tools, planemo is for development, I don't think there's any harm in enabling ITs by default. However I would attempt binding a random gxit port, get_free_port in planemo.network_util can help you there.

properties.update(
dict(
interactivetools_enable="True",
interactivetools_map="database/interactivetools_map.sqlite",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
interactivetools_map="database/interactivetools_map.sqlite",

i wouldn't specify default values

if kwds.get("enable_gxits", True):
properties.update(
dict(
interactivetools_enable="True",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
interactivetools_enable="True",
interactivetools_enable="true",

interactivetools_enable="True",
interactivetools_map="database/interactivetools_map.sqlite",
galaxy_infrastructure_url="http://localhost:8080",
interactivetools_upstream_proxy="False",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
interactivetools_upstream_proxy="False",
interactivetools_upstream_proxy="false",

dict(
interactivetools_enable="True",
interactivetools_map="database/interactivetools_map.sqlite",
galaxy_infrastructure_url="http://localhost:8080",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to template this with the actual port

Copy link
Member Author

@pavanvidem pavanvidem Oct 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used the {template_args['port']}

interactivetools_map="database/interactivetools_map.sqlite",
galaxy_infrastructure_url="http://localhost:8080",
interactivetools_upstream_proxy="False",
interactivetools_proxy_host="localhost:4002",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use get_free_port to find a random port on the host

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used and tested locally with get_free_port and it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants