[v3,01/16] docker: Don't force rebuilds

Message ID 1480097915-12158-2-git-send-email-stephen@that.guru
State Rejected
Headers show

Commit Message

Stephen Finucane Nov. 25, 2016, 6:18 p.m.
It's frustrating to have to rebuild the Docker image everytime the
requirements change. Simply warn the user instead and let them take the
intiative where necessary.

Signed-off-by: Stephen Finucane <stephen@that.guru>
---
 tools/docker/entrypoint.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch

diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh
index 5a23fa3..d06b271 100755
--- a/tools/docker/entrypoint.sh
+++ b/tools/docker/entrypoint.sh
@@ -40,9 +40,8 @@  fi
 for x in /tmp/requirements-*.txt; do
     if ! cmp $x ~/patchwork/$(basename $x); then
         echo "A requirements file has changed."
-        echo "Please rebuild the patchwork image:"
+        echo "You may need to rebuild this image:"
         echo "    docker-compose build web"
-        exit 1
     fi
 done