Skip to content

Instantly share code, notes, and snippets.

@retrohacker
Created July 9, 2014 16:25
Show Gist options
  • Save retrohacker/8683cdda6370e2a0c97e to your computer and use it in GitHub Desktop.
Save retrohacker/8683cdda6370e2a0c97e to your computer and use it in GitHub Desktop.
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