Skip to content

Instantly share code, notes, and snippets.

@mcoms
Created February 24, 2014 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcoms/9198715 to your computer and use it in GitHub Desktop.
Save mcoms/9198715 to your computer and use it in GitHub Desktop.
Wemux demonstration container
# Wemux demonstration container
# =============================
# docker build -t wemux .
# docker run -t -i -d -p 2255:22 wemux
#
# ssh -p 2255 root@<host>
# root : screencast
# ssh -p 2255 user@<host>
# user : password
#
# wemux (+ mirror, rogue, pair...)
FROM ubuntu:12.04
MAINTAINER mcoms
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y install openssh-server tmux git
RUN mkdir /var/run/sshd
RUN echo 'root:screencast' | chpasswd
RUN useradd -m user
RUN echo 'user:password' | chpasswd
RUN git clone git://github.com/zolrath/wemux.git /usr/local/share/wemux
RUN ln -s /usr/local/share/wemux/wemux /usr/local/bin/wemux
RUN cp /usr/local/share/wemux/wemux.conf.example /usr/local/etc/wemux.conf
# NOTE: user will also be able to host wemux servers - normally this would be off.
RUN sed -i s/host_list=\(change_this\)/host_list=\(root\ user\)/g /usr/local/etc/wemux.conf
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