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

The docker image "always" prints 'Unknown Arguments' #1382

Open
CodeReaper opened this issue Nov 11, 2024 · 0 comments
Open

The docker image "always" prints 'Unknown Arguments' #1382

CodeReaper opened this issue Nov 11, 2024 · 0 comments

Comments

@CodeReaper
Copy link

I have tried using docker compose with fixed commands, using an entry point and even an .sourcery.yml config file. Likewise with docker run ... commands.

The only working commands I have found are --help and --version. So the following command does what it is supposed to:

docker run --platform linux/x86_64 --rm -it -v `pwd`:`pwd` -w `pwd` ghcr.io/krzysztofzablocki/sourcery:latest sourcery --version

The following commands behave like they have been giving unknown options.

docker run --platform linux/x86_64 --rm -it -v `pwd`:`pwd` -w `pwd` ghcr.io/krzysztofzablocki/sourcery:latest sourcery --sources Sourcery-Example/Sourcery-Example/ --templates Sourcery-Example/Templates/ --output Sourcery-Example/CodeGenerated/

docker run --platform linux/x86_64 --rm -it -v `pwd`:`pwd` -w `pwd` ghcr.io/krzysztofzablocki/sourcery:latest sourcery

docker run --platform linux/x86_64 --rm -it -v `pwd`:`pwd` -w `pwd` ghcr.io/krzysztofzablocki/sourcery:latest bash
# and then run this in the bash shell
sourcery --sources Sourcery-Example/Sourcery-Example/ --templates Sourcery-Example/Templates/ --output Sourcery-Example/CodeGenerated/

... and outputs this:

Unknown Arguments: sourcery

// help text omitted

Note that I have to include the --platform linux/x86_64 to allow docker to run the image on ARM.

Am I doing something wrong?

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