-
Notifications
You must be signed in to change notification settings - Fork 267
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
Support ARG / passing in arguments for image building. #7250
Comments
### What does this PR do? Build arguments is already built-in to podman desktop API. This adds to the UI the ability to pass in build arguments. ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes containers#7250 ### How to test this PR? <!-- Please explain steps to verify the functionality, do not forget to provide unit/component tests --> - [X] Tests are covering the bug fix or the new feature 1. Build a Containerfile with ARG 2. See it fail (normal) 3. In build args, add your arg (ex. foo=bar) 4. It will now build and pass.
### What does this PR do? Build arguments is already built-in to podman desktop API. This adds to the UI the ability to pass in build arguments. ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes containers#7250 ### How to test this PR? <!-- Please explain steps to verify the functionality, do not forget to provide unit/component tests --> - [X] Tests are covering the bug fix or the new feature 1. Build a Containerfile with ARG 2. See it fail (normal) 3. In build args, add your arg (ex. foo=bar) 4. It will now build and pass. Signed-off-by: Charlie Drage <charlie@charliedrage.com>
### What does this PR do? Build arguments is already built-in to podman desktop API. This adds to the UI the ability to pass in build arguments. ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes containers#7250 ### How to test this PR? <!-- Please explain steps to verify the functionality, do not forget to provide unit/component tests --> - [X] Tests are covering the bug fix or the new feature 1. Build a Containerfile with ARG 2. See it fail (normal) 3. In build args, add your arg (ex. foo=bar) 4. It will now build and pass. Signed-off-by: Charlie Drage <charlie@charliedrage.com>
FYI created during "day of learning" while diving into container builds. |
### What does this PR do? Build arguments is already built-in to podman desktop API. This adds to the UI the ability to pass in build arguments. ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes containers#7250 ### How to test this PR? <!-- Please explain steps to verify the functionality, do not forget to provide unit/component tests --> - [X] Tests are covering the bug fix or the new feature 1. Build a Containerfile with ARG 2. See it fail (normal) 3. In build args, add your arg (ex. foo=bar) 4. It will now build and pass. Signed-off-by: Charlie Drage <charlie@charliedrage.com>
### What does this PR do? Build arguments is already built-in to podman desktop API. This adds to the UI the ability to pass in build arguments. ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes containers#7250 ### How to test this PR? <!-- Please explain steps to verify the functionality, do not forget to provide unit/component tests --> - [X] Tests are covering the bug fix or the new feature 1. Build a Containerfile with ARG 2. See it fail (normal) 3. In build args, add your arg (ex. foo=bar) 4. It will now build and pass. Signed-off-by: Charlie Drage <charlie@charliedrage.com>
### What does this PR do? Build arguments is already built-in to podman desktop API. This adds to the UI the ability to pass in build arguments. ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes containers#7250 ### How to test this PR? <!-- Please explain steps to verify the functionality, do not forget to provide unit/component tests --> - [X] Tests are covering the bug fix or the new feature 1. Build a Containerfile with ARG 2. See it fail (normal) 3. In build args, add your arg (ex. foo=bar) 4. It will now build and pass. Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Red Hat partner looking for this feature to support bootc integration. CC: @rrbanda |
Hi Evan! I created a PR for this that should be merged in shortly: #7253 Let me know of any other features that can help make the bootc integration more seamless, I've been doing some back-and-forth between the extension & podman desktop to see where we can improve. Thanks! |
### What does this PR do? Build arguments is already built-in to podman desktop API. This adds to the UI the ability to pass in build arguments. ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes #7250 ### How to test this PR? <!-- Please explain steps to verify the functionality, do not forget to provide unit/component tests --> - [X] Tests are covering the bug fix or the new feature 1. Build a Containerfile with ARG 2. See it fail (normal) 3. In build args, add your arg (ex. foo=bar) 4. It will now build and pass. Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Is your feature request related to a problem? Please describe
In my Containerfile I have the following:
However.. I cannot using any form of argument / passing in arguments for Podman Desktop, I have to resort to using the CLI (ex:
podman build -t foobar --build-arg-file build-args.conf .
)Describe the solution you'd like
We should be able to pass in argument file (under advanced section maybe?) or a ARGS to the build image section of podman desktop.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: