leopardslab / leopardslab/dunner

Ability to use dunner with docker images whose entrypoint is defined

Open
#175 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement gsoc-2019
Dominant language
Go
Stars
72
Forks
40
PR merge metrics
No merged PRs in 30d

Description

For Docker images whose entrypoint is defined and are run as an executable, Dunner fails to execute commands defined in it.

Example: Goreleaser's docker file.

Dunner task file:

tasks:
  release:
    steps:
      - image: goreleaser/goreleaser
        commands:
          - ["echo", "hello"]
          - ["goreleaser", "--version"]

Running this command with dunner fails with error as:

OCI runtime exec failed: exec failed: cannot exec a container that has stopped: unknown
FATA[2019-08-26 18:39:51] docker: command execution failed with exit code 126

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with Goreleaser's Dockerfile, the shown .dunner.yaml task, and Dunner do release. Trace how Dunner starts the image and executes its commands when an entrypoint is defined. Done means both echo hello and goreleaser --version run successfully in that image.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.