Mercurial > hg > sif
annotate cc.def @ 9:53ef1fd47ba2 default tip
fixed one init glitch
| author | Henry S Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Mon, 12 Oct 2026 11:01:53 +0100 |
| parents | 4b78177439c3 |
| children |
| rev | line source |
|---|---|
| 0 | 1 Bootstrap: docker |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
2 From: debian:trixie |
| 0 | 3 |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
4 %files |
|
4
8bbade4dc167
version from 2024-02-22, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
3
diff
changeset
|
5 /usr/local/bin/stats /usr/local/bin |
|
8bbade4dc167
version from 2024-02-22, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
3
diff
changeset
|
6 /etc/krb5.conf /etc |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
7 |
| 0 | 8 %post |
|
1
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
9 sed 's/PS1/PSone/' -i .singularity.d/env/99-base.sh |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
10 |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
11 sed '2s/main/main contrib non-free/' -i /etc/apt/sources.list.d/debian.sources |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
12 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
13 #echo "debconf debconf/frontend select readline" | debconf-set-selections |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
14 export DEBIAN_FRONTEND=noninteractive |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
15 |
| 0 | 16 apt-get -y update |
| 17 apt-get -y install locales | |
| 18 sed '/en_GB.UTF/s/# //;/en_US.UTF/s/# //' -i /etc/locale.gen | |
| 19 locale-gen | |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
20 apt-get -y install apt-utils isal less git ack procps psmisc |
|
3
9376bcef72f5
version from 2023-11-26, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
2
diff
changeset
|
21 apt-get -y install man-db gdb emacs sqlite3 curl unzip imagemagick file rsync |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
22 apt-get -y install moreutils mercurial qpdf xsel xclip tmux xfce4-terminal |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
23 apt-get -y install default-jdk nano jq r-base |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
24 apt-get -y install libcld2-0 libcld2-dev |
|
3
9376bcef72f5
version from 2023-11-26, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
2
diff
changeset
|
25 apt-get -y install libxmu-dev libxft-dev libxaw7-dev libgdbm-dev |
|
9376bcef72f5
version from 2023-11-26, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
2
diff
changeset
|
26 apt-get -y install libgdbm-compat-dev libgmp-dev libssl-dev xbitmaps |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
27 apt-get -y install maven ant ivy autoconf libtool wget |
|
1
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
28 # do this after the above in order to |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
29 # hide the moreutils version of parallel as moreutils.parallel |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
30 apt-get -y install parallel |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
31 # Allow access to cirrus modules |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
32 apt-get -y install environment-modules |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
33 echo 'module() { eval `/usr/bin/modulecmd bash $*`; }' >> /etc/bashrc |
| 0 | 34 |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
35 apt-get -y install python3-tk python3-stopit python3-cffi python3-full |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
36 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
37 apt-get -y install python3-six python3-regex python3-chardet |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
38 apt-get -y install python3-urllib3 python3-cryptography |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
39 apt-get -y install python3-scipy python3-matplotlib python3-statsmodels |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
40 apt-get -y install python3-boto3 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
41 apt-get -y install cython3 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
42 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
43 apt-get -y install cpanminus |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
44 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
45 export PIP_BREAK_SYSTEM_PACKAGES=1 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
46 # See /usr/share/doc/python3.11/README.venv for why this may be bad |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
47 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
48 pip3 install isal |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
49 export CXXFLAGS='-std=c++98' |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
50 export CFLAGS='-Wno-narrowing' |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
51 pip3 install setuptools # there's a deb for this, but it didn't work |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
52 # for the cld2-cffi build |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
53 pip3 install cld2-cffi |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
54 unset CXXFLAGS CFLAGS |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
55 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
56 # DEPRECATION: Building 'cld2-cffi' using the legacy setup.py |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
57 # bdist_wheel mechanism, which will be removed in a future |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
58 # version. pip 25.3 will enforce this behaviour change. A possible |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
59 # replacement is to use the standardized build interface by setting |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
60 # the `--use-pep517` option, (possibly combined with |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
61 # `--no-build-isolation`), or adding a `pyproject.toml` file to the |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
62 # source tree of 'cld2-cffi'. Discussion can be found at |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
63 # https://github.com/pypa/pip/issues/6334 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
64 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
65 pip3 install surt |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
66 pip3 install idna |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
67 pip3 install pyarrow |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
68 |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
69 echo "install.packages(c('txtplot','ggplot2'))" | R BATCH --no-save |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
70 |
|
1
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
71 cd /usr/local/src |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
72 |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
73 curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
74 unzip awscliv2.zip |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
75 ./aws/install |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
76 |
|
1
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
77 git clone https://github.com/htInEdin/pdfminer.six.git |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
78 git clone https://github.com/htInEdin/pdfx.git |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
79 cd pdfminer.six |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
80 git checkout preferLoggingToWarning |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
81 cd ../pdfx |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
82 git checkout tidy_up_link_extraction |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
83 cd /usr/local/lib/python3.13/dist-packages/ |
|
1
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
84 ln -s /usr/local/src/pdfx/pdfx . |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
85 ln -s /usr/local/src/pdfminer.six/pdfminer . |
|
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
86 |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
87 cpan -u |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
88 cpanm File::Rename |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
89 |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
90 unset DEBIAN_FRONTEND PIP_BREAK_SYSTEM_PACKAGES |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
91 |
| 0 | 92 sed '8i\ |
|
8
4b78177439c3
move from work to epccfs on Cirrus
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
93 if [ "$SHARED" ]\ |
| 0 | 94 then\ |
|
8
4b78177439c3
move from work to epccfs on Cirrus
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
95 PATH="$SHARED/bin:$PATH"\ |
| 0 | 96 fi\ |
| 97 ' -i /etc/profile | |
| 98 | |
|
8
4b78177439c3
move from work to epccfs on Cirrus
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
99 # REMEMBER to check cc/etc/profile has $SHARED/bin in front of PATH |
| 0 | 100 |
| 101 %environment | |
|
8
4b78177439c3
move from work to epccfs on Cirrus
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
102 export work=epccfs |
| 9 | 103 export SHARED=/$work/dc007/dc007/shared |
| 104 export HOME=/$work/dc007/dc007/$(whoami) | |
| 0 | 105 export SINGULARITY_SHELL=/usr/bin/bash |
| 106 export LESSOPEN="| /usr/bin/lesspipe %s"; | |
| 107 export LESSCLOSE="/usr/bin/lesspipe %s %s"; | |
|
3
9376bcef72f5
version from 2023-11-26, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
2
diff
changeset
|
108 export SS='$SING' |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
109 export SING=sing |
| 6 | 110 export PS1='\[\033[1m\]$SS\[\033[0m\]<\!>: ' |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
111 if [ -f "$HOME/.singrc" ] |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
112 then |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
113 . "$HOME/.singrc" |
|
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
114 fi |
| 0 | 115 |
| 116 %runscript | |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
117 #!/bin/bash |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
118 |
|
8
4b78177439c3
move from work to epccfs on Cirrus
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
119 if [ -f $SHARED/.bash_extras ] |
| 0 | 120 then |
|
8
4b78177439c3
move from work to epccfs on Cirrus
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
121 . $SHARED/.bash_extras |
| 0 | 122 fi |
| 123 | |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
124 if [ ! -r $HOME ] |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
125 then |
| 9 | 126 export HOME=/$work/dc007/shared/guest |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
127 export USER=guest |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
128 fi |
|
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
129 |
| 0 | 130 cd $HOME |
| 131 | |
| 132 if [ $# -gt 0 ] | |
| 133 then | |
| 134 exec "$@" | |
| 135 else | |
|
7
c7fa30d1f666
lots of changes to upgrade debian to trixie,
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
136 echo HOME is $HOME |
|
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
137 exec /bin/bash --login |
| 0 | 138 fi |
