Closed mickmister closed 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.
.gitpod.Dockerfile
.gitpod.yml
https://github.com/mattermost/mattermost-gitpod-config/blob/561fb2102697b912b1690bbb47cc12e8f03e02a4/.gitpod.yml#L49-L63
We can set environment variables using the ENV keyword:
ENV
ENV ENABLED_DOCKER_SERVICES="postgres minio"
https://docs.docker.com/engine/reference/builder/#env
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:https://docs.docker.com/engine/reference/builder/#env