Created
February 24, 2014 22:34
-
-
Save mcoms/9198715 to your computer and use it in GitHub Desktop.
Wemux demonstration container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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