Replies: 1 comment
-
If I understand it correctly the main goal is to run multiple commands within the same container right. You could do something like.
This command starts a new container and then detaches the container so that it runs in the background.
This command runs the echo command inside the my-container container and outputs "Hello, world!" to the terminal. Note that you need to specify the name or ID of the container you want to execute the command in, rather than the name of the image. So you could setup your actions in a way that they run
You could create such an The reason I'm not in favor of making the Cap'n aware of the connection between different actions are the advantages the independence provides. I'm heavily looking into allow async execution of tasks. So you can run multiple Adding coupling between actions would only further impede the implementation of that feature. Don't think I just want to shut you down. If you want to further discuss this or have any other questions feel free ask them at any time. |
Beta Was this translation helpful? Give feedback.
-
I'd like to run some commands on the host and other inside a running docker container. I've currently more than 20 actions registered and if all of them run, the overhead by running the commands inside docker is a bit annoying.
Would it be possible to collect certain commands and run it in a batch at the end of the process? It's a wild idea and maybe too complex, but this is what I have in my head right now
current
captainhook.json
:new idea:
This is more like pseudo code and won't work ootb of course. The main difference would be what captainhook executes under the hood for both versions:
vs
Beta Was this translation helpful? Give feedback.
All reactions