Created
June 20, 2014 12:47
-
-
Save jcheype/462f432fe09a54cef8dc 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 base | |
# Install prerequisites | |
run apt-get update | |
run apt-get install -y software-properties-common | |
# Install java8 | |
run add-apt-repository -y ppa:webupd8team/java | |
run apt-get update | |
run echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections | |
run apt-get install -y oracle-java8-installer | |
# Install tools | |
run apt-get install -y git maven | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list | |
RUN dpkg-divert --local --rename --add /sbin/initctl | |
RUN ln -s /bin/true /sbin/initctl | |
# Install MongoDB | |
RUN apt-get update | |
RUN apt-get install mongodb-10gen | |
RUN mkdir -p /data/db | |
run mkdir -p /opt/projects | |
run cd /opt && curl http://apache.lehtivihrea.org/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.tar.gz | tar -xzf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment