-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VACMS-8588: Convert all remaining lando references to ddev (2) (#9461)
Co-authored-by: Steve Wirt <swirtSJW@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nate Douglas <ndouglas@users.noreply.github.com> Co-authored-by: Nathan Douglas <github@darkdell.net> Co-authored-by: Cameron Eagans <me@cweagans.net> Co-authored-by: Lynn Stahl <lynn.stahl@agile6.com> Co-authored-by: Tanner Heffner <tanner.heffner@agile6.com> Co-authored-by: Jill Adams <85581471+jilladams@users.noreply.github.com>
- Loading branch information
1 parent
0b7dcac
commit 2ec599a
Showing
61 changed files
with
363 additions
and
967 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
## Usage: pre-commit | ||
|
||
set -e | ||
./scripts/lando-precommit.sh | ||
./scripts/precommit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
services: | ||
web: | ||
env_file: | ||
- ../.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
{ | ||
"name": "va.gov-cms", | ||
"settings": { | ||
"editor.formatOnSave": true, | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"workbench.startupEditor": "readme" | ||
}, | ||
"extensions": [ | ||
"cweijan.vscode-mysql-client2", | ||
"dbaeumer.vscode-eslint", | ||
"eamodio.gitlens", | ||
"esbenp.prettier-vscode", | ||
"felixfbecker.php-debug", | ||
"felixfbecker.php-intellisense", | ||
"github.vscode-pull-request-github", | ||
"neilbrayfield.php-docblocker", | ||
"stylelint.vscode-stylelint", | ||
"valeryanm.vscode-phpsab" | ||
], | ||
"postCreateCommand": "/bin/bash ./.devcontainer/post-create.sh 2>&1 | tee ~/post-create.log", | ||
"postStartCommand": "/bin/bash ./.devcontainer/post-start.sh 2>&1 | tee ~/post-start.log" | ||
} | ||
"name": "va.gov-cms", | ||
// https://github.com/drud/ddev/issues/3914 | ||
// https://code.visualstudio.com/remote/advancedcontainers/environment-variables | ||
"containerEnv": { | ||
"DDEV_PRETEND_GITPOD": "true" | ||
}, | ||
"remoteEnv": { | ||
"DDEV_PRETEND_GITPOD": "true" | ||
}, | ||
"settings": { | ||
"editor.formatOnSave": true, | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"workbench.startupEditor": "readme" | ||
}, | ||
"extensions": [ | ||
"cweijan.vscode-mysql-client2", | ||
"dbaeumer.vscode-eslint", | ||
"eamodio.gitlens", | ||
"esbenp.prettier-vscode", | ||
"felixfbecker.php-debug", | ||
"felixfbecker.php-intellisense", | ||
"github.vscode-pull-request-github", | ||
"neilbrayfield.php-docblocker", | ||
"stylelint.vscode-stylelint", | ||
"valeryanm.vscode-phpsab" | ||
], | ||
"postCreateCommand": "/bin/bash ./.devcontainer/post-create.sh 2>&1 | tee ~/post-create.log", | ||
"postStartCommand": "/bin/bash ./.devcontainer/post-start.sh 2>&1 | tee ~/post-start.log" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Download lando https://docs.lando.dev/basics/installation.html#linux | ||
wget -O /tmp/lando-stable.deb https://files.devwithlando.io/lando-stable.deb | ||
|
||
# Install lando https://docs.lando.dev/basics/installation.html#docker-ce | ||
sudo dpkg -i --ignore-depends=docker-ce /tmp/lando-stable.deb | ||
|
||
# Remove lando package. | ||
rm /tmp/lando-stable.deb | ||
# Install ddev. | ||
curl https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh | bash | ||
|
||
# Add upstream git remote. | ||
git remote add upstream https://github.com/department-of-veterans-affairs/va.gov-cms.git | ||
|
||
# Provide php symlink for vscode extensions. | ||
if command -v /opt/php/lts/bin/php; then sudo ln -s /opt/php/lts/bin/php /usr/bin; fi | ||
|
||
# Start lando. | ||
lando start | ||
# Populate a .env file for ddev and friends. | ||
cp .env.example .env | ||
|
||
# To avoid a blocking prompt. See https://ddev.readthedocs.io/en/stable/users/cli-usage/#opt-in-usage-information. | ||
ddev config global --instrumentation-opt-in=true | ||
|
||
# Start ddev. | ||
ddev start | ||
|
||
# Import the database. | ||
./scripts/sync-db.sh | ||
./scripts/sync-files.sh | ||
ddev pull va --skip-files -y | ||
|
||
echo | ||
echo "All done! Welcome to the VA.gov CMS :-)" | ||
echo "All done! Welcome to the VA.gov CMS :-)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Start lando if it's not already running. | ||
LANDO_SERVICE_COUNT=$( lando list --format json | jq '.[].status' | wc -l ) | ||
if [[ ${LANDO_SERVICE_COUNT} -lt 4 ]]; then | ||
lando start | ||
# Start ddev if it's not already running. | ||
if [ -x "$(command -v ddev)" ] && ! docker ps | grep ddev > /dev/null; then | ||
ddev start | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ddev Environment Variables | ||
# | ||
# This file is used by the file scripts/composer/EnvironmentHandler.php for setting environment variables when running the | ||
# site using the ddev local development environment. | ||
# | ||
# If you wish to override these, you can create a .env file and that will be loaded instead. | ||
|
||
# Used by WEB build process. | ||
DRUPAL_ADDRESS=https://va-gov-cms.ddev.site | ||
|
||
# Used by behat tests. | ||
# DO NOT use environment variable insertion here. Other systems may load this in a different order. | ||
BEHAT_PARAMS={"extensions":{"Behat\\MinkExtension":{"base_url":"https://va-gov-cms.ddev.site"},"Drupal\\DrupalExtension":{"drush":{"root":"/var/www/html/docroot","alias":"@none"},"drupal":{"drupal_root":"/var/www/html/docroot"}}}} | ||
|
||
# Keep this to ensure environment type is set. | ||
CMS_ENVIRONMENT_TYPE=local | ||
|
||
# You can uncomment this to develop environment-specific functionality like the | ||
# Rebuild & Deploy Page | ||
# CMS_ENVIRONMENT_TYPE=prod |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.