Dockerizing the awesome VLC Media Player.
All we need is to download this package and add the bash script bin/vlc.sh
to our path.
Lets assume that your path is in /usr/bin
and that this package will be located in ~/.vlc
.
Cloning the package...
git clone git@gitlab.com:exadra37-docker/media-player/vlc.git ~/.vlc
Creating the sym link...
sudo ln -s ~/.vlc/bin/vlc.sh /usr/bin/vlc
Building the Docker Image...
sudo docker build -t exadra37/vlc ~/.vlc/docker/build
No matter how we start vlc
it will map always the current folder into inside the Docker Container
at /home/vlc/media
.
vlc
I love Elixir programing language, thus here it goes a link to one of my favorite videos about why Developers should be using it...
vlc https://www.youtube.com/watch?v=pO4_Wlq8JeI
vlc path/to/file.extension
vlc path/to/file/with/compressed/folders.zip
vlc path/to/folder
In order to have our media available inside the docker container we need to map it from the host.
Also to persist data from VLC running inside a docker container we need to map some folders between the host and the container.
- Media -
$PWD
into/home/vlc/media
. - Configuration -
~/.docker-vlc/.config
into/home/vlc/.config
. - Cache -
~/.docker-vlc/.cache
into/home/vlc/.cache
. - Snapshots -
~/Pictures/VLC/Snapshots
into/home/vlc/snapshots
.