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

Allow options when building and using an image instead of a Dockerfile #922

Open
Roemer opened this issue Oct 25, 2024 · 0 comments
Open
Assignees
Labels
feature-request New feature or request

Comments

@Roemer
Copy link

Roemer commented Oct 25, 2024

There is a build.options property that allows adding additional command line arguments to the Docker command while building. For example:

{
    "build": {
        "dockerfile": "Dockerfile",
        "options": [
            "--add-host=host.docker.internal:host-gateway"
        ]
    },
    "features": {
        ...
    }
}

This works great. But often the base is just an image and features are just installed while building. So there would be the following:

{
    "image": "debian:11",
    "build": {
        "options": [
            "--add-host=host.docker.internal:host-gateway"
        ]
    },
    "features": {
        ...
    }
}

This unfortunately does not work as image and build are not allowed together. It would be great if either the optionswould work withimageor therunArgs` or a separate property would exist to pass additional command line options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants