From 0befce14024e0c508db3d9b3f941dbec580a0370 Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Tue, 17 Dec 2024 21:02:57 +0200 Subject: [PATCH 1/2] refactor(dev-env): use named volumes for WordPress instead of bind mounts --- assets/dev-env.lando.template.yml.ejs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/dev-env.lando.template.yml.ejs b/assets/dev-env.lando.template.yml.ejs index bfcc12bed..683298af1 100644 --- a/assets/dev-env.lando.template.yml.ejs +++ b/assets/dev-env.lando.template.yml.ejs @@ -192,7 +192,7 @@ services: services: image: ghcr.io/automattic/vip-container-images/wordpress:<%= wordpress.tag %> volumes: - - ./wordpress:/shared + - wordpress:/shared - type: volume source: scripts target: /scripts @@ -200,6 +200,8 @@ services: nocopy: true initOnly: true entrypoint: /usr/bin/rsync -a --chown=${LANDO_HOST_USER_ID}:${LANDO_HOST_GROUP_ID} /wp/ /shared/ + volumes: + wordpress: {} <% if ( muPlugins.mode == 'image' ) { %> vip-mu-plugins: @@ -300,7 +302,11 @@ tooling: - ./config:/wp/config - ./log:/wp/log - ./uploads:/wp/wp-content/uploads - - ./wordpress:/wp + - type: volume + source: wordpress + target: /wp + volume: + nocopy: true <% if ( muPlugins.mode == 'image' ) { %> - type: volume source: mu-plugins From 47629479cfce467a9d5228188ea886ba5b742f2d Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Tue, 17 Dec 2024 21:12:48 +0200 Subject: [PATCH 2/2] chore: bum dev env config version --- src/lib/constants/dev-environment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/constants/dev-environment.ts b/src/lib/constants/dev-environment.ts index 196c86fb7..a3ff30bff 100644 --- a/src/lib/constants/dev-environment.ts +++ b/src/lib/constants/dev-environment.ts @@ -49,4 +49,4 @@ export const DEV_ENVIRONMENT_DEFAULTS = { phpVersion: Object.keys( DEV_ENVIRONMENT_PHP_VERSIONS )[ 0 ], } as const; -export const DEV_ENVIRONMENT_VERSION = '2.1.3'; +export const DEV_ENVIRONMENT_VERSION = '2.2.0';