Newer
Older
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
Bootstrap: docker
From: eicweb.phy.anl.gov:4567/whit/image_recipes/root_base_broadwell:latest
%help
Help me. I'm in the container.
%labels
Maintainer "Whitney Armstrong"
Version v1.0
%environment
export PYTHONPATH=/usr/local/lib:$PYTHONPATH
%post -c /bin/bash
echo "Hello from post"
source /usr/local/bin/thisroot.sh
export PYTHONPATH=/usr/local/lib:$PYTHONPATH
git clone https://gitlab+deploy-token-1:FaNA-Yg4s7hpjvWPZnq8@eicweb.phy.anl.gov/upsilon/Pcsim.git
mkdir Pcsim/build && cd Pcsim/build
cmake ../. -DCOMPILE_FOR_BROADWELL:BOOL=ON
make -j20
make install
%runscript
echo "Hello from runscirpt"
echo "Rooooar!"
echo "Arguments received: $*"
exec echo "$@"
# derp=
# if [ -p /dev/stdin ]; then
# # If we want to read the input line by line
# while IFS= read line; do
# #echo "Line: ${line}"
# if [ -z ${derp} ]; then
# derp="${line}"
# else
# derp="${derp}\n${line}"
# fi
# done
# fi
# /bin/bash <<EOF
# source /usr/local/bin/geant4.sh
# echo -e ${derp} | bubble_chamber $@
#EOF
# #exec /usr/local/bin/run_bubble_sim "$@"