-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity
42 lines (31 loc) · 1.06 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
BootStrap: docker
From: ubuntu:xenial
%setup
# commands to be executed on host outside container during bootstrap
%post
# commands to be executed inside container during bootstrap
# add universe repo and install some packages
sed -i '/xenial.*universe/s/^#//g' /etc/apt/sources.list
# locale-gen en_US.UTF-8
export LC_ALL=C
apt-get -y update
apt-get -y install vim wget python python-pip
# install pandas
pip install --upgrade pip
pip install jupyter
pip install numpy
pip install matplotlib
# clean tmp files
apt-get autoremove -y
apt-get clean
# rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# create bind points for MesoFC HPC environment
mkdir -p /Work
mkdir -p /Home
%runscript
# commands to be executed when the container runs
echo "Starting notebook..."
echo "Open browser to localhost:8888"
exec /usr/local/bin/jupyter notebook --ip='*' --port=8888 --no-browser
%test
# commands to be executed within container at close of bootstrap process