Consider exec form ENTRYPOINT for Dockerfile
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- docker
- Domain
- devops
Research direction
Inspect installers/docker/Dockerfile at the ENTRYPOINT on line 25, then compare its current behavior with Docker's shell and exec forms. Verify the change by running the image with an additional command-line flag, including the motivating migration flag, and confirm that the default arguments and environment-variable handling still work.
Written by the indexing model from the issue text.
Description
The grate Dockerfile uses the shell form of ENTRYPOINT:
The shell form of ENTRYPOINT ignores any CMD or docker run command line arguments, which means that users running grate via Docker can't easily add extra command line flags to the ones that are executed by default. By contrast, Command line arguments to docker run <image> will be appended after all elements in an exec form ENTRYPOINT. As a result, switching to the exec form of ENTRYPOINT would enable users to concisely add additional flags to the normal command, with all of its arguments and reading of env vars.
As a motivating example, it would allow easily adding --warnandignoreononetimescriptchanges to enable editing already-run migrations that are under development, without the user needing to manually delete rows from the grate.ScriptsRun table.
P.S. Thanks for grate!
- Dominant language
- C#
- Stars
- 297
- Forks
- 56
- Avg merge
- 18m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from grate-devs/grate
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
grate-devs/grate#583 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
grate-devs/grate#825 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
grate-devs/grate#821 ·
-
documentation
grate-devs/grate#802 · 1 assignee ·
-
back-compat build-pipeline
grate-devs/grate#801 · 1 assignee ·
All issues in grate-devs/grate
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·