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

Passing docker arguments with no cpk run arguments #12

Open
afdaniele opened this issue Sep 7, 2021 · 0 comments
Open

Passing docker arguments with no cpk run arguments #12

afdaniele opened this issue Sep 7, 2021 · 0 comments
Assignees

Comments

@afdaniele
Copy link
Owner

afdaniele commented Sep 7, 2021

It looks like passing docker args to cpk run is not possible when no cpk run args are passed.

The following happens in the basic example:

BAD:

$ cpk run -- -e DEBUG=1
cpk|    INFO : CPK - Code Packaging toolKit - v0.2.5
usage: cpk run [-h] [-C WORKDIR] [-H MACHINE] [-a {arm64v8,arm32v7,amd64}] [-f] [-v] [--debug] [-n NAME] [-c CMD] [--pull] [--force-pull] [--no-multiarch] [-M [MOUNT]] [--keep] [-L LAUNCHER] [-A ARGUMENTS] [--runtime RUNTIME] [-X] [-s] [--net NETWORK_MODE] [-d] [--tag TAG]
               [docker_args [docker_args ...]]
cpk run: error: unrecognized arguments: -e

GOOD:

$ cpk run --debug  -- -e DEBUG=1
cpk|    INFO : CPK - Code Packaging toolKit - v0.2.5
cpk|   DEBUG : Argument 'parsed.machine' not set. Creating machine from environment.
cpk|    INFO : Project workspace: /home/afdaniele/code/afdaniele/cpk/examples/basic

... ALL GOOD HERE ...
@afdaniele afdaniele self-assigned this Sep 7, 2021
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