-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings-template.sh
executable file
·149 lines (115 loc) · 5.04 KB
/
settings-template.sh
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/bin/bash
# -------------------------------------------------------------- #
# #
# settings for galaxy deployment script #
# USIT/UiO, 2017 #
# #
# This file contains the settings for the deployment script. #
# Many of these options are specific for galaxy.ini. Please see #
# galaxy.ini.sample for description of these. #
# #
# -------------------------------------------------------------- #
# Exit on all errors
error() {
local sourcefile=$1
local lineno=$2
echo "Error on line ${lineno} in ${sourcefile}"
exit 1
}
trap 'error "${BASH_SOURCE}" "${LINENO}"' ERR
# To ignore error from command, append this to command:
## 2>&1 || echo $?
# General settings
# ----------------
# Galaxy version (branch)
GALAXY_GIT_BRANCH=lifeportal_16.10
# Galaxy repository
uiouser=
GALAXY_GIT_REPO=https://${uiouser}@bitbucket.usit.uio.no/scm/ft/galaxy.git
# Galaxy user (for /etc/passwd)
GALAXYUSER=galaxy
GALAXYGROUP=galaxy
GALAXYUSERUID=182649
GALAXYUSERGID=70731
GALAXYUSERHOME=/home/galaxy
GALAXYTREE=/home/galaxy/galaxy
# Galaxy DB
# If left empty, local sqlite3 is used:
GALAXYDB=
GALAXYDBUSER=
GALAXYDBPASSWD=
GALAXYDBHOST=
# Galaxy.ini settings in configure_galaxy.sh
# Set to SKIP for skipping change
# ------------------------------------------
# Config file names
GALAXY_TOOL_CONF=config/tool_conf.xml.lifeportal
GALAXY_JOB_CONF=config/job_conf.xml.lifeportal
GALAXY_TOOL_DATA_TABLE_CONF=config/tool_data_table_conf.xml.lifeportal
GALAXY_DATATYPES_CONF=SKIP
# Tools and tools_data folder
GALAXY_TOOL_PATH=${GALAXYUSERHOME}/tools_lifeportal
GALAXY_TOOL_DATA_LOCAL=tool_data_lifeportal
# Tools and tools_data repository (set to "SKIP", to not use this)
GALAXY_TOOLS_REPO=https://${uiouser}@bitbucket.usit.uio.no/scm/ft/lifeportal_tool_config.git
GALAXY_TOOL_DATA_REPO=https://${uiouser}@bitbucket.usit.uio.no/scm/ft/lifeportal_tool_data.git
# Brand and public hostname
GALAXY_BRAND=Lifeportal
GALAXY_PUBLIC_HOSTNAME=lifeportal.uio.no
# When using remote authentication, this shall be set
GALAXY_LOGOUT_URL=https://${GALAXY_PUBLIC_HOSTNAME}/callback?logout=https://${GALAXY_PUBLIC_HOSTNAME}/logout
# The rest of the file is only needed when abel is mounted
# --------------------------------------------------------
# Will this server have abel mounted:
GALAXY_ABEL_MOUNT=1
# Example: GALAXY_DATABASE_DIRNAME=database_galaxy_prod01
# Must be set, when abel is mounted:
GALAXY_DATABASE_DIRNAME=
if [[ ${GALAXY_ABEL_MOUNT} != 1 ]] && [ -z ${GALAXY_DATABASE_DIRNAME} ]; then
echo Please fill out GALAXY_DATABASE_DIRNAME in settings.sh
fi
ABEL_WORK_PATH=/work/projects/galaxy/data
# Generate variables from ABEL_WORK_PATH and GALAXY_DATABASE_DIRNAME
# --------------------------------------------------------------------------------------------- #
GALAXY_DATABASE_DIRECTORY_ON_CLUSTER=${ABEL_WORK_PATH}/${GALAXY_DATABASE_DIRNAME} #
GALAXY_FILEPATH=${ABEL_WORK_PATH}/${GALAXY_DATABASE_DIRNAME}/files #
GALAXY_NEW_FILEPATH=${ABEL_WORK_PATH}/${GALAXY_DATABASE_DIRNAME}/tmp #
GALAXY_JOB_WORKING_DIRECTORY=${ABEL_WORK_PATH}/${GALAXY_DATABASE_DIRNAME}/job_working_directory #
GALAXY_CLUSTER_FILES_DIRECTORY=${ABEL_WORK_PATH}/${GALAXY_DATABASE_DIRNAME}/slurm #
GALAXY_TOOL_DATA_PATH=${ABEL_WORK_PATH}/${GALAXY_DATABASE_DIRNAME}/${GALAXY_TOOL_DATA_LOCAL} #
# --------------------------------------------------------------------------------------------- #
EXTERNAL_DBS_LINK_NAME=/home/galaxy/galaxy/lib/usit/external_dbs
EXTERNAL_DBS_PATH=/work/projects/galaxy/external_dbs
# Project admins
# --------------
# GOLD settings
# -------------
GOLD_SRC_DIRECTORY=gold-2.2.0.5
GOLD_INSTALLATION_DIRECTORY=/opt
# Must be set, when GOLD is used:
GOLDDB=
GOLDDBUSER=
GOLDDBPASSWD=
GOLDDBHOST=
# FILESENDER settings (Fill in if the "big file upload" option is enabled)
# -------------
# Must be set, when FILESENDER is used:
FILESENDERDBNAME=
FILESENDERUSER=
FILESENDERPASSWORD=
FILESENDERHOST=
FILESENDER_ADMINISTRATOR=
FILESENDER_ADMIN_EMAIL=
ABEL_FILESENDER_PATH=/work/projects/galaxy/filesender
FILESENDER_STORAGE=${ABEL_FILESENDER_PATH}/${GALAXY_PUBLIC_HOSTNAME}
FILESENDER_URL=filesender.${GALAXY_PUBLIC_HOSTNAME}
SIMPLESAMLPHP_VERSION=
ABEL_SIMPLESAML_PATH=/work/projects/galaxy/simplesaml
FILESENDER_SIMPLESAML=${ABEL_SIMPLESAML_PATH}/${GALAXY_PUBLIC_HOSTNAME}
## Certificates must be provided for the domain FILESENDER_URL
## Could be a multi-domain certificate (galaxy + filesender) or only for filesender's virt host
FILESENDER_SSL_CERTIFICATE_PATH=
FILESENDER_SSL_KEYFILE_PATH=