From b48b1a72397e85a772a616007273a87dc963dd71 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 27 May 2015 17:04:39 +0200 Subject: [PATCH] first commit --- .dockerignore | 1 + .gitignore | 3 +++ Dockerfile | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 44 +++++++++++++++++++++++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6b8710a --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.git diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6134e2b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +nerolinux-4.0.0.0b-x86_64.deb +config + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..db28eb4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,67 @@ +# vim:set ft=dockerfile: + +# VERSION 1.0 +# AUTHOR: Alexander Turcic +# DESCRIPTION: Nero Linux in a Docker container +# TO_BUILD: docker build --rm -t zeitgeist/docker-nero . +# SOURCE: https://github.com/alexzeitgeist/docker-nero + +# Pull base image. +FROM debian:jessie +MAINTAINER Alexander Turcic "alex@zeitgeist.se" + +# Install dependencies. +RUN \ + apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y \ + fonts-droid \ + libc6 \ + libcanberra-gtk-module \ + libglib2.0-0 \ + libgtk2.0-0 \ + libstdc++6 \ + mpg123 \ + xfonts-base && \ + rm -rf /var/lib/apt/lists/* + +RUN \ + apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y \ + wget && \ + rm -rf /var/lib/apt/lists/* + +RUN \ + wget http://ftp20.us.nero.com//software/NeroLINUX/nerolinux-4.0.0.0b-x86_64.deb +#COPY nerolinux-4.0.0.0b-x86_64.deb nerolinux-4.0.0.0b-x86_64.deb + +# Install Nero +RUN \ + apt-get update && \ + { dpkg -i nerolinux-4.0.0.0b-x86_64.deb || true; } && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y -f && \ + rm -rf /var/lib/apt/lists/* + +# Nero-specific fixes +RUN \ + mkdir /usr/lib64 && \ + ln -s /usr/lib/nero /usr/lib64 && \ + cp /usr/lib/nero/libISOFS.so /usr/lib/nero/libUDFImporter.so /usr/lib + +# Setup user environment. Replace 1000 with your user / group id. +RUN \ + export uid=1000 gid=1000 && \ + groupadd --gid ${gid} user && \ + useradd --uid ${uid} --gid ${gid} --create-home user && \ + addgroup user cdrom + +USER user +WORKDIR /home/user + +# Enable below if we want to supply a Nero Linux config file +#COPY config /home/user/ + +#RUN \ +# mkdir .nero && \ +# cp config /home/user/.nero + +CMD ["/usr/bin/nero"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..7313c0b --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ +# zeitgeist/docker-nero + +[Nero Linux](http://www.nero.com/enu/promo-linux.html) in a Docker container. + +## Requirements + +* [Docker](https://www.docker.com/) 1.6+ (previous versions may work fine, but I haven't tried) +* An X11 socket + +## Installation + +Get the [trusted build on the docker hub](https://registry.hub.docker.com/u/zeitgeist/docker-nero/): + +```bash +$ docker pull zeitgeist/docker-nero +``` + +or download and compile the source yourself from Github: + +```bash +$ git clone https://github.com/alexzeitgeist/docker-nero.git +$ cd docker-nero +$ docker build -t zeitgeist/docker-nero . +``` + +## Usage + +```bash +$ xhost + + +docker run --rm \ + -v /etc/localtime:/etc/localtime:ro \ + -v /tmp/.X11-unix:/tmp/.X11-unix \ + -e DISPLAY=unix$DISPLAY \ + --privileged \ + -v /dev/snd:/dev/snd \ + -v /dev/sr0:/dev/sr0 \ + -v "${HOME}/temp":"/home/user/temp" \ +zeitgeist/docker-nero +``` + +Where ${HOME}/temp is a shared volume from your host and /dev/sr0 your cdr device. + +* [Nero Linux 4 Manual](http://ftp6.nero.com/user_guides/linux4/NeroLinux_Eng.pdf)