-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtf_openslide_cv2
More file actions
52 lines (42 loc) · 1.64 KB
/
tf_openslide_cv2
File metadata and controls
52 lines (42 loc) · 1.64 KB
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
50
51
52
Bootstrap: docker
From: tensorflow/tensorflow:2.0.0a0-gpu-py3
%environment
# use bash as default shell
SHELL=/bin/bash
export SHELL
%setup
# runs on host - the path to the image is $SINGULARITY_ROOTFS
%post
# post-setup script
# load environment variables
. /environment
# use bash as default shell
echo 'SHELL=/bin/bash' >> /environment
# make environment file executable
chmod +x /environment
# default mount paths
mkdir /scratch /data
# additional packages
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils
apt-get install -y build-essential checkinstall wget swig monodevelop r-base r-base-dev ruby ruby-dev python3 python3-dev tcl tcl-dev tk tk-dev
apt-get install -y libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
apt-get install -y git vim
apt-get install -y openslide-tools
apt-get install -y libsm6 libxext6
apt-get install -y python3-tk python3-pip
python3 -m pip install --upgrade pip
python3 -m pip install opencv-python
python3 -m pip install openslide-python
python3 -m pip install numpy scipy matplotlib ipython jupyter pandas sympy nose pydicom dicom
python3 -m pip install tensorflow==2.0.0-alpha0
python3 -m pip install keras pydot graphviz
python3 -m pip install scikit-learn scikit-image
python3 -m pip install xgboost minecart quilt
quilt install ResidentMario/missingno_data
apt-get clean
%runscript
# executes with the singularity run command
# delete this section to use existing docker ENTRYPOINT command
%test
# test that script is a success