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 environment variables is not documented #138

Open
fblampe opened this issue Mar 31, 2022 · 0 comments
Open

Passing environment variables is not documented #138

fblampe opened this issue Mar 31, 2022 · 0 comments

Comments

@fblampe
Copy link

fblampe commented Mar 31, 2022

The documentation sadly doesn't explain how to set environment variables for the containers that are created by az batch job create using e.g. a repeatTask.

By searching the Python code of the extension in this repo, I found out that environment variables can be configured as follows:

"repeatTask": {
    "commandLine": "env",
    "containerSettings": {
        "imageName": "alpine:latest"
    },
    "environmentSettings": [
        {
            "name": "VAR_1",
            "value": "someValue"
        },
        {
            "name": "VAR_2",
            "value": "anotherValue"
        }
    ]
}

It would be much easier to find out how to do this, if it was explained somewhere in the (otherwise quite detailed) docs in this repo. If it's not something specific to this extension, a link describing it would have already helped a lot, since web searches also didn't turn it up for me.

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