-
Notifications
You must be signed in to change notification settings - Fork 9
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
How does one specify build ARG to docker-build ? #14
Comments
I essentially need to pass the |
It looks like this project has no support for ARG. The parser code referenced in the comments does in-fact have ARG: |
What is your use case? Can you provide a complete example? Maybe passing AFAIK, adding |
We have a generic Dockerfile that drives many images via docker-compose. ARG is a native feature to Docker and it should be supported via a testing framework such as this. |
We also need ARG support. ENV vars are ARGS are very different. ENV vars are not used when building a docker image, only ARGS are. |
Thanks. I understand the difference. Unfortunately recently I did not have a lot of time. My apologies for that. Anyway, if you do a PR, I will be happy to review it ASAP 😄 Maybe it will no be easy, IDK, but the code has a lot of comments to help you in the process. Any question you have, let me know on this issue. |
@tjbaker Have you tried using default values? I was failing to use the ARG option with the same error but then I specified a default value and it worked a treat
|
Hi, it's been two years... any chance dockerspec will support build ARGs in addition to run-time ENVs? |
If you're OK with not running any build-related tests on the build for which you need to use |
Dockerspec Version
0.5.0
Ruby Version
2.3
Platform Details
macOS
Scenario
How does one specify build ARGs that are required in the Dockerfile via the
describe docker_build()
method? I can't find any examples of passing ARG. Builds requiring passed in ARG values can not be tested as the arg won't have an appropriate value.The text was updated successfully, but these errors were encountered: