Are any of the CiviCRM core team using docker? and is there a preferred installation?
I note there are a few drupal docker projects, such as this but couldn't see anything for Civi.
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.Sign up to join this community
PTP has been experimenting with docker for a few months and is planning to use it in production soon (to replace our aegir provisioning system). I've just been working today on finishing a Docker file for setting up a civicrm-buildkit instance.. Feedback welcome!
No one on the core team is actively using docker, although a few of us experiment with it.
Civibuild tackles a slightly different part of the stack than Docker or Vagrant. Where Docker and Vagrant generate a system-image (complete with Linux distro, binaries, and PHP/JS code), civibuild is only the portable part which installs the PHP/JS app. Civibuild could be used within a Vagrant/Docker/EC2/OpenStack system. Ideally, it would be great to have a http://packer.io/ setup with civibuild.
I have put together a CiviCRM-buildkit-based Docker image myself, and I would appreciate help and feedback with testing. It's quite configurable as you can choose any buildkit-based build script, and it includes SSMTP support for sending emails.
The primary advantage here is that it adheres to the Docker principals and philosophy. It is minimal, only including what the buildkit environment needs. It doesn't require the user to preconfigure their Docker build environment, which many Docker hosts don't give you access to, it doesn't use baseimage, and it doesn't bundle it's own SSH server.
I could never quite get the existing CiviCRM container to work right so I decided to build from scratch. It takes the basic Drupal Container (with PHP 7.4 and MariaDB) then adds all the updates and the latest versions.
You can get the scripts and instructions here: https://github.com/jdgamsterdam/civicrmdocker