adapted deployment configs
This commit is contained in:
parent
7fd0e0f8ec
commit
18978aef20
3 changed files with 4 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ services:
|
||||||
- APPLICATION_ROOT=/
|
- APPLICATION_ROOT=/
|
||||||
- CAIMIRA_CALCULATOR_PREFIX=/calculator-cern
|
- CAIMIRA_CALCULATOR_PREFIX=/calculator-cern
|
||||||
- CAIMIRA_THEME=caimira/apps/templates/cern
|
- CAIMIRA_THEME=caimira/apps/templates/cern
|
||||||
- EXTRA_PAGES=[{"url":"/about","filename":"about", "is_root":True},{"url":"/user-guide","filename":"userguide","is_root":False}]
|
- EXTRA_PAGES=[{"url_path":"/about","filename":"about.html.j2"},{"url_path":"/calculator/user-guide","filename":"userguide.html.j2"}]
|
||||||
user: ${CURRENT_UID}
|
user: ${CURRENT_UID}
|
||||||
|
|
||||||
calculator-open-app:
|
calculator-open-app:
|
||||||
|
|
@ -30,7 +30,7 @@ services:
|
||||||
- APP_NAME=calculator-app
|
- APP_NAME=calculator-app
|
||||||
- APPLICATION_ROOT=/
|
- APPLICATION_ROOT=/
|
||||||
- CAIMIRA_CALCULATOR_PREFIX=/calculator-open
|
- CAIMIRA_CALCULATOR_PREFIX=/calculator-open
|
||||||
- EXTRA_PAGES=[{"url":"/about","filename":"about", "is_root":True},{"url":"/user-guide","filename":"userguide","is_root":False}]
|
- EXTRA_PAGES=[{"url_path":"/about","filename":"about.html.j2"},{"url_path":"/calculator/user-guide","filename":"userguide.html.j2"}]
|
||||||
user: ${CURRENT_UID}
|
user: ${CURRENT_UID}
|
||||||
|
|
||||||
auth-service:
|
auth-service:
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@
|
||||||
key: ARVE_API_KEY
|
key: ARVE_API_KEY
|
||||||
name: arve-api
|
name: arve-api
|
||||||
- name: EXTRA_PAGES
|
- name: EXTRA_PAGES
|
||||||
value: '[{"url":"/about","filename":"about","is_root":True},{"url":"/user-guide","filename":"userguide","is_root":False}]'
|
value: '[{"url_path":"/about","filename":"about.html.j2"},{"url_path":"/calculator/user-guide","filename":"userguide.html.j2"}]'
|
||||||
image: '${PROJECT_NAME}/calculator-app'
|
image: '${PROJECT_NAME}/calculator-app'
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
|
||||||
|
|
@ -374,6 +374,7 @@ def make_app(
|
||||||
|
|
||||||
# Any extra generic page must be declared in the env. variable "EXTRA_PAGES"
|
# Any extra generic page must be declared in the env. variable "EXTRA_PAGES"
|
||||||
extra_pages: typing.Union[str, typing.List] = os.environ.get('EXTRA_PAGES', [])
|
extra_pages: typing.Union[str, typing.List] = os.environ.get('EXTRA_PAGES', [])
|
||||||
|
pages: typing.List = []
|
||||||
try:
|
try:
|
||||||
pages = ast.literal_eval(extra_pages) # type: ignore
|
pages = ast.literal_eval(extra_pages) # type: ignore
|
||||||
except (SyntaxError, ValueError):
|
except (SyntaxError, ValueError):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue