Created
October 17, 2014 17:33
-
-
Save libertyy/f48d111b82122b25e7ca 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 ubuntu:14.04 | |
MAINTAINER Liberty Young "liberty@flywheelnetworks.com" | |
RUN apt-get update -y | |
RUN apt-get install -y git-core curl emacs vim | |
RUN apt-get install -y build-essential curl libxslt-dev libxml2-dev | |
# Default RVM install | |
#Set env just in case | |
ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
RUN curl -L https://get.rvm.io | bash -s stable | |
RUN usermod -g rvm root | |
RUN /bin/bash -l -c "rvm requirements" | |
RUN /bin/bash -l -c "rvm install 2.1.3" | |
RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc" | |
RUN /usr/local/rvm/bin/rvm-shell -c "gem update --system" | |
RUN /usr/local/rvm/bin/rvm-shell -c "gem install bundler sinatra" | |
RUN git clone -v https://github.com/etsy/deployinator.git /srv/deployinator | |
WORKDIR /srv/deployinator | |
RUN /usr/local/rvm/bin/rvm-shell -c "bundle install" | |
ENV HTTP_X_USERNAME user | |
ENV HTTP_X_GROUPS foo | |
CMD /usr/local/rvm/bin/rvm-shell -c "bundle exec rackup" | |
### boot.sh: | |
# docker run -d -i -t -p 80:9292 --name deployinator deployinator:latest | |
# open http://$(boot2docker ip 2>/dev/null)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment