docker-registry: Enable the SQLAlchemy search backend
authorW. Trevor King <wking@tremily.us>
Wed, 16 Apr 2014 20:18:09 +0000 (13:18 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 16 Apr 2014 20:18:09 +0000 (13:18 -0700)
Now that it has landed [1].

[1]: https://github.com/dotcloud/docker-registry/pull/247

docker-registry/Dockerfile.template
docker-registry/README.md

index 3ff633273b6a06da052e13646ca5d0153e007685..133be13e2830cc98e204c490637376470dc2b6a8 100644 (file)
@@ -38,5 +38,5 @@ RUN cp --no-clobber docker-registry/config/config_sample.yml docker-registry/con
 # Container networking happens automatically
 RUN sed -i 's/need net$/use net/' /etc/init.d/*
 
-CMD cd docker-registry && ./setup-configs.sh && ./run.sh
+CMD cd docker-registry && ./setup-configs.sh && ./run.sh --preload
 EXPOSE 5000
index 7341545742692f016a08701dcdace1c9c08a6630..9cfa9719eb0d1bb61318a1023909eedf1726e8e7 100644 (file)
@@ -2,6 +2,7 @@ Run this [docker-registry][] image with:
 
     $ mkdir /var/lib/docker-registry
     $ docker run -d --name docker-registry \
+    >   -e SEARCH_BACKEND=sqlalchemy \
     >   -v /var/lib/docker-registry:/tmp/registry \
     >   -p 5000:5000 wking/docker-registry