Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure docker entrypoint in Helm charts

I have the following docker-compose file and I don't get how I can set the working_dir and entrypoint in the helm deployment.yaml. Does someone have an example on how to do this?

docker-compose

version: "3.5"
services:               
    checklist:
        image: ...
        working_dir: /checklist
        entrypoint: ["dotnet", "Checklist.dll"]        
        ...
like image 237
jwillmer Avatar asked Jul 15 '19 09:07

jwillmer


Video Answer


1 Answers

Helm uses Kubernetes Deployment with a different terminology than Docker. You'll want to define:

  • command in Helm for entrypoint in Docker Compose (see this post)
  • workingDir in Helm for working_dir in Docker Compose (see this post)

For your example it would be:

...
containers:
 - name: checklist
   ...
   command: ["dotnet", "Checklist.dll"] # Docker entrypoint equivalent
   workingDir: "/checklist" # Docker working_dir equivalent
like image 92
Pierre B. Avatar answered Nov 02 '22 23:11

Pierre B.