Merge branch 'master' of git.clinicalfuture.com:arvados
[arvados.git] / docker / build.sh
index 7e2284e01785c3ee15c0ced9b4b4a220e1fcccd3..366775dd387428e7df3a856fc54017a84358f0e2 100755 (executable)
@@ -1,7 +1,11 @@
 #! /bin/sh
 
-# create a cfi/debian base image
-./mkimage-debootstrap.sh cfi/debian wheezy http://debian.lcs.mit.edu/debian/
+# build the base wheezy image, if it doesn't already exist
+(docker images | grep '^arvados/debian') || \
+  ./mkimage-debootstrap.sh arvados/debian wheezy http://debian.lcs.mit.edu/debian/
 
-# build the Docker base image
-docker build -t cfi/base base
+# build the Docker images
+docker build -t arvados/base base
+docker build -t arvados/api api
+docker build -t arvados/docserver docserver
+docker build -t arvados/workbench workbench