lando / docs

The main docs site for Lando
https://docs.lando.dev/
GNU General Public License v3.0
20 stars 56 forks source link

Document how to enable PHP Sockets inside Lando #62

Closed greggmarshall closed 4 years ago

greggmarshall commented 5 years ago

How would I enable the PHP sockets extension in Lando. Mink-zombie-driver is complaining about it not being enabled. I've tried the

Describe the change you'd like I'd like to see documentation that would tell me how to have a lando environment that would run the Drupal behat mink-zombie-driver which requires sockets.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

eelkeblok commented 5 years ago

For those stumbling upon this from a web search, you can do this by adding a build step:

  build_as_root:
    - docker-php-ext-install sockets
pirog commented 5 years ago

Going to remove the wontfix here and suggest we add augment https://docs.lando.dev/config/php.html#adding-or-removing-extensions with some more details (probably just a link to the underlying docker mechanisms) about how to install php extensions

optionally we could create a guide for sockets in particular

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.

alphex commented 4 years ago

Add this to your .lando.yml file. Where "appserver" is the default service thats already running in your lando install. This details the added tasks it has to run when you build it. IF you want to add this, you'll need to lando rebuild.

(check your spacing, for YML requirements)

services:
  appserver:
    type: php
    build_as_root:
      - docker-php-ext-install sockets
andrewg211 commented 2 years ago
services:
  appserver:
    build_as_root:
      - apt-get update
      - apt-get install -y autoconf
      - docker-php-ext-install sockets