Skip to content

Pass environment variables from cog.yaml to build stage#2060

Closed
okapusta wants to merge 1 commit intoreplicate:mainfrom
okapusta:cog-yaml-build-env
Closed

Pass environment variables from cog.yaml to build stage#2060
okapusta wants to merge 1 commit intoreplicate:mainfrom
okapusta:cog-yaml-build-env

Conversation

@okapusta
Copy link

@okapusta okapusta commented Nov 17, 2024

Allow to pass environment variables to docker file template during build

Example:

build:
  gpu: false
  environment:
    - ENV_VAR_NAME=some_value
    - SOME_OTHER_VAR=anything_goes
predict: predict.py:Predictor

Signed-off-by: Oskar Kapusta <kapuszasty@gmail.com>
@mcam10
Copy link

mcam10 commented Jan 6, 2025

This would be good to have... IMO..

@AlexanderKozhevin
Copy link

wassup

@bfirsh
Copy link
Member

bfirsh commented Mar 5, 2026

Thank you for the contribution! This was added in #2274 at the top level, then #2807 moves it into the build: section.

@bfirsh bfirsh closed this Mar 5, 2026
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.

4 participants