Giter Site home page Giter Site logo

Comments (6)

pcoop avatar pcoop commented on June 26, 2024

What sort of change do you have in mind? Would you like there to be --nodejsappXML and --nodejsappProfile parameters that could optionally be used to identify existing meta-data files to use when generating a NODEJSAPP? Or how about a --profileinclude parameter that would cause the generated profile to include another named profile from within the current bundle? If we take that route, should we perhaps have more parameters to set NODEHOME, TZ and friends from the command line?

I'm asking as this use-case feels a little too off-piste to me, I'm wondering if you've thought of a usage pattern in which a naive user might legitimately encounter this requirement? Power users are of course able to modify the meta-data files however they like from first principles (including storing/recovering them to/from SCM), whereas bundle generate is aimed at someone who isn't that familiar with CICS Bundles.

I don't think we're intending to support all of the customisation options that could be imagined within the bundle generate command line, so what would make this scenario significant enough to be worth adding support for?

from zowe-cli-cics-deploy-plugin.

ChrisAtkinson1 avatar ChrisAtkinson1 commented on June 26, 2024

This is a good question.

Maybe in my niaive user role I'd like it to autodetect the .profile.

The options on a command line are probably the second choice. --profileinclude being my preference.

The other options may be nice to have - or indeed read in from some .properties file or something.

from zowe-cli-cics-deploy-plugin.

matthewpwilson avatar matthewpwilson commented on June 26, 2024

I think the straightforward answer here is that you can use your own profile, you'd just need to copy it over the top of the generated profile or modify the generate nodesjapp to point to your profile.
I'm inclined to agree with Paul here, I can't think of a use-case where Freyja would already have a profile in-hand, so I'm not sure it's worth going to too much effort here.

from zowe-cli-cics-deploy-plugin.

ChrisPark89 avatar ChrisPark89 commented on June 26, 2024

I also agree with Paul. If we compare this with Docker world, nodejs developers have to write their own Dockerfile, which is a somewhat similar to our profile, so I guess bundle generate command is a helping tool, rather than a tool that has to provide everything.

from zowe-cli-cics-deploy-plugin.

markcocker avatar markcocker commented on June 26, 2024

I think it unlikely a Node.js app will have an existing .profile. Rather, if the app had a need to set environment variables it would be an .env file and use a package such as https://www.npmjs.com/package/dotenv to read it - this should just work in when run in CICS.

More likely is the need to copy a .profile from another app that was deployed to CICS, in which case @matthewpwilson comments above apply - ie. they can copy the contents into the generate profile or copy over the generated file.

from zowe-cli-cics-deploy-plugin.

ChrisAtkinson1 avatar ChrisAtkinson1 commented on June 26, 2024

As discussed above this is thought to be invalid.

from zowe-cli-cics-deploy-plugin.

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.