mattermost / mattermost-gitpod-config

5 stars 10 forks source link

Move server environment variables from .gitpod.yml to .gitpod.Dockerfile #44

Closed mickmister closed 1 year ago

mickmister commented 1 year ago

The below environment variables are known ahead of time, and thus can be placed in .gitpod.Dockerfile instead of .gitpod.yml. This allows all spawned terminals to access these environment variables.

https://github.com/mattermost/mattermost-gitpod-config/blob/561fb2102697b912b1690bbb47cc12e8f03e02a4/.gitpod.yml#L49-L63

We can set environment variables using the ENV keyword:

ENV ENABLED_DOCKER_SERVICES="postgres minio"

https://docs.docker.com/engine/reference/builder/#env