Is it possible to expose the drone executor container port to host (to developer machine)? I googled this and someone had already asked this but in that reply the Drone team said that you don’t need to expose ports. But I have a use case that needs to expose the drone executor container port to host. I’ll explain the use case briefly. I have a Clojure app that has a lot of dependencies and fixtures that needs to be set-up correctly so that all unit tests can be run in drone. Occasionally there are some issues and usually a Clojure developer examines these issues using a Clojure REPL - connect your favorite Clojure editor to a nrepl server (its port) running inside the application running in development mode.
So, my Clojure app is running in a container on top of the drone executor container. I can expose the app container nrepl port and I can see the port in the drone executor container. But I need to expose this port further from the drone executor container to my developer machine host in order to be able to connect to the nrepl server.
So, I’m looking for something like Drone port forwarding (e.g. compared to Kubernetes port forwarding, Use Port Forwarding to Access Applications in a Cluster | Kubernetes ). Is this possible?
I really do love Drone, the container architecture, the ability to define the steps using bash etc, but I haven’t found a solution to be able to connect to the nrepl server inside applications running in the drone pipeline. For other CI server architectures (e.g. Jenkins) this is very simple.