Hi Caleb,
Thank you for working on this container! I am trying to build it right
now :)
How do you manage your docker containers? Do you use Docker Fleet (I see
you mentioning it)? I want to try to use the same tools in production as
you are.
I will probably try to use it wit no S3 storage and see how that goes.
Thank you,
Andrei
On 04/20/2015 03:43 AM, Caleb Tutty wrote:
> Hi all,
>
> First of all I want to say thank you to everyone who has contributed to
> such a useful piece of civic tech. In New Zealand it has been (and will
> continue to be) an amazing public resource, and I know that is because of
> the huge amount of hard work that has gone in to it.
> At my previous job <
http://carnivalmobile.com> we started using Docker as a
> tool for deployment as the benefits of containerising all dependencies
> meant for faster and less brittle deployments, rollbacks meant just picking
> a previous image version.
>
> I'd like to give a brief overview of what our thinking has been, and I'll
> try flesh this out a bit more in a blog post (and post a link).
>
>
>
FYI.org.nz went down when the Open Knowledge Foundation found that one of
> their servers (shared by a number of different groups) had potentially been
> exploited. In this situation we thought that the first priority was to make
> sure we didn't miss any email while we figured out how we wanted to rebuild
> the server(s).
>
>
> After seeing that Postfix piped to the *mailin* script, and that mailin
> script used *rails runner* to boot the Rails environment and read *STDIN*
> to the *receive* method of *RequestMailer*, I thought that a
> - Dropbox replication may be problematic. Currently the strategy is that
> if app-01 is knocked out, then Xapian indexing will stop and all other
> worker jobs will stop (as the sidekiq). Fleet (as part of CoreOS) can also
> manage relaunching services with a bit of configuration.
> - Dropbox replication could be made redundant if we move to more evented
> background jobs.
> - Sidekiq can be replaced with delayed_job and used in non-dockerised
> deployments without the need for Redis. This was chosen more for speed and
> familiarity with the Sidekiq, and because of Sidekiq's monitoring UI
> - The Alaveteli docker image migrates the database each time. This
> should be a no-op if no changes are needed, but a more solid zero-downtime
> strategy when migrations are required probably takes a bit more thought.
> Perhaps one-shot containers.
> - The Alaveteli docker image also precompiles assets each launch, which