Skip to content

Instantly share code, notes, and snippets.

@gcgbarbosa
Created August 18, 2022 21:38
Show Gist options
  • Save gcgbarbosa/2074abe453c23a5a25857672d5eaacb3 to your computer and use it in GitHub Desktop.
Save gcgbarbosa/2074abe453c23a5a25857672d5eaacb3 to your computer and use it in GitHub Desktop.
Hypatia Singularity Recipe
BootStrap: docker
From: ubuntu:20.04
%post
# General
apt-get -y update
# make sure tzdata does not ask for anything
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
apt-get install -y software-properties-common pip python git cmake wget zip unzip
# set python 3 as default
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
# add shared folder as safe
git config --global --add safe.directory '*'
# satgenpy
# "Installing dependencies for satgenpy..."
pip install numpy astropy ephem networkx sgp4 geopy matplotlib statsmodels
apt-get install -y libproj-dev proj-data proj-bin libgeos-dev
# proj compiling
apt-get install -y sqlite libtiff-dev libcurl4-openssl-dev
# download and compile proj 9
wget https://download.osgeo.org/proj/proj-9.0.1.tar.gz
tar xvf proj-9.0.1.tar.gz && \
cd proj-9.0.1 && \
mkdir build && \
cd build && \
cmake .. && \
cmake --build . && \
cmake --build . --target install
# Mac alternatives (to be able to pip install cartopy)
# brew install proj geos
# export CFLAGS=-stdlib=libc++
# MACOSX_DEPLOYMENT_TARGET=10.14
pip install git+https://github.com/snkas/exputilpy.git@v1.6
# make cartopy run
# cartopy needs proj 8+
pip install cartopy
# ns3-sat-sim
# "Installing dependencies for ns3-sat-sim..."
DEBIAN_FRONTEND=noninteractive apt-get install -y openmpi-bin openmpi-common openmpi-doc libopenmpi-dev lcov gnuplot
# satviz
# "There are currently no dependencies for satviz."
# paper
# "Installing dependencies for paper..."
pip install git+https://github.com/snkas/networkload.git@v1.3
# Confirmation dependencies are installed
# "Hypatia dependencies have been installed."
%labels
Author George C. G. Barbosa <gcgbarbosa@gmail.com>
Version v0.0.1
Hypatia Singularity Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment