-
Notifications
You must be signed in to change notification settings - Fork 0
/
validation.def
43 lines (32 loc) · 1.24 KB
/
validation.def
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
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: bionic
Include: software-properties-common
%labels
APPLICATION_NAME Ubuntu LTS + ASKAP validation
OS_VERSION 18.04
APPLICATION_URL https://confluence.csiro.au/display/askapsst/Validation
SYSTEM_NAME Pawsey
SYSTEM_SINGULARITY_VERSION 3.8.6
SYSTEM_URL https://pawsey.org.au
AUTHOR_NAME Jordan Collier
AUTHOR_EMAIL [email protected]
%post
export DEBIAN_FRONTEND=noninteractive
# Installation of initial packages
apt-get update -y
add-apt-repository -y ppa:deadsnakes/ppa
add-apt-repository -y universe
apt-get install -y python3.6 python3-pip libjpeg-turbo8
update-alternatives --install /usr/bin/python python /usr/bin/python3.6 20
# Install python packages
pip3 install --upgrade pip
pip3 install wheel
pip3 install astropy docopt matplotlib pandas numpy scipy packaging mpld3
# Fix command prompt in Singularity 3.5.2
printf 'export PS1="\u@$SINGULARITY_NAME:\w$ "' > /.singularity.d/env/999-psvars.sh
# Cleanup the container
apt-get clean
apt-get autoclean
%runscript
python "$@"