Skip to content

Commit

Permalink
Build workspace from scratch with no ready-made-envs (#127)
Browse files Browse the repository at this point in the history
* Build workspace from scratch with no ready-made-envs
  • Loading branch information
shaal authored Sep 30, 2023
1 parent 7bbb318 commit 1400d9f
Show file tree
Hide file tree
Showing 12 changed files with 141 additions and 447 deletions.
6 changes: 3 additions & 3 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: drupalpod
type: drupal9
name: DrupalPod
type: drupal10
docroot: web
php_version: "8.1"
webserver_type: nginx-fpm
Expand All @@ -8,7 +8,7 @@ additional_hostnames: []
additional_fqdns: []
database:
type: mariadb
version: "10.3"
version: "10.4"
use_dns_when_possible: true
composer_version: "2"
web_environment: []
Expand Down
3 changes: 1 addition & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Variable is used in set-default-environment.sh, drupalpod-setup.sh
DP_DEFAULT_CORE=10.1.0
# Variables here can be used in set-default-environment.sh, drupalpod-setup.sh
4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ tasks:
.gitpod/utils/send-a-message-gcs.sh > /tmp/output1.txt
.gitpod/utils/download-ddev-images.sh
.gitpod/utils/ddev-in-gitpod-setup.sh
.gitpod/drupal/envs-prep/prepare-environments-gcs.sh > /tmp/output2.txt
.gitpod/drupal/envs-prep/set-default-environment.sh
.gitpod/utils/set-base-environment.sh
time ddev start
command: |
# Temporary fix for wrong value of GITPOD_REPO_ROOT when opening a Gitpod snapshot
# Todo: remove this when this issue is resolved - https:/gitpod-io/gitpod/issues/9804
Expand Down
16 changes: 2 additions & 14 deletions .gitpod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,16 @@

1. Push code, and re-open Gitpod workspace, to use latest custom docker image.

1. Create ready-made environments

1. Update list of drupal versions that will be in ready-made environments.
`.gitpod/drupal/envs-prep/all-drupal-supported-versions.txt`
1. Update `.env` with the desired default core version.
1. Run `.gitpod/drupal/envs-prep/create-environments.sh` to create ready-made environments.
1. Confirm ready-made environments zip file was uploaded to Google Cloud.

1. Run manual prebuild (to load latest ready-made environments)
1. Run manual prebuild (to load ddev's images)

1. Confirm latest setup
1. Open new workspace (it will load ready-made environments with same name as current branch).
1. Open new workspace.
1. Check if there are any updates (ie. DDEV's default settings files).
1. Recreate ready-made environments if needed.

1. Test various scenarios with DrupalPod browser extension
1. Confirm core issues work as expected.
1. Confirm contrib issue work as expected.

1. Prepare ready-made environments in 'main' directory
1. Copy ready-made environments in Google Cloud from branch directory to 'main' directory, so when prebuild runs on 'main', it will pick up the right file <https://console.cloud.google.com/storage/browser/drupalpod>

1. Merge PR into `main` branch

1. Confirm `main` branch work as expected 🎉
Loading

0 comments on commit 1400d9f

Please sign in to comment.