-
Notifications
You must be signed in to change notification settings - Fork 0
/
frictionlesser.def
65 lines (54 loc) · 2.01 KB
/
frictionlesser.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Bootstrap: library
From: ubuntu:22.04
%post
# BUILD_REQUIREMENTS="git build-essential clang-15 cmake snakemake python3-pip"
BUILD_REQUIREMENTS="git build-essential clang-15 cmake"
mkdir -p /usr/local/bin
mkdir /usr/local/pasteur
cd /usr/local/pasteur
# Update the available packages list.
apt -y update
# And add the "universe" repository (allow to install many more software).
apt -y install software-properties-common
add-apt-repository universe
apt -y update
# Update the operating systems (install last versions with bugfixes).
apt -y dist-upgrade
# Install dependencies for your project.
# apt -y install dialog
apt -y install $BUILD_REQUIREMENTS
#pip3 install scanpy
# Build ParadisEO.
git clone --branch master --single-branch --recurse-submodules https://gitlab.pasteur.fr/jdreo/paradiseo.git
cd paradiseo
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON ..
make
cd ../..
# Build frictionlesser.
git clone --branch main --single-branch --recurse-submodules https://gitlab.pasteur.fr/jdreo/frictionlesser.git
cd frictionlesser
mkdir build
cd build
cmake -DBUILD_DOCS=OFF -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DPARADISEO_ROOT=../../paradiseo -DPARADISEO_BUILD=../../paradiseo/build -DUSE_LOCAL_PARADISEO=ON -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON ..
make
# Install.
cp app/frictionlesser /usr/local/bin/
cd ../..
# Clean-up of the APT cache (will lighten the container).
apt -y purge software-properties-common $BUILD_REQUIREMENTS
apt -y --purge autoremove
apt -y autoclean
apt clean
# Delete builts remains.
rm -rf paradiseo/build
rm -rf frictionlesser/build
# Keep the source code in the container, for reproducibility.
%environment
%runscript
# When executing the container, this will be called,
# and pass all the command line arguments.
/usr/local/bin/frictionlesser $*
%labels
Author Johann Dreo