0
|
1 Bootstrap: docker
|
|
2 From: debian:bullseye
|
|
3
|
|
4 %post
|
|
5 sed '2s/main/main contrib non-free/' -i /etc/apt/sources.list
|
|
6 apt-get -y update
|
|
7 apt-get -y install locales
|
|
8 sed '/en_GB.UTF/s/# //;/en_US.UTF/s/# //' -i /etc/locale.gen
|
|
9 locale-gen
|
|
10 apt-get -y install apt-utils python3 python3-pip isal less git ack procps psmisc
|
|
11 apt-get -y install man-db gdb gcc
|
|
12
|
|
13 pip3 install six isal regex chardet stopit urllib3 cryptography
|
|
14
|
|
15 sed '8i\
|
|
16 if [ "$WSHARED" ]\
|
|
17 then\
|
|
18 PATH="$WSHARED/bin:$PATH"\
|
|
19 fi\
|
|
20 ' -i /etc/profile
|
|
21
|
|
22 # REMEMBER to check cc/etc/profile has $WSHARED/bin in front of PATH
|
|
23
|
|
24 %environment
|
|
25 export WSHARED=/work/dc007/dc007/shared
|
|
26 export HOME=/work/dc007/dc007/$(whoami)
|
|
27 export SINGULARITY_SHELL=/usr/bin/bash
|
|
28 export LESSOPEN="| /usr/bin/lesspipe %s";
|
|
29 export LESSCLOSE="/usr/bin/lesspipe %s %s";
|
|
30 export PS1='\[\033[1m\]sing\[\033[0m\]<\!>: '
|
|
31
|
|
32 %runscript
|
|
33 #!/bin/bash
|
|
34 if [ -f $WSHARED/.bash_extras ]
|
|
35 then
|
|
36 . $WSHARED/.bash_extras
|
|
37 fi
|
|
38
|
|
39 cd $HOME
|
|
40
|
|
41 if [ $# -gt 0 ]
|
|
42 then
|
|
43 exec "$@"
|
|
44 else
|
|
45 exec /bin/bash -ls
|
|
46 fi
|