Skip to content

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

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

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

Conversation

@okapusta

@okapusta okapusta commented Nov 17, 2024

Copy link
Copy Markdown

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

mcam10 commented Jan 6, 2025

Copy link
Copy Markdown

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

@AlexanderKozhevin

Copy link
Copy Markdown

wassup

@bfirsh

bfirsh commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

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