apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
484 stars 136 forks source link

Docker for production #513

Open borgoat opened 6 years ago

borgoat commented 6 years ago

Hi

Related to #489 Some key differences:

With the kind help of @mschoengens we prepared a sample docker-compose which may be found in contrib/docker.

As for the Dockerfile, I placed in root directory because this makes for the best scenario for using Docker during development (ie using Docker as the main build tool to make sure the image is always functioning). Whether to keep it there, I guess it all depends on how you like to work at Apple. If you do keep that file in root, what could be easily done is an integration with Docker Hub to have automated builds for the whole codebase.

An alternative could be to create a Docker build that retrieves the latest content from this GitHub repo instead, making it more "stable" and less developer-oriented. Happy to discuss this if needed.

As a side note, I'm now working on an Helm chart to provide a setup similar to that of the docker-compose, but with LDAP, and HA for all services.

Cheers Giorgio

dreness commented 6 years ago

Hi - just wanted to say that I haven't gotten around to trying this yet, but I definitely appreciate the contribution and will try to carve out some time for this soon!