lando / pantheon

The Official Lando Pantheon plugin.
https://docs.lando.dev/pantheon
GNU General Public License v3.0
11 stars 18 forks source link

lando rebuild -s appserver removed other containers. #151

Closed awm086 closed 4 months ago

awm086 commented 1 year ago

I was trying to rebuild one service to avoid a possible bug that's preventing the database from persisting on rebuilds. Here are my steps to reproduce lando infor:

[ { service: 'appserver_nginx',
    urls:
     [ 'https://localhost:53782',
       'http://localhost:53783',
       'http://lp-cms.lndo.site/',
       'https://lp-cms.lndo.site/' ],
    type: 'nginx',
    healthy: true,
    managed: true,
    webroot: 'web',
    config:
     { vhosts: '/Users/aalmustafa/.lando/config/pantheon/drupal9.conf.tpl',
       php: '/Users/aalmustafa/.lando/config/pantheon/php.ini',
       server: '/Users/aalmustafa/.lando/config/pantheon/nginx.conf.tpl' },
    version: '1.16',
    meUser: 'www-data',
    hasCerts: true,
    hostnames: [ 'appserver_nginx.mydrupal.internal' ] },
  { service: 'appserver',
    urls: [],
    type: 'php',
    healthy: true,
    via: 'nginx:1.16',
    served_by: 'appserver_nginx',
    webroot: 'web',
    config:
     { php: '/Users/aalmustafa/.lando/config/pantheon/php.ini',
       server: '/Users/aalmustafa/.lando/config/pantheon/nginx.conf.tpl',
       vhosts: '/Users/aalmustafa/.lando/config/pantheon/drupal9.conf.tpl' },
    version: '8.0',
    meUser: 'www-data',
    hasCerts: false,
    hostnames: [ 'appserver.mydrupal.internal' ] },
  { service: 'database',
    urls: [],
    type: 'pantheon-mariadb',
    healthy: true,
    internal_connection: { host: 'database', port: '3306' },
    external_connection: { host: '127.0.0.1', port: '53781' },
    healthcheck: 'mysql -uroot --silent --execute "SHOW DATABASES;"',
    creds: { database: 'pantheon', password: 'pantheon', user: 'pantheon' },
    config: { database: '.lando/my_custom.cnf' },
    version: '10.4',
    meUser: 'mysql',
    hasCerts: false,
    hostnames: [ 'database.mydrupal.internal' ] },
  { service: 'pma',
    urls: [ 'http://localhost:53780', 'http://pma.lp-cms.lndo.site/' ],
    type: 'phpmyadmin',
    healthy: true,
    backends: [ 'database' ],
    config: {},
    version: '5.1',
    meUser: 'www-data',
    hasCerts: false,
    hostnames: [ 'pma.mydrupal.internal' ] } ]

Then lando rebuild -s appserver:

lando rebuild -s appserver 
? Are you sure you want to rebuild? Yes
Rising anew like a fire phoenix from the ashes! Rebuilding app...
Killing mydrupal_appserver_1 ... done
Going to remove mydrupal_appserver_1
Removing mydrupal_appserver_1 ... done
Pulling appserver ... done
database uses an image, skipping
appserver_nginx uses an image, skipping
appserver uses an image, skipping
pma uses an image, skipping
landoproxyhyperion5000gandalfedition_proxy_1 is up-to-date
Removing orphan container "mydrupal_database_1"
Removing orphan container "mydrupal_pma_1"
Removing orphan container "mydrupal_appserver_nginx_1"
Creating mydrupal_mounter_1 ... done

________             ______       ______  ___     _________
___  __/___  ___________  /__________   |/  /___________  /____
__  /  _  / / /_  ___/_  __ \  __ \_  /|_/ /_  __ \  __  /_  _ \
_  /   / /_/ /_  /   _  /_/ / /_/ /  /  / / / /_/ / /_/ / /  __/
/_/    \__,_/ /_/    /_.___/\____//_/  /_/  \____/\__,_/  \___/

then docker ps:

docker ps
CONTAINER ID   IMAGE                                   COMMAND                  CREATED          STATUS          PORTS                                                                     NAMES
fa9831717a8f   devwithlando/pantheon-appserver:8.0-4   "/lando-entrypoint.s…"   11 minutes ago   Up 10 minutes   9000/tcp                                                                  mydrupal_appserver_1
30920f332ef4   traefik:2.2.0                           "/lando-entrypoint.s…"   20 hours ago     Up 21 minutes   127.0.0.1:80->80/tcp, 127.0.0.1:443->443/tcp, 127.0.0.1:53545->8080/tcp   landoproxyhyperion5000gandalfedition_proxy_1
ethangeorgi commented 4 months ago

Assuming this issue has been resolved by now, and closing. If the issue persists, please provide more information.