first commit

This commit is contained in:
Alex 2015-05-27 17:04:39 +02:00
commit b48b1a7239
4 changed files with 115 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.git

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
nerolinux-4.0.0.0b-x86_64.deb
config

67
Dockerfile Normal file
View File

@ -0,0 +1,67 @@
# vim:set ft=dockerfile:
# VERSION 1.0
# AUTHOR: Alexander Turcic <alex@zeitgeist.se>
# 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"]

44
README.md Normal file
View File

@ -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)