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

[Task] Dockefile to Dofigen sub-command #349

Open
taorepoara opened this issue Jan 24, 2025 · 0 comments
Open

[Task] Dockefile to Dofigen sub-command #349

taorepoara opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@taorepoara
Copy link
Member

taorepoara commented Jan 24, 2025

What should be done

Create a new CLI sub-command to generate a Dofigen configuration from a Dockerfile.

The sub-command should be parse and by default, it will parse the Dockerfile and .dockerignore of the current directory to create a dofigen.yml file in the same dir.

Here are some options for this sub-command:

  • --file or -f: the path to the Dockerfile. If the value is -, the Dockerfile data will be read from the STDIN. Default value: Dockerfile
  • --output, --out or -o: the path to the generated Dofigen configuration file. If the value is -, the Dofigen conf will be written to the STDOUT. Default value dofigen.yml
  • --language, --lang or -l: The expected output language. Value is not case sensitive and is one of yaml (yml is allowed as an alias), json and jsonc (JSON with comments). The default value is yaml

The output and language options are linked.
Here is a table of the possible values and behaviour:

output option language option Applied output Applied language
Not defined Not defined dofigen.yml yaml
dofigen.yml Not defined dofigen.yml yaml
dofigen.yaml Not defined dofigen.yaml yaml
Not defined yaml dofigen.yml yaml
Not defined yml dofigen.yml yaml
dofigen.wtf yaml dofigen.wtf yaml
dofigen.json Not defined dofigen.json jsonc
Not defined jsonc dofigen.json jsonc
Not defined json dofigen.json json

Technical recommendation

?

Ecological concerns

?

Is this task linked with any other ?

#348

@taorepoara taorepoara added the enhancement New feature or request label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant