Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Singularity build file #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ also, get newest mkgmap from http://www.mkgmap.org.uk/snapshots/ and install (ak
zypper ar http://download.opensuse.org/repositories/Application:/Geo/openSUSE_13.1/ GEO
zypper ref
zypper in p7zip mkgmap GMT

==== Installation with Singularity ====

Alternatively, you can build a Singularity container with all the dependencies:

singularity build --fakeroot create_omtb_garmin_img.sif Singularity

To execute the script from within the container:

singularity run create_omtb_garmin_img.sif \
create_omtb_garmin_img.sh [options] <mtb*.exe|velo*.exe> <TYP-file or TYP-style>

=== Usage ===

Expand Down
13 changes: 13 additions & 0 deletions Singularity
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
BootStrap: library
From: ubuntu:16.04

%files
create_omtb_garmin_img.sh /usr/local/bin/create_omtb_garmin_img.sh

%post
apt-get update
apt-get install -y zsh p7zip-full mkgmap wget unzip
wget http://www.gmaptool.eu/sites/default/files/lgmt08220.zip
unzip lgmt08220.zip gmt
mv gmt /usr/local/bin/