This repository aims to start nonfree linux applications inside of a docker container in order to encapsulate the nonfree dependencies and guard the host system.
Applications in this repository are the ones that I personally would like to use, but feel pretty uncomfortable with having their sources.
To start an application use make run app=APP_NAME
(APP_NAME being the name of folder containing the dockerfile).
Why build this when the excellent repository of Jessie Frazelle exists?
There are 2 main reasons for this:
- Jessie Frazelle's images don't handle sound via pulseaudio
- I just wanted to experiment with what's possible with containers.
Those were my first steps into desktop applications inside of containers
I am currently investigating how to properly start chrome.
Using --no-sandbox
is not a good solution.
You are right, running an editor using make run
makes no sense - Let make build app=APP_NAME
build the image and launch the editor using the following command:
$ docker run --rm \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $(pwd):/current \
-e "DISPLAY=$DISPLAY" \
j6s/vscode \
code --wait /current
This will mount the current directory as /current
.
PHPStorm works in a similar fashion.