Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

job type docker-image to support custom entrypoint #349

Open
epDHowwD opened this issue Aug 15, 2019 · 0 comments
Open

job type docker-image to support custom entrypoint #349

epDHowwD opened this issue Aug 15, 2019 · 0 comments

Comments

@epDHowwD
Copy link
Contributor

epDHowwD commented Aug 15, 2019

Is your feature request related to a problem? Please describe.
I'd like to set a custom entrypoint for job-type docker-image.

Describe the solution you'd like

{
    "version": 1,
    "jobs": [{
        "type": "docker-image",
        "name": "test",
        "image": "some-advanced-dockerimage-with-defined-entrypoint",
        "entrypoint": ["/infrabox/context/infrabox/test/entrypoint.sh"],
        "command": ["echo", "hello world"],
        "resources": { "limits": { "cpu": 1, "memory": 1024 } }
    }]
}

Workaround
Define a Dockerfile for job-type docker instead:

FROM some-advanced-dockerimage-with-defined-entrypoint
ENTRYPOINT ["/infrabox/context/infrabox/test/entrypoint.sh"]
CMD  ["echo", "hello world"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant