Page MenuHomePhabricator

Support passing environment variables to kokkuri's build-and-run-image
Closed, ResolvedPublic

Description

See https://gerrit.wikimedia.org/r/plugins/gitiles/wikimedia/toolhub/+/refs/heads/main/.pipeline/config.yaml for an example of a pipeline that would translate into using the .kokkuri:build-and-run-image job. That job uses buildctl with arguments --opt run-variant=true --opt entrypoint-args="${RUN_ARGUMENTS}" to build and run the image. Though we can pass arguments to the image entrypoint, there's no way to pass environment variables. Can we make that work?