Code Monkey home page Code Monkey logo

ar-civicrm-docker's Introduction

AR Drupal+CiviCRM Docker Environment

Docker environment to stand up Drupal+CiviCRM for Arch Reactor website testing.

Directory Structure

drupal:
Contents copied and adapted from https://lab.civicrm.org/michaelmcandrew/civicrm-docker/-/blob/master/5/drupal

drupal/archreactor:
Folder of expanded contents of site backup tarball, expecting subfolders archreactor.org and private

drupal/civicrm-docker-custom:
Customized Dockerfiles and associated assets

drupal/db-civicrm:
MariaDB volume for CiviCRM database

drupal/db-drupal:
MariaDB volume for Drupal database

Importing site backup SQL

Update SQL dumps to satisfy current version Maria DB:

sed -i 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_520_ci/g' archreactor/archreactor.org/archreactor.sql
sed -i 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_520_ci/g' archreactor/archreactor.org/civicrm.sql

Manually import drupal SQL into MariaDB container (if needed):

docker exec -i containername mysql -uroot -ppassword mariaDBroot < dump.sql

Disable HTTPS autoforward in securelogin module, needed to load URLs like http://ardev.localhost :

drush pm-disable securelogin

List users, D7 only:

drush uinf $(drush sqlq "SELECT GROUP_CONCAT(uid) FROM users")

Drupal 7/8 set user's password via username or uid:

drush user-password USERNAME --password="SOMEPASSWORD"
drush upwd 1 --password="password"

References

This CiviCRM repo provides the docker compose/Dockerfile content this repo is based on:
https://lab.civicrm.org/michaelmcandrew/civicrm-docker

Dockerfile source:
https://lab.civicrm.org/michaelmcandrew/civicrm-docker/-/blob/master/5/drupal/php8.1/Dockerfile?ref_type=heads

ar-civicrm-docker's People

Contributors

westbywest avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.