Created
July 9, 2014 16:25
-
-
Save retrohacker/8683cdda6370e2a0c97e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FROM ubuntu:trusty | |
# Setup sane dev environment | |
RUN apt-get update | |
RUN apt-get upgrade -y --force-yes | |
RUN apt-get install openssh-server -y --force-yes | |
RUN apt-get install sudo -y --force-yes | |
# Setup user ns w/ ssh keys | |
RUN mkdir /home/user | |
RUN useradd --home /home/user user | |
RUN echo user:password | chpasswd | |
RUN usermod -aG sudo user | |
RUN mkdir /var/run/sshd | |
# Install couchdb | |
RUN apt-get install couchdb --force-yes -y | |
RUN chown -R user:user /home/user | |
EXPOSE 22 | |
CMD ["bash","-c","/usr/sbin/sshd -D"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment