Skip to content

docker compose: make GitHub/GitLab user and key effectively optional #3633

@giordano

Description

@giordano

Is your feature request related to a problem? If so, please describe the problem:

Follow up to #3300 (review), it should be possible to make the user and keys effectively optional.

Potential solutions:

Untested, but I'm mildly sure that something like

diff --git a/scripts/install/config.sh b/scripts/install/config.sh
index 0408b0aa0..6134c378d 100755
--- a/scripts/install/config.sh
+++ b/scripts/install/config.sh
@@ -15,6 +15,10 @@ function blank_confirm() {
 
     confirm_placeholder=${!1}
 
+    if [ -t 0 ]; then
+       return
+    fi
+
     while [ -z "${confirm_placeholder}" ]; do
         echo "You entered a blank line, are you sure?"
         read -p "enter 'yes' to continue, or enter the intended value: " confirm_placeholder

should do the trick.

Additional context:

This is a CHAOSS Con rapid prototyping experiment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions