forked from MariaDB/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate environment variables during checkconfig
Both BuildBot environments now run in containers so we can get rid of the default="" in << os.getenv >>. To check that the variable is defined and to prevent typos use os.environ which would raise a key error if the variable does not exist. PORT is a special case, because it's defined in docker-compose generation script and is not present in the .env and .env.dev files, hence the hardcoded value in the validation script. Keep os.environ for PORT because the correct value will be passed by docker-compose during initialization (docker-compose --env-file .env up)
- Loading branch information
1 parent
90195f6
commit 8bc94d5
Showing
13 changed files
with
149 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.