Skip to content

Commit

Permalink
Merge pull request #1920 from Automattic/update/pma
Browse files Browse the repository at this point in the history
refactor(dev-env): migrate from `@lando/phpmyadmin` to `phpmyadmin` Docker image
  • Loading branch information
sjinks authored Jul 1, 2024
2 parents a0db042 + 7448dff commit 8e82901
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
21 changes: 17 additions & 4 deletions assets/dev-env.lando.template.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,25 @@ services:

<% if ( phpmyadmin ) { %>
phpmyadmin:
type: phpmyadmin
hosts:
- database
overrides:
type: compose
services:
image: phpmyadmin:5
command: /docker-entrypoint.sh apache2-foreground
environment:
MYSQL_ROOT_PASSWORD: ''
PMA_HOSTS: database
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: ''
UPLOAD_LIMIT: 4G
LANDO_NO_USER_PERMS: 1
LANDO_NEEDS_EXEC: 1
ports:
- 127.0.0.1::80
volumes:
- pma_www:/var/www/html
volumes:
pma_www:
<% } %>

<% if ( elasticsearch ) { %>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants/dev-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ export const DEV_ENVIRONMENT_DEFAULTS = {
phpVersion: Object.keys( DEV_ENVIRONMENT_PHP_VERSIONS )[ 0 ],
} as const;

export const DEV_ENVIRONMENT_VERSION = '2.0.3';
export const DEV_ENVIRONMENT_VERSION = '2.1.0';
2 changes: 1 addition & 1 deletion src/lib/dev-environment/dev-environment-lando.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async function getLandoConfig(): Promise< LandoConfig > {
namespace: '@lando',
},
],
disablePlugins: [ '@lando/argv', '@lando/mailhog' ],
disablePlugins: [ '@lando/argv', '@lando/mailhog', '@lando/phpmyadmin' ],
proxyName: 'vip-dev-env-proxy',
userConfRoot: landoDir,
home: fakeHomeDir,
Expand Down

0 comments on commit 8e82901

Please sign in to comment.