-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtesseract.def
More file actions
36 lines (28 loc) · 963 Bytes
/
tesseract.def
File metadata and controls
36 lines (28 loc) · 963 Bytes
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
Bootstrap: library
From: nitishnarula/secure/ubuntu-focal
%pre
# this is going to delete your cache to make sure you are getting a minty
# fresh image from the library
rm -rf /root/.singularity/cache/library
%setup
# insert the fingerprint here
KEY_FP=53CA588B89E900EC0ED0CF446E20C9F0BAE45D7F
MESSG="Data integrity verified"
singularity verify /root/.singularity/cache/library/sha256*/* | \
grep -q $KEY_FP
singularity verify /root/.singularity/cache/library/sha256*/* | \
grep -q "$MESSG"
%runscript
echo "Singularity container for tesseract-ocr"
%post
apt-get -y update
apt-get install -y curl wget nano bzip2 less
apt-get clean
apt-get install -y libleptonica-dev tesseract-ocr libtesseract-dev
apt-get clean
mkdir -p /vf /gpfs /spin1 /data /scratch /fdb /lscratch
for i in $(seq 1 30); do
ln -s /gpfs/gsfs${i} /gs${i};
done
%environment
export LC_ALL=C