Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ddev into Acquia CMS. #1871

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .ddev/config.private-environment-variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Uncomment below lines to activate the variables.
#web_environment:
# - SITESTUDIO_API_KEY=<xxx-xxx-xxx>
# - SITESTUDIO_ORG_KEY=<xxx-xxx-xxx>
# - CONNECTOR_ID=<xxx-xxx-xxx>
# - SEARCH_UUID=<xxx-xxx-xxx-xxx>
# - CONNECTOR_KEY=<xxx-xxx-xxx-xxx>
# - CLOUD_API_KEY=<xxx-xxx-xxx-xxx>
# - CLOUD_API_SECRET=<xxx-xxx-xxx-xxx>
# - GMAPS_KEY=<xxx-xxx-xxx-xxx>
19 changes: 19 additions & 0 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: acquia-cms
type: drupal
docroot: docroot
php_version: "8.3"
webserver_type: nginx-fpm
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
database:
type: mariadb
version: "10.11"
use_dns_when_possible: true
composer_version: "2"
web_environment:
- SIMPLETEST_BASE_URL=http://web
- SIMPLETEST_DB=mysql://db:db@db/db
- BROWSERTEST_OUTPUT_DIRECTORY=docroot/sites/simpletest/browser_output
# - MINK_DRIVER_ARGS_WEBDRIVER='["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-gpu","--headless", "--no-sandbox"]}}, "http://chromedriver:9515"]'
corepack_enable: false
15 changes: 15 additions & 0 deletions .ddev/docker-compose.chromedriver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
chromedriver:
container_name: ddev-${DDEV_SITENAME}-chromedriver
image: drupalci/chromedriver:production
labels:
# These labels ensure this service is discoverable by ddev
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
com.ddev.app-url: $DDEV_URL
# This links the Chromedriver service to the web service defined
# in the main docker-compose.yml, allowing applications running
# in the web service to access the driver at `chromedriver`.
web:
links:
- chromedriver:$DDEV_HOSTNAME
12 changes: 12 additions & 0 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ Contact Michael Sherron or Prafful Nagwani for an invitation.
### Background
To provide a consistent environment for our development team, Acquia CMS is developed using Acquia's Cloud IDE service, which provides a VSCode-like developer experience. It is possible to work on Acquia CMS on your own machine, using an IDE of your choice, but we do not recommend that set-up in most circumstances.

### Setting up using DDEV
1. Install docker provider [Colima](https://ddev.readthedocs.io/en/stable/users/install/docker-installation/#colima) using brew `brew install colima`.
2. Start colima services `colima start`.
3. Install ddev using brew `brew install ddev/ddev/ddev`.
4. Clone this repository `git clone [email protected]:acquia/acquia_cms.git`.
5. Change directory to acquia_cms `cd acquia_cms`.
6. Run `composer install`.
7. Update your private environment variable from `.ddev/config.private-environment-variables.yml`.
8. Run `ddev start` to star container.
9. Install site using `ddev composer acms:install` and provide the input requested by script to proceed with installation.
10. Visit the site [http://acquia-cms.ddev.site](http://acquia-cms.ddev.site).

### Setting up a Cloud IDE
Because there is a limited number of Cloud IDEs available to the Acquia CMS team, each active developer should only need (and have) one. Therefore, you should only do this once.

Expand Down
Loading