Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Skype on docker
# vi: syn=sh :
from ubuntu:12.04
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" > /etc/apt/sources.list
run echo "deb http://archive.canonical.com/ precise partner" >> /etc/apt/sources.list
run apt-get -qqyy update
run apt-get install -qqyy x11vnc xvfb skype pulseaudio pavucontrol openssh-server
run mkdir /var/run/sshd
run adduser --disabled-password --gecos "User" --uid 5001 user
run mkdir /home/user/.ssh
add id_rsa.pub /home/user/.ssh/authorized_keys
run chown -R user:user /home/user/.ssh
env pulse_port tcp:localhost:64713
run mkdir /docker
run echo "export PULSE_SERVER=\"$pulse_port\"" >> /docker/run_skype
run echo "skype" >> /docker/run_skype
run chmod +x /docker/run_skype
expose 22
cmd ["/usr/sbin/sshd", "-D"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment