Skip to content

feat: set extra environment variables - #3

Merged
didvc merged 1 commit into
didvc:masterfrom
sebalix:set-extra-env-vars
Aug 31, 2026
Merged

didvc merged 1 commit into
didvc:masterfrom
sebalix:set-extra-env-vars

Conversation

@sebalix

@sebalix sebalix commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

What & why

Define custom environment variables in the sandboxed environment.

Checklist

  • shellcheck ai-bwrap is clean
  • --help text and README updated together (if the CLI surface changed)
  • Verified with --dry-run (paste relevant output below if helpful)
$ ai-bwrap bash --env DOCKER_HOST=tcp://localhost:2375 --dry-run
bwrap --unshare-all [...] --setenv DOCKER_HOST tcp://localhost:2375 [...] -- /usr/bin/bash

Notes

  • KEY=VALUE is split on the first =, so VALUE can still contain a = character
  • KEY is mandatory

@didvc
didvc merged commit 1004773 into didvc:master Aug 31, 2026
@didvc

didvc commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Thanks for the contribution.

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

Successfully merging this pull request may close these issues.

2 participants