-
Notifications
You must be signed in to change notification settings - Fork 6
/
default.env
89 lines (75 loc) · 3.96 KB
/
default.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# -------
# Cowbird
# -------
# All env in this default.env can be overridden by env.local.
# All env in this default.env must NOT depend on any other env. If they do, they
# must use single quotes to avoid early expansion before overrides in env.local
# are applied and must be added to the list of DELAYED_EVAL.
# add any new variables not already in 'VARS' or 'OPTIONAL_VARS' that must be replaced in templates here
# single quotes are important in below list to keep variable names intact until 'birdhouse-compose' parses them
EXTRA_VARS='
${COWBIRD_VERSION}
${COWBIRD_MONGODB_VERSION}
${COWBIRD_MONGODB_HOST}
${COWBIRD_MONGODB_PORT}
${COWBIRD_LOG_LEVEL}
${USER_WORKSPACES}
${PUBLIC_WORKSPACE_WPS_OUTPUTS_SUBDIR}
${COWBIRD_PUBLIC_WORKSPACE_WPS_OUTPUTS_SUBDIR}
${SECURE_DATA_PROXY_NAME}
'
# extend the original 'VARS' from 'birdhouse/birdhouse-compose.sh' to employ them for template substitution
# adding them to 'VARS', they will also be validated in case of override of 'default.env' using 'env.local'
VARS="$VARS $EXTRA_VARS"
# =====================
# Cowbird Configuration
# =====================
export COWBIRD_VERSION="2.4.0"
# default release of the MongoDB version employed by Cowbird
# note that MongoDB>=5.0 is REQUIRED for Cowbird>=2.0.0
export COWBIRD_MONGODB_VERSION=5.0
# either reuse the mongo instance provided by the core docker-compose
# or use another service (e.g.: dedicated mongodb)
# the 'host' is the mongo 'service' inter-docker network connection in this case
# the selected 'mongo' service should be member of a network of same name
export COWBIRD_MONGODB_HOST=cowbird-mongodb
export COWBIRD_MONGODB_PORT=27017
# Logging level for Cowbird
# DEBUG: logs detailed information about operations/settings (not for production, could leak sensitive data)
# INFO: reports useful information, not leaking details about settings
# WARN: only potential problems/unexpected results reported
export COWBIRD_LOG_LEVEL=INFO
# Subdirectory of BIRDHOUSE_DATA_PERSIST_SHARED_ROOT containing the user workspaces used by Cowbird
export USER_WORKSPACES="user_workspaces"
# Path to the README.ipynb for welcoming and guiding new users to Jupyterhub.
# If this path is changed, users will have to restart their personal Jupyter
# server for the change to take effect.
# This file explains the workspace to the user when using Cowbird.
# Note that the variable can still be overriden by the `env.local` file.
export JUPYTERHUB_COWBIRD_README="$COMPOSE_DIR/components/cowbird/user_workspace_readme.ipynb"
export JUPYTERHUB_README="${JUPYTERHUB_README:-${JUPYTERHUB_COWBIRD_README}}"
# Subdirectory containing the hardlinks to the public WPS outputs data
# This directory will be mounted on the JupyterLab instances and is located by default
# in the ${USER_WORKSPACES} directory.
# NOTE:
# Most WPS birds do not have a concept of Public vs User-specific outputs.
# These birds will employ the same WPS output directory for all jobs, regardless of the user running it.
# By default, WPS output files will be stored under '${BIRDHOUSE_WPS_OUTPUTS_DIR}/<bird>', and must all be considered 'public'.
# Some WPS-capable birds such as Weaver do have a concept of Public/User-context for WPS outputs.
# In this case, files under '${BIRDHOUSE_WPS_OUTPUTS_DIR}/<bird>' should have an additional nesting
# with 'public' and 'users/{user_id}'. Variable 'PUBLIC_WORKSPACE_WPS_OUTPUTS_SUBDIR' will be shared for such cases.
export PUBLIC_WORKSPACE_WPS_OUTPUTS_SUBDIR=public
export COWBIRD_PUBLIC_WORKSPACE_WPS_OUTPUTS_SUBDIR='${PUBLIC_WORKSPACE_WPS_OUTPUTS_SUBDIR}/wps_outputs'
# Default name for the secure-data-proxy service from Magpie.
export SECURE_DATA_PROXY_NAME="secure-data-proxy"
COWBIRD_MONGODB_DATA_DIR='${BIRDHOUSE_DATA_PERSIST_ROOT}/mongodb_cowbird_persist'
DELAYED_EVAL="
$DELAYED_EVAL
COWBIRD_MONGODB_DATA_DIR
COWBIRD_PUBLIC_WORKSPACE_WPS_OUTPUTS_SUBDIR
"
COMPONENT_DEPENDENCIES="
$COMPONENT_DEPENDENCIES
./components/wps_outputs-volume
./components/magpie
"