https://github.com/milescranmer/dockers
Docker images and tricks 🐳
https://github.com/milescranmer/dockers
astronomy bash containers docker dockerfile git gpu linux python
Last synced: 2 months ago
JSON representation
Docker images and tricks 🐳
- Host: GitHub
- URL: https://github.com/milescranmer/dockers
- Owner: MilesCranmer
- Created: 2017-03-04T06:00:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-21T15:24:11.000Z (almost 9 years ago)
- Last Synced: 2025-10-10T17:22:41.031Z (8 months ago)
- Topics: astronomy, bash, containers, docker, dockerfile, git, gpu, linux, python
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Dockerfiles (and `images`__)
============================
__ https://hub.docker.com/r/mcranmer/dockers/tags/
This is assortment of dockerfiles, images, scripts, and other things
that I find useful.
Example
-------
Converting latex to rich text format:
.. code::
./docker_cmd.sh latex2rtf latex2rtf myfile.tex
This command pulls from `mcranmer/dockers:latex2rtf`, runs it,
then executes the `latex2rtf` command inside the container
on the linked file `myfile.tex`, which creates an rtf file.
I'm also
keeping some dockerfiles for notoriously
difficult to built astronomy software packages. All of these
things are listed below.
Other scripts
-------------
I have two incuded shell scripts (Linux and OS X) which
automatically set up a X11 for some container, so you can launch a GUI
from inside it and interact. You probably need to fiddle with
the environment of the container (e.g., `ENV DISPLAY :0`) to
get it to work.
List of Dockerfiles (all built on `Docker Hub`__):
==================================================
__ https://hub.docker.com/r/mcranmer/dockers/tags/
Quick commands
--------------
- latex2rtf: https://sourceforge.net/projects/latex2rtf/
- pandoc: http://pandoc.org/
Other libraries
---------------
- spinmob: https://github.com/Spinmob/spinmob
- ciao: http://cxc.harvard.edu/ciao/
- ds9: http://ds9.si.edu/
- cfitsio: https://heasarc.gsfc.nasa.gov/fitsio/fitsio.html
- healpix: http://healpix.jpl.nasa.gov/
- wcslib: http://www.atnf.csiro.au/people/mcalabre/WCS/
Manual building
===============
To build any, run:
.. code::
$ docker build -t -f .
So, for healpix, this would be:
.. code::
$ docker build -t healpix -f healpix .
GUI usage:
==========
Linux:
.. code::
$ ./launch_gui_linux_docker.sh
Mac (a bit more developed):
.. code::
$ ./launch_gui_mac_docker.sh
Note that the Mac version requires Xquartz and socat installed.
The default port for both is 8888.
More examples
=============
Use my dev environment to edit a file:
.. code::
$ ./docker_command_tty.sh dev vim myfile.txt
Look at an astronomical image on Mac OS:
.. code::
$ ./launch_gui_mac_docker.sh mcranmer/dockers:ds9 $(pwd) "ds9 /workspace/myfile.fits" my_container