Run Script over Tunnel

You can use Tines Tunnel to connect your Run Script actions to tines-command-runner. This way, your Python code runs within your environment, can access resources in your network, and you can install custom packages.

🪄Tip

To get started, you will need:

  • A Tines Tunnel with a running tines-tunnel container in your network.

  • A running tines-command-runner container

  • The tines-tunnel container must be able to reach tines-command-runner

Once this is set up, you can configure a Run Script action to use:

Implementation for Run ScriptDocker
Use tunnel<your tunnel>
Command Runner URL (optional): URL where the tines-command-runner container can be accessed from the perspective of the tunnel container.

Example via docker run: 

docker network create tines-net

docker run -d --name tines-command-runner -p 4400:4400 --network tines-net   tines/tines-command-runner:latest

docker run -d --name tines-tunnel --env TINES_TUNNEL_SECRET="..." --network tines-net tines/tines-tunnel:latest

You can also combine the tines-tunnel docker-compose file with the tines-command-runner docker compose file.

Was this helpful?