by July 27, 2015on
Especially if you are running a gentoo distribution you might have noticed that installing .NET/mono packages can be quite a hassle. I often ended up compiling by myself without using portage at all. That works but can be somewhat cumbersome to maintain and update.
This is the tiny Dockerfile I came up with:
FROM mono:4 MAINTAINER Gregor Uhlenheuer <firstname.lastname@example.org> RUN apt-get update && \ apt-get install -y monodevelop monodevelop-nunit && \ rm -rf /var/lib/apt/lists/* ENTRYPOINT [ "/usr/bin/monodevelop" ]
That’s all! Now you can go ahead and build a docker image and run it by exposing the X11 socket to your docker container:
docker build -t kongo2002/debian-monodevelop . docker run --rm \ -e DISPLAY=unix$DISPLAY \ # expose the display -v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket kongo2002/debian-monodevelop