Skip to content

Install script should use environment variables where possible #3390

@telnoratti

Description

@telnoratti

Currently the install script prompts on every variable that needs to be set, usually with some default. This is not particularly conducive for automated deployments as inserting a new input would break any scripts used to configure it now in unpredictable ways. For the dataverse-aws project I need to provide a newline delimited list of options and I'm concerned about this breaking in future updates that add new variables. I suggest the following behaviour:

  1. For a given input, check if a corresponding environment variable exists. If yes, use that and skip all other steps.
  2. If a flag "--automated" is specified in the install script, use the default value and skip all other steps.
  3. Prompt the user for input using the default value if nothing is specified.

Step 2 would fix the issue of unpredictable builds and potentially breaking deployments, but since it requires the user consciously trying to deploy in an automated fashion it would not break the user experience when simply running the install script.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions