A sample project using Drupal 10 & PHP 8 demonstrating Drupal Devcontainer project.
1.Clone this project with its submodule to drupal-dev-x
folder.
git clone --recurse-submodules https://github.com/alchatti/drupal-devcontainer-sample-project.git drupal-dev-x
2.Using devcontainer cli
access drupal-dev-x
folder and start the project.
cd drupal-dev-x
devcontainer open .
3.Inside the devcontainer using VS Code integrated terminal install dependencies using the container script.
- Option (A) project composer dependencies version [Not Up to date]
composer install
- Option (B) Install & update composer dependencies [Latest version]
yes | composer update
5.In the browser visit http://localhost and start drupal installation using standard profile.
6.Fill in the site information.
- https://github.com/alchatti/drupal-devcontainer the devcontainer project
- https://www.drupal.org/docs/develop/using-composer/manage-dependencies for Using Composer to Install Drupal and Manage Dependencies