How can I add a custom shell script to the contain...
# 🤖|ask-kapa
g
@microscopic-river-74022 How can I add a custom shell script to the container running Helm in Garden?
m
Please stand by @glamorous-kangaroo-20427 as I search the knowledge base. I normally take about 15 seconds or so. :wave:
---------------------- In Garden, you can specify a custom command to run inside the container using the
tasks[].command[]
configuration key. This can be used to run a shell script inside the container. Here's an example:
Copy code
yaml
tasks:
  - command:
      - /bin/sh
      - '-c'
      - 'your-shell-script.sh'
In this example,
/bin/sh
is the shell that will be used to run the script,
-c
is a flag that tells the shell to read commands from the following string, and
your-shell-script.sh
is the shell script you want to run. Please note that the shell script should be present inside the container. If it's not, you'll need to add it to the container using Dockerfile or any other method you use to build your container. For more details, you can refer to the Garden documentation on Helm tasks (). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
message has been deleted
7 Views