Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nodejs] CLI container doesn't respect service overrides #586

Closed
vincenzo opened this issue Dec 15, 2017 · 2 comments
Closed

[nodejs] CLI container doesn't respect service overrides #586

vincenzo opened this issue Dec 15, 2017 · 2 comments
Assignees
Labels
bug Something aint working right!
Milestone

Comments

@vincenzo
Copy link
Contributor

Bug Report

  • Lando: v3.0.0-beta.31
  • OS: macOS High Sierra 10.13.1 (Darwin iDumbo 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64)

My .lando.yml:

name: panda

proxy:
  panda:
    - panda.lndo.site

services:
  panda:
    type: node
    build:
      - "cd /app/ && npm install"
    command: cd /app/ && npm run dev
    overrides:
      services:
        image: node:8.9.3
        environment:
          PORT: 80
          
tooling:
  npm:
    service: panda_cli

When provisioning this, you get:

Pulling panda_cli (node:latest)...
Pulling panda (node:8.9.3)...

The expected behaviour would be to have both on node:8.9.3. I have double checked that they are actually different by ssh-ing into the individual containers.

Also, please note that, according to the docs, the following section:

services:
  panda:
    type: node

should actually be

services:
  panda:
    type: node:custom

but when specifying :custom I get the following error (repeatedly, I guess at each 'pull' attempt):

ERROR: manifest for node:custom not found

This bug doesn't strictly prevent me from using Lando, but it is an impediment as it doesn't allow me to have the same nodejs version on Lando as the one I currently have on Platform.sh, where I deploy the apps for production.

@pirog pirog self-assigned this Jan 4, 2018
@pirog pirog added the bug Something aint working right! label Jan 4, 2018
@pirog pirog added this to the 3.0.0 milestone Jan 4, 2018
@pirog
Copy link
Member

pirog commented Jan 6, 2018

@vincenzo yeah i think this is a good call. I'm guessing you can probably provide overrides by explicitly targeting the cli container but seeing as that happens behind the scenes i think its reasonable that the cli container inherit overrides from the main container while also maintaining its own overrideability

@vincenzo
Copy link
Contributor Author

vincenzo commented Jan 6, 2018

I remember trying to target the _cli service directly for overrides, but didn’t work (cannot remember what it was now). Either way, as you say, the _cli should simply inherit the overrides ogni the parent service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something aint working right!
Projects
None yet
Development

No branches or pull requests

2 participants