[ARVADOS] created: 2414412bb3360e02a72e5459711cf077a5e50380

git at public.curoverse.com git at public.curoverse.com
Thu Jul 9 22:09:47 EDT 2015


        at  2414412bb3360e02a72e5459711cf077a5e50380 (commit)


commit 2414412bb3360e02a72e5459711cf077a5e50380
Author: Ward Vandewege <ward at curoverse.com>
Date:   Thu Jul 9 22:09:18 2015 -0400

    Make the arvados/jobs image leaner.
    
    refs #6569

diff --git a/docker/build_tools/Makefile b/docker/build_tools/Makefile
index 7312130..6d014b9 100644
--- a/docker/build_tools/Makefile
+++ b/docker/build_tools/Makefile
@@ -210,7 +210,7 @@ keep-proxy-image: debian-arvados-image $(BUILD) $(KEEP_PROXY_DEPS)
 	$(DOCKER_BUILD) -t arvados/keepproxy keepproxy
 	date >keep-proxy-image
 
-jobs-image: base-image $(BUILD) $(JOBS_DEPS)
+jobs-image: debian-arvados-image $(BUILD) $(JOBS_DEPS)
 	$(DOCKER_BUILD) -t arvados/jobs jobs
 	date >jobs-image
 
@@ -261,7 +261,7 @@ base-image: debian-arvados-image $(BASE_DEPS)
 
 debian-arvados-image:
 	@echo "Building debian-arvados-image"
-	./mkimage-debootstrap.sh arvados/debian wheezy ftp://ftp.us.debian.org/debian/
+	./mkimage-debootstrap.sh arvados/debian wheezy http://ftp.us.debian.org/debian/
 	date >debian-arvados-image
 
 skydns-image:
diff --git a/docker/jobs/Dockerfile b/docker/jobs/Dockerfile
index 313dd36..62ea2ee 100644
--- a/docker/jobs/Dockerfile
+++ b/docker/jobs/Dockerfile
@@ -1,20 +1,21 @@
-FROM arvados/base
-MAINTAINER Brett Smith <brett at curoverse.com>
+# Based on Debian Wheezy
+FROM arvados/debian:wheezy
+MAINTAINER Ward Vandewege <ward at curoverse.com>
+
+ENV DEBIAN_FRONTEND noninteractive
+
+ADD apt.arvados.org.list /etc/apt/sources.list.d/
+RUN apt-key adv --keyserver pool.sks-keyservers.net --recv 1078ECD7
+RUN apt-get update -q
+
+RUN apt-get install -qy git python-minimal python-arvados-python-client
+
+RUN gpg --keyserver pool.sks-keyservers.net --recv-keys D39DC0E3
 
 # Install dependencies and set up system.
 # The FUSE packages help ensure that we can install the Python SDK (arv-mount).
-RUN /usr/bin/apt-get install -q -y \
-      python-dev python-llfuse python-pip python-virtualenv \
-      libio-socket-ssl-perl libjson-perl liburi-perl libwww-perl dtrx \
-      fuse libattr1-dev libfuse-dev && \
-    /usr/sbin/adduser --disabled-password \
+RUN /usr/sbin/adduser --disabled-password \
       --gecos 'Crunch execution user' crunch && \
-    /usr/bin/install --directory --owner=crunch --group=crunch --mode=0700 /keep /tmp/crunch-src /tmp/crunch-job && \
-    /bin/ln -s /usr/src/arvados /usr/local/src/arvados
-
-# Install Arvados packages.
-RUN (find /usr/src/arvados/sdk -name '*.gem' -print0 | \
-      xargs -0rn 1 /usr/local/rvm/bin/rvm-exec default gem install) && \
-     apt-get -qqy install python-arvados-fuse
+    /usr/bin/install --directory --owner=crunch --group=crunch --mode=0700 /keep /tmp/crunch-src /tmp/crunch-job
 
 USER crunch
diff --git a/docker/jobs/apt.arvados.org.list b/docker/jobs/apt.arvados.org.list
new file mode 100644
index 0000000..7eb8716
--- /dev/null
+++ b/docker/jobs/apt.arvados.org.list
@@ -0,0 +1,2 @@
+# apt.arvados.org
+deb http://apt.arvados.org/ wheezy main

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list