-
Notifications
You must be signed in to change notification settings - Fork 159
/
postBuild
executable file
·22 lines (19 loc) · 1.15 KB
/
postBuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
echo -e "[Display]\njobs_columns_width = {'fqid': 4, 'status': 10, 'name': 10, 'subjobs': 10, 'application': 12, 'backend': 11, 'actualCE': 20, 'comment': 10, 'subjob status': 9}" > ${HOME}/.gangarc
echo -e "[File_Associations]\nfallback_command = cat" >> ${HOME}/.gangarc
echo -e "[defaults_Docker]\nmounts = {}" >> ${HOME}/.gangarc
echo -e "[TextShell_IPython]\ncolourscheme = Linux" >> ${HOME}/.gangarc
echo -e "[Configuration]\nRUNTIME_PATH = GangaTutorial" >> ${HOME}/.gangarc
yes | ganga -g
cat <<EOF >> templates.py
j = JobTemplate(name='Fedora', application=Executable(exe='cat', args=['/etc/redhat-release']), virtualization=Docker(image='fedora:latest'))
j = JobTemplate(name='Primes', application=PrimeFactorizer(), inputdata = PrimeTableDataset(table_id_lower=1, table_id_upper=1))
j = JobTemplate(name='Weather', application=Executable(exe='weather', args=['MEL']), virtualization=Docker(image='uegede/weather:1.2'))
EOF
yes | ganga templates.py
wget -O udocker.tmp https://raw.githubusercontent.com/indigo-dc/udocker/master/udocker.py
sed -e "s/split('-')/split('+')/" udocker.tmp > udocker
rm udocker.tmp
chmod u+rx ./udocker
./udocker install