Commit Graph

8 Commits

Author SHA1 Message Date
Jeff Lowdermlk 85bea35190 Fix update-demo to work correctly with a web browser.
The built in go http.Fileserver handles If-Modified-Since in the
header by comparing it with the last modified date on the
file/directory. Since the file is unaltered when we switch to a
new container, that results in 304s when trying to fetch data.json, so
the browser doesn't fetch the new picture after doing a rolling update.

Separate issue, the Dockerfile ADD command was being interpreted as
`copy html/data.json into a directory called 'html/kitten.jpg '`,
instead of the `copy these 2 files into root`. Changed to separate
commands using COPY, per recommended dockerfile practices.
2014-12-10 12:34:19 -08:00
David Oppenheimer 651f70bca5 Change update example to use a trivial webserver instead of nginx (issue #1803). 2014-11-12 15:13:11 -08:00
davidopp 9bf3932b8a Revert "Change update example to use a trivial webserver instead of nginx (issue..." 2014-11-11 23:03:23 -08:00
David Oppenheimer 95b7ba3419 Change update example to use a trivial webserver instead of nginx (issue #1803). 2014-11-11 22:16:18 -08:00
Max Forbes 3b9e9387cf Fix some readme and script bugs in examples (take 2).
v2: Resolve issues from comments, fix bugs in update-demo example, rename files for clarity, add turn-down steps.

v3: Add more set commands, clean up rest of env var checks.
2014-09-11 15:06:10 -07:00
Joe Beda bfac5dd64c Revert "Fix some readme and script bugs in examples."
This reverts commit 42baed492b92769b469e1b3c470183990fe78b16.
2014-09-10 13:42:19 -07:00
Max Forbes 5a9b7bcff5 Fix some readme and script bugs in examples. 2014-09-10 13:34:36 -07:00
Joe Beda da34be94bf Pretty up the demo a little.
Use images and some better formatting.  Also add scripts to help prevent typos.

This based on an improved version done by Julia Ferraioli.  She came up with the cool images.
2014-09-04 13:25:39 -07:00