magao-x / krank

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

krank

krank (comparative kränker, superlative am kränksten)

  1. sick; ill
  2. (slang) excellent

Wiktionary

Turn the krank on your data reduction tasks with the magic of containers.

Usage via Docker

TODO

Usage on UA HPC (Singularity)

  1. Log in to Ocelote or El Gato
  2. module load singularity to make the singularity command available
  3. Request a large temporary workspace with xdisk -c create -m 1000 and then cd /xdisk/$USER so that the image builds outside your (somewhat small) home directory quota
  4. singularity build krank.img docker://magaox/krank
  5. Copy the images you want to analyze into /xdisk/$USER with rsync (e.g. rsync ./data filexfer.hpc.arizona.edu:/xdisk/yournetid/data)

Weird quirks

  • UA HPC has a storage quota and a file count quota. Trying to retain intermediate files will quickly exhaust the latter, so be sure to delete those after combining.
  • Singularity only has two (useful) users, root at build time (as whom all build commands are run) and $USER (i.e. you) at run time.
  • UA-specific HPC network filesystem mount points are present as empty directories in the image to silence Singularity warnings (and let you access HPC shares when run on UA HPC)

Development

Inspecting the image

  • In Singularity: singularity shell krank.img
  • In Docker: docker run -it magaox/krank bash (After commenting out the entrypoint and rebuilding)

Adding to the Docker image

  1. Get access to https://hub.docker.com/r/magaox/krank/
  2. Install Docker Community Edition locally
  3. git clone this repository
  4. ./build.sh
  5. ./push.sh
  6. git commit and git push when it's all nice and kentucky

Reference

About


Languages

Language:Dockerfile 95.5%Language:Shell 4.5%