Background
I currently have a site that is built using gitlab, composer, vagrant (Drupal-VM) and virtual box, along with other tools like drush, blt, and lighting core. I am new containerization and docker and would like some help in spinning up local environment
TL;DR
From my understanding this means we pretty much spin up a ubuntu vbox that then install a "package" or vagrant box that contains all the tools needed for Drupal, then use blt to start the app. Then drush to handle interacting with the Drupal site.
Problem
Even though these seem like simple steps this process is can be very difficult when you encounter issues with having mismatching version of vagrant, virtual box, php, Drupal versions or even OS upgrade etc..
I have looked into the following possibilities:
- DDev
- Drupal-VM-Docker
- DevDesktop
- Drupal Docker
- Drupal VM Docker Composer Plugin
- Drupal VM Docker
- Acquia Cloud IDE
Question
How do I migrate to a container and spin up a Drupal image that uses my preexisting code base?
Current Process and Configuration
SITE INFO: Drupal 8.9, PHP 7.3, MySQL 5.x
The process is as follows:
- baseline code with develop
- composer install
- vagrant up
- vagrant ssh
- blt setup
- drush uli -l "local.site.com"
- If you make config changes (i.e new fields, views, content types you run drush cex -y)
- Then add to code branch and run blt setup one more time to verify its all built cleanly
- Then using
blt artifact
we deploy an artifact to the dev acquia cloud site factor to deploy to dev