Last active
August 29, 2015 14:07
-
-
Save jmervine/a303800efebb78f606f9 to your computer and use it in GitHub Desktop.
Sample Docker Development Host (Ubuntu)
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 ubuntu | |
MAINTAINER Joshua Mervine | |
# Networking | |
EXPOSE 22 | |
EXPOSE 80 | |
EXPOSE 8080 | |
EXPOSE 3000 | |
# Build | |
## | |
# Initial setup | |
RUN apt-get update | |
RUN apt-get install -y build-essential | |
RUN apt-get install -y software-properties-common | |
RUN apt-get install -y openssh-server | |
RUN apt-get install -y sudo | |
RUN apt-get install -y git | |
RUN apt-get install -y nodejs | |
RUN apt-get install -y ruby2.0 | |
RUN apt-get install -y nginx | |
RUN apt-get install -y vim | |
RUN apt-get install -y golang-go | |
# Node.js package fix. | |
RUN ln -s /usr/bin/nodejs /usr/bin/node | |
# User setup | |
RUN mkdir -p /home/developer | |
RUN useradd developer | |
RUN echo "developer:developer" | chpasswd | |
RUN echo "developer ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
RUN chown developer: -R /home/developer | |
ADD ./vim.sh /tmp/vim.sh | |
RUN su -m developer -c /tmp/vim.sh | |
ENTRYPOINT su - developer |
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
#!/bin/bash | |
set -uex | |
USER=developer | |
HOME=/home/developer | |
cd /home/developer | |
git clone https://github.com/jmervine/vim-config.git .vim-config | |
cd ./.vim-config | |
bash ./install.sh | |
vim +BundleInstall +qall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment