Hi all,

I looked for a docker container and couldn't find any, so I created one. If
anybody finds it usefull the source is MIT licensed in github [
https://github.com/canesin/libmesh-git-docker ] feel free to fork, create
issues and pull requests as you see fit.

Docker is a lxc-container runtime, think of it as no compromise virtual
machine [ https://docs.docker.com/installation/ ]
There is as user interface called Kitematic for Windos and Mac OSX.

Usage:

Install docker. To get a copy of the image and start bash in it:

$ docker pull canesin/libmesh-git
$ docker run -rm -it canesin/libmesh-git bash

You will probably want to mount a local machine folder and start bash on
it. To do so you can proceed by setting a mySRC environment variable to
your project and executing the following commands:

$ export mySRC="PATH_TO_YOUR_PROJECT_FILES"
$ export LIBMESH_IMG="canesin/libmesh-git"
$ alias src="docker run --rm -itv ${mySRC}:/opt/src ${LIBMESH_IMG} /bin/sh
-c 'cd /opt/src; exec bash'"
$ src

To permanently have the src command add the lines above to ~/.bashrc or
your equivalent. You can use this bash session as a build machine, develop
normally with your text editor in your current OS and local file system.

Best regards,
Fábio
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to