dm-coding / civibuildkit-docker

Efficient distribution of the CiviCRM buildkit in an Ubuntu 14.04 container.
GNU General Public License v3.0
3 stars 1 forks source link

How much effort to create PHP7 version? #1

Open JoeMurray opened 8 years ago

JoeMurray commented 8 years ago

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

dm-coding commented 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.

JoeMurray commented 7 years ago

@djcf daniel, how far have you got with using Docker and CiviCRM? What do you use with Docker for devOps if anything eg ansible?

dm-coding commented 7 years ago

@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.