Open JoeMurray opened 8 years ago
Php is installed using buildkit; If the buildkit build script is updated to use Php 7 or can be set to do so using a flag, it would in theory be extremely easy to use this container in such a way. In fact, it simply runs
curl -Ls https://civicrm.org/get-buildkit.sh | bash -s -- --full --dir /buildkit
And this is the magic from the buildkit team which grabs and prepares Apache, Php, mysql, etc.
I'm happy to advise on creating a stable php 7 installation using the container. In fact a php 7 version may be on the cards for the Civi installations at work soon. However I do not know when I would have the time in the immediate future to do the ground work myself.
@djcf daniel, how far have you got with using Docker and CiviCRM? What do you use with Docker for devOps if anything eg ansible?
@JoeMurray We use Docker to deploy Drupal 7 + CiviCRM on Commonspace (www.commonspace.scot) using a three-container architecture based on djcf/civicrm-docker (not this repository which is just a POC for a single-container architecture based on buildkit). The three-container architecture works well in production. However we had to hack the buildkit installation script a bit to get it to install CiviCRM without also trying to install and manage the SQL database and database server, which we manage separately from buildkit using docker. I don't believe those buildkit work-arounds still apply in the current version of buildkit. So I will likely need to do a bit of work to djcf/civicrm-docker to get it to install without issue at the moment.
We do not at the moment use ansible since for a single-host system, docker and docker-compose seems adequate for our devops requirements.
Heh Daniel, To facilitate testing CiviCRM with PHP7 I'm wondering if it would be a good approach to use one of your docker projects? Can you advise, and perhaps ideally help the community by doing the necessary to create one, as you're ahead of the curve many of us would be on to learn Docker stuff? See https://github.com/civicrm/civicrm-packages/pull/149