Working on javascript magic to resize svg div so scrolling works nicely. Seems to...
[arvados.git] / docker / api / Dockerfile
index 7a87beb20e4aa8b14c06786ecb5c156e5dd3f040..93944146cabf7e2e8a6986b95a611d0d9db8d4e9 100644 (file)
@@ -3,9 +3,15 @@
 FROM arvados/passenger
 MAINTAINER Tim Pierce <twp@clinicalfuture.com>
 
-# Install postgres and apache
-RUN apt-get -q -y install procps postgresql postgresql-server-dev-9.1 apache2 \
-                          supervisor
+# Install postgres and apache.
+# Clone a git repository of Arvados source -- not used to build, but
+# will be used by the Commit model and anything else that needs to
+# check a git repo for crunch scripts.
+#
+RUN apt-get update && \
+    apt-get -q -y install procps postgresql postgresql-server-dev-9.1 apache2 \
+                          supervisor && \
+    git clone git://github.com/curoverse/arvados.git /var/cache/git/arvados.git
 
 RUN /bin/mkdir -p /usr/src/arvados/services
 ADD generated/api.tar.gz /usr/src/arvados/services/
@@ -34,10 +40,10 @@ RUN sh /tmp/config_databases.sh && \
 
 # Configure Apache and Passenger.
 ADD passenger.conf /etc/apache2/conf.d/passenger
-RUN a2dissite default ; \
-    a2ensite arvados ; \
-    a2enmod rewrite ; \
-    a2enmod ssl ; \
+RUN a2dissite default && \
+    a2ensite arvados && \
+    a2enmod rewrite && \
+    a2enmod ssl && \
     /bin/mkdir /var/run/apache2
 
 # Supervisor.