Giter VIP home page Giter VIP logo

Comments (8)

cf-gitbot avatar cf-gitbot commented on July 28, 2024

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/130344397

The labels on this github issue will be updated when the story is started.

from nodejs-buildpack.

RochesterinNYC avatar RochesterinNYC commented on July 28, 2024

@patapata23 can you please explain what it is you're trying to do?

Staging will always have VCAP_APPLICATION set as an environment variable (even if it's just an empty hash), so if VCAP_APPLICATION is missing, your environment is not truly emulating staging.

from nodejs-buildpack.

sclevine avatar sclevine commented on July 28, 2024

To add to that, a number of other buildpacks expect VCAP_APPLICATION to be set as well.

Here's a Dockerfile that fully simulates staging and launching: https://github.com/sclevine/cflocal/blob/master/Dockerfile

from nodejs-buildpack.

patapata23 avatar patapata23 commented on July 28, 2024

@RochesterinNYC Thank you for your reply.
I'll trying to excute only unit-test in nodejs-buildpack environment.
when my envrironment is truly emulating staging envirionment, It will be executed in the order of the detect -> compile -> release .
I'll executing the only compile command in our concourse CI for unit-testing.

Certainly, This Issue is solved by setting the environment variable as you're right.
I want to know why you require New Relic library.

from nodejs-buildpack.

RochesterinNYC avatar RochesterinNYC commented on July 28, 2024

What do you mean by execute only unit-test? Do you mean you're only trying to execute the unit tests in the nodejs buildpack? i.e. https://github.com/cloudfoundry/nodejs-buildpack/tree/master/cf_spec/unit ?

What exactly are you unit testing?

I'm not sure you what you mean by requiring the New Relic library.

from nodejs-buildpack.

patapata23 avatar patapata23 commented on July 28, 2024

@RochesterinNYC

What exactly are you unit testing?

I use this buildpack in Concourse CI, not in CloudFondry environment.
So, there is no VCAP_APPLICATION.

I compile my own app with nodejs-buildpack, then I execute unit-tests in my app.

I'm not sure you what you mean by requiring the New Relic library.

when excuting compile, New Relic is always installed.
I do not know why New Relic is always installed.
Because did not install the New Relic, heroku.
https://github.com/heroku/heroku-buildpack-nodejs/blob/master/bin/compile

from nodejs-buildpack.

RochesterinNYC avatar RochesterinNYC commented on July 28, 2024

You're using the nodejs buildpack to stage apps on Concourse? If that's the case, I wouldn't refer to these Cloud Foundry buildpacks as generic enough that they can stage any app on any environment. They're attuned to Cloud Foundry and they are Cloud Foundry buildpacks, so you'd need to either fork the buildpack and remove Cloud Foundry specific nuances or alter your staging environment to emulate the Cloud Foundry staging environment.

The NewRelic library is not included as part of the nodejs-buildpack at all. The NewRelic client library is contained in a newrelic.js file that users include in their applications. We only have support in the buildpack to set some New Relic environment variables if your app binds to a New Relic service broker. I'm not sure what you're referring to.

from nodejs-buildpack.

patapata23 avatar patapata23 commented on July 28, 2024

@RochesterinNYC
Your explanation was understanding. And polite reply thanks.
I'll try to test by setting the staging environment in concourseCI.

About NewRelic library, it had been the understanding that I was wrong. I'm sorry.

Thank you very much.

from nodejs-buildpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.