-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from nghi01/apptainer-def
Create initial Apptainer definition file and some initial instructions on running Apptainer on HPC
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Bootstrap: docker | ||
From: opendronemap/odm:latest | ||
Stage: spython-base | ||
|
||
%files | ||
. /var/www | ||
%labels | ||
MAINTAINER Piero Toffanin <[email protected]> | ||
%post | ||
|
||
# EXPOSE 3000 | ||
|
||
su - root # USER root | ||
apt-get update && apt-get install -y curl gpg-agent | ||
curl --silent --location https://deb.nodesource.com/setup_14.x | bash - | ||
apt-get install -y nodejs unzip p7zip-full && npm install -g nodemon && \ | ||
ln -s /code/SuperBuild/install/bin/untwine /usr/bin/untwine && \ | ||
ln -s /code/SuperBuild/install/bin/entwine /usr/bin/entwine && \ | ||
ln -s /code/SuperBuild/install/bin/pdal /usr/bin/pdal | ||
|
||
|
||
mkdir -p /var/www | ||
|
||
mkdir -p "/var/www" | ||
cd "/var/www" | ||
|
||
npm install --production && 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 "$@" |