-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity
61 lines (51 loc) · 1.61 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
Bootstrap: docker
From: nvidia/cuda:11.2.1-cudnn8-devel-ubuntu18.04
%labels
MAINTAINER Timothy R. Fallon
%files
%environment
%post
PACKAGE_VERSION=5.0.11
BUILD_PACKAGES="wget apt-utils apt-transport-https"
DEBIAN_FRONTEND=noninteractive
PACKAGE_NAME=ont_guppy_${PACKAGE_VERSION}-1~bionic_amd64.deb
apt-get update
apt-get install --yes $BUILD_PACKAGES
apt-get install --yes locales
locale-gen --purge "en_US.UTF-8"
dpkg-reconfigure -f noninteractive locales
### guppy dependencies
apt-get install --yes libzmq5 \
libhdf5-cpp-100 \
libboost-atomic1.65.1 \
libboost-chrono1.65.1 \
libboost-date-time1.65.1 \
libboost-filesystem1.65.1 \
libboost-iostreams1.65.1 \
libboost-program-options1.65.1 \
libboost-regex1.65.1 \
libboost-system1.65.1 \
libboost-log1.65.1 \
libcurl4
### For nvtop https://github.com/Syllo/nvtop
#cd /tmp
#apt-get install --yes libncurses5-dev \
# libncursesw5-dev cmake git
#git clone https://github.com/Syllo/nvtop.git
#mkdir -p nvtop/build && cd nvtop/build
#cmake .. -DNVML_RETRIEVE_HEADER_ONLINE=True
#make
#make install
###
### For guppy
cd /tmp
wget -q https://mirror.oxfordnanoportal.com/software/analysis/${PACKAGE_NAME}
dpkg -I ${PACKAGE_NAME} ##Print some information about the package dependencies
dpkg -i --ignore-depends=nvidia-driver-418,libcuda1-418 /tmp/${PACKAGE_NAME}
###
### Cleanup
rm -f *.deb
apt-get autoremove --purge --yes
apt-get clean
rm -rf /var/lib/apt/lists/*
%runscript