Created
October 9, 2013 13:08
-
-
Save joefiorini/6900988 to your computer and use it in GitHub Desktop.
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
FROM schmidh/arch-base | |
MAINTAINER Joe Fiorini <joe@joefiorini.com> | |
RUN cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup && cp /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist && sed '/^#\S/ s|#||' -i /etc/pacman.d/mirrorlist | |
RUN pacman -S --noconfirm reflector | |
RUN reflector --verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist && pacman -Syy | |
RUN pacman -S --noconfirm zsh vim tmux ack fortune-mod tcpdump netcat | |
RUN useradd -mG wheel -s /bin/zsh dev && usermod -aG tty dev | |
RUN echo 'LANG="en_US.UTF-8"' > /etc/locale.conf | |
RUN pacman -S --noconfirm openssh mosh sqlite | |
RUN sed -i 's/^#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config && sed -i 's/^UsePAM yes/UsePAM no/' /etc/ssh/sshd_config | |
RUN mkdir /home/dev/.ssh && curl http://files.static.ly/authorized_keys > /home/dev/.ssh/authorized_keys | |
RUN curl http://files.static.ly/authorized_keys > /home/dev/.ssh/authorized_keys | |
RUN chown dev /home/dev/.ssh && chown dev /home/dev/.ssh/authorized_keys && chmod 400 /home/dev/.ssh/authorized_keys | |
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key | |
RUN sed -i 's/^dev:\!:/:x:/' /etc/shadow && sed -i 's/# \(%wheel ALL=(ALL) NOPASSWD: ALL\)/\1/' /etc/sudoers | |
RUN pacman -S --noconfirm "nodejs>=0.10.20" | |
RUN npm install -g grunt-cli bower | |
ADD http://configs.static.triforce.io/configs-base-0.0.1.tar.gz /configs.tar.gz | |
RUN tar -xvzf /configs.tar.gz && chown -R dev /home/dev && chgrp -R dev /home/dev | |
EXPOSE 22 | |
ENTRYPOINT ["/usr/bin/sshd"] | |
CMD ["-D"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment