Praqma / staci

Containerizing the Atlassian tools stack. Jira, Confluence, Bamboo and a MySQL database.
MIT License
12 stars 5 forks source link

Make interactive installer for STACI #29

Open RandomSort opened 8 years ago

RandomSort commented 8 years ago

Do you want Jira? [Y/n] So on and so forth. Could be written to properties file or just installed. Install could be interactive if no staci.properties exist. Make the easy choices easy to make.

buep commented 8 years ago

And maybe when using interactive, write the staci.properties for the user as reference for later.

martinmosegaard commented 8 years ago

Started work on interactive mode, but there is some design work to do here: The current approach tries to share an installStaci function between interactive mode and the other mode, which I call property mode -- reading property files.

But throughout all functions, the get_Property functions dominate. They all fail if property files do not exist. One option is to refactor installStaci and child functions to take input arguments instead of using get_Property. That is a lot of work. Another option is to refactor get*Property to take a "default value" argument, which can be used if a property file does not exist. This has a couple of drawbacks or at least side effects to consider:

martinmosegaard commented 8 years ago

Some options can get a nice default value based on the environment. For example the provider_type should default to virtualbox on Mac and none on Linux.

And the current default for browser_cmd is not likely to work on a Mac.

martinmosegaard commented 8 years ago

Needs grooming, break down into smaller tasks