-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathapptainer.def
More file actions
41 lines (33 loc) · 1.59 KB
/
apptainer.def
File metadata and controls
41 lines (33 loc) · 1.59 KB
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
Bootstrap: docker
From: opendronemap/nodemicmac:master
Stage: spython-base
%labels
Author Sylvain POULAIN
Version 1.1
Description Apptainer container for NodeMICMAC and WebGIS with Entwine and MicMac.
%environment
export PATH=$PATH:/code/micmac/bin
export python=$(which python3)
export LC_ALL=C
export PYTHONUNBUFFERED=1
export LD_LIBRARY_PATH="/lib/x86_64-linux-gnu:/usr/lib"
%post
su - root # USER root
# apt-get update
# apt-get install -y -qq --no-install-recommends software-properties-common build-essential cmake git exiv2 libimage-exiftool-perl proj-bin gdal-bin figlet imagemagick pdal libpdal-dev libboost-all-dev libtbb-dev libssl-dev libcurl4-openssl-dev pkg-config libpth-dev curl libx11-dev python3-pip python3-setuptools python3-shapely apt-utils p7zip-full
# pip3 install -U shyaml
# pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org appsettings
# pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org utm
# pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pyproj #==2.2.0
# pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org scikit-image
# ln -s /lib/x86_64-linux-gnu/*.so /usr/lib/
mkdir -p /var/www
mkdir -p "/var/www"
cd "/var/www"
mkdir -p tmp
%runscript
cd "/var/www"
exec /usr/bin/node /var/www/index.js "$@"
%startscript
cd "/var/www"
exec /usr/bin/node /var/www/index.js "$@"