forked from ellisk42/ec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
singularity
74 lines (52 loc) · 1.99 KB
/
singularity
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Bootstrap: docker
From: ubuntu
%runscript
eval `opam config env`
if [ $# = 0 ] ; then exec bash; else exec "$@"; fi
%environment
HOME=/container
export HOME
PATH="/usr/local/conda/bin:/container/pypy3.6-v7.3.3-linux64/bin:$PATH"
export PATH
%labels
AUTHOR [email protected]
%post
apt-get update && apt-get -y install python3 git wget opam m4 libcairo2-dev libzmq3-dev swig graphviz
mkdir /container
chmod 777 /container
HOME=/container
export HOME
wget https://repo.continuum.io/miniconda/Miniconda3-py37_4.9.2-Linux-x86_64.sh
chmod +x Miniconda3-py37_4.9.2-Linux-x86_64.sh
./Miniconda3-py37_4.9.2-Linux-x86_64.sh -b -p /usr/local/conda
rm ./Miniconda3-py37_4.9.2-Linux-x86_64.sh
export PATH="/usr/local/conda/bin:$PATH"
conda install -y numpy dill pyzmq matplotlib protobuf scikit-learn scipy #vose-alias-method
pip install git+https://github.com/MaxHalford/vose
pip install dill sexpdata pygame pycairo cairocffi psutil pypng Box2D-kengz graphviz frozendict pathos
conda install pytorch==1.2.0 torchvision==0.4.0 cpuonly -c pytorch
opam init -y --auto-setup --root /container/.opam
opam update
opam switch create 4.06.1+flambda
eval `opam config env`
opam install -y ppx_jane core re2 yojson vg cairo2 camlimages menhir ocaml-protoc zmq utop jbuilder
echo "
#use "topfind";;
#thread;;
#require "core.top";;
#require "core.syntax";;
open Core;;
" >> /container/.ocamlinit
echo 'eval `opam config env`' >> /container/.bashrc
wget https://downloads.python.org/pypy/pypy3.6-v7.3.3-linux64.tar.bz2
tar xjvf pypy3.6-v7.3.3-linux64.tar.bz2
rm pypy3.6-v7.3.3-linux64.tar.bz2
mv pypy3.6-v7.3.3-linux64 /container
PATH=/container/pypy3.6-v7.3.3-linux64/bin:$PATH
pypy3 -m ensurepip
pypy3 -m pip install vmprof
pypy3 -m pip install dill
pypy3 -m pip install psutil
pypy3 -m pip install frozendict
pypy3 -m pip install numpy
pypy3 -m pip install pathos