exoframe icon indicating copy to clipboard operation
exoframe copied to clipboard

Allow configuring values for recipes using project config

Open smirnp opened this issue 6 years ago • 7 comments

Is there any way to locally specify default values/override the recipe in order to reexecute it many times if it fails?

smirnp avatar Jul 11 '18 14:07 smirnp

Not at the moment 🤔

yamalight avatar Jul 11 '18 14:07 yamalight

How then I can execute recipe fully automatic (without any user interaction)? Maybe it is possible to download and execute locally modified (automatically) recipe? Otherwise the Exoframe is not applicable for continuous deployment?

smirnp avatar Jul 30 '18 08:07 smirnp

@smirnp I think that sounds as a useful additional feature. I'll change the ticket to feature and will try to ship it in 3.1 update. but yes, if you fork the recipe, hardcode all the answers and make getQuestions return empty array - it should execute without asking anything.

yamalight avatar Jul 30 '18 09:07 yamalight

These operations:

exoframe login
exoframe endpoint http://you.server.url

can be avoided just by putting needed values into .exoframe/cli.config.yml?

smirnp avatar Jul 30 '18 11:07 smirnp

yes, this is correct

yamalight avatar Jul 30 '18 12:07 yamalight

if you fork the recipe, hardcode all the answers and make getQuestions return empty array - it should execute without asking anything.

I have cloned the project, modified index.js, but the 'exoframe setup exoframe-recipe-hobbit' seems not to take it. Should I rebuild the recipe or use another command?

smirnp avatar Jul 30 '18 16:07 smirnp

Currently Exoframe loads recipes from npm - hence when you execute exoframe setup exoframe-recipe-hobbit it pulls current version of recipe from there. You need to publish your own version either to npm, or to local registry (then you'd need to provide config to yarn in exoframe-server) and install it from there.

yamalight avatar Jul 30 '18 16:07 yamalight