You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/05/19 17:17:10 UTC

allura git commit: [#7806] start dockerfile, based off of INSTALL instructions

Repository: allura
Updated Branches:
  refs/heads/db/7806 [created] 4c1818069


[#7806] start dockerfile, based off of INSTALL instructions


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/4c181806
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/4c181806
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/4c181806

Branch: refs/heads/db/7806
Commit: 4c18180695d35ca838bb0dda85f1783024c70870
Parents: 6bc42a2
Author: Dave Brondsema <da...@brondsema.net>
Authored: Tue Dec 16 13:12:32 2014 -0500
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Tue Dec 16 13:12:32 2014 -0500

----------------------------------------------------------------------
 Dockerfile | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/4c181806/Dockerfile
----------------------------------------------------------------------
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..fcf3039
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,62 @@
+FROM ubuntu:12.04
+
+RUN apt-get update && apt-get install -y \
+    default-jre-headless \
+    git-core \
+    python-dev \
+    python-pip \
+    libjpeg8-dev \
+    libldap2-dev \
+    libsasl2-dev \
+    libssl-dev \
+    zlib1g-dev
+# TODO: make SVN support an option
+RUN apt-get install -y \
+    subversion \
+    python-svn
+RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \
+    echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > /etc/apt/sources.list.d/mongodb.list && \
+    apt-get update && \
+    apt-get install -y mongodb-org
+
+RUN pip install virtualenv
+
+# TODO better base dir instead of /root/
+ENV basedir /root
+WORKDIR ${basedir}
+RUN virtualenv env-allura
+RUN . env-allura/bin/activate
+
+# TODO use `ADD .` instead?
+RUN mkdir src && \
+    cd src && \
+    git clone https://git-wip-us.apache.org/repos/asf/allura.git allura
+RUN cd src/allura && \
+    pip install -r requirements.txt
+# TODO: make SVN support an option
+RUN ln -s /usr/lib/python2.7/dist-packages/pysvn ~/env-allura/lib/python2.7/site-packages/
+
+RUN cd src/allura && \
+    ./rebuild-all.bash
+
+# TODO better solr installation
+RUN cd src && \
+    wget -nv http://archive.apache.org/dist/lucene/solr/4.2.1/solr-4.2.1.tgz && \
+    tar xf solr-4.2.1.tgz && rm -f solr-4.2.1.tgz && \
+    cp -f allura/solr_config/schema.xml solr-4.2.1/example/solr/collection1/conf && \
+RUN cd src/solr-4.2.1/example/ && \
+    mkdir ${basedir}/logs/ && \
+    nohup java -jar start.jar > ${basedir}/logs/solr.log &
+
+RUN mkdir /srv/git && mkdir /srv/svn && mkdir /srv/hg && \
+    #chown $USER /srv/git && chmod /srv/svn && chmod /srv/hg && \
+    chmod 775 /srv/git && chmod 755 /srv/svn && chmod 755 /srv/hg
+
+RUN service mongod start && sleep 16
+
+#WORKDIR src/allura/Allura
+#RUN nohup paster taskd development.ini > ${basedir}/logs/taskd.log &
+#RUN paster setup-app development.ini
+
+#RUN nohup paster serve --reload development.ini > ${basedir}/logs/tg.log &
+