Support specification of shell for Run Docker Container step (OD-706)
Neil French opened 4 years ago

Hi, Loving the project. One issue I'm running into when setting up Kaniko to build docker images is that it seems the shell the container is looking for is hardcoded to either "sh" or "cmd". There's containers that have shells at different paths, for example in Kaniko its /busybox/sh. It would be good to have the option to manually configure the shell location for this step.

For reference, I'm running builds via default kubernetes executor and without this capability, you'll see the job pod fail to start with the following error:

Error: failed to create containerd task: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "sh": executable file not found in $PATH: unknown
  • OneDev changed state to 'Closed' 4 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 4 years ago

    State changed as code fixing the issue is committed

  • OneDev changed state to 'Released' 4 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 4 years ago

    State changed as build #2600 is successful

issue 1/1
Type
New Feature
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-706
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover