-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy browser site for HCA prod as TF component of Azul (#6343)
- Loading branch information
1 parent
f1e6ed8
commit 5977f33
Showing
1 changed file
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from collections.abc import ( | ||
Mapping, | ||
) | ||
import json | ||
from typing import ( | ||
Optional, | ||
) | ||
|
||
|
||
def env() -> Mapping[str, Optional[str]]: | ||
""" | ||
Returns a dictionary that maps environment variable names to values. The | ||
values are either None or strings. String values can contain references to | ||
other environment variables in the form `{FOO}` where FOO is the name of an | ||
environment variable. See | ||
https://docs.python.org/3.11/library/string.html#format-string-syntax | ||
for the concrete syntax. These references will be resolved *after* the | ||
overall environment has been compiled by merging all relevant | ||
`environment.py` and `environment.local.py` files. | ||
Entries with a `None` value will be excluded from the environment. They | ||
can be used to document a variable without a default value in which case | ||
other, more specific `environment.py` or `environment.local.py` files must | ||
provide the value. | ||
""" | ||
return { | ||
'azul_terraform_component': 'browser', | ||
'azul_browser_sites': json.dumps({ | ||
'browser': { | ||
'zone': 'explore.data.humancellatlas.org', | ||
'domain': 'explore.data.humancellatlas.org', | ||
'project': 'ucsc/data-browser', | ||
'branch': 'ucsc/hca/prod', | ||
'tarball_name': 'hca', | ||
'tarball_path': 'out', | ||
'real_path': '' | ||
} | ||
}) | ||
} |