Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Add no-docker CLI option to install command #148

Open
nexdrew opened this issue Jun 30, 2016 · 0 comments
Open

Add no-docker CLI option to install command #148

nexdrew opened this issue Jun 30, 2016 · 0 comments

Comments

@nexdrew
Copy link
Contributor

nexdrew commented Jun 30, 2016

Since the Docker install script can have unwanted side effects and since the Replicated install script supports an option to skip the Docker install, we should allow folks to run the installer without running the Docker script. I'm thinking this could be supported in the following ways:

  • Install the npme bin first and then run the install command with a flag:

    npm i npme -g --ignore-scripts
    npme install --no-docker
  • Pass a flag/arg to the autoinstall command on bin installation:

    # this
    sudo DOCKER=false npm i npme -g --unsafe
    # or this
    DOCKER=false sudo -E npm i npme -g --unsafe

Here are the supported args from the Replicated install script:

# override these values with command line flags
while [ "$1" != "" ]; do
    _param=`echo "$1" | awk -F= '{print $1}'`
    _value=`echo "$1" | awk -F= '{print $2}'`
    case $_param in
        http-proxy|http_proxy)
            PROXY_ADDRESS="$_value"
            ;;
        local-address|local_address)
            PRIVATE_ADDRESS="$_value"
            ;;
        no-operator|no_operator)
            SKIP_OPERATOR_INSTALL=1
            ;;
        is-migration|is_migration)
            IS_MIGRATION=1
            ;;
        no-docker|no_docker)
            SKIP_DOCKER_INSTALL=1
            ;;
        no-proxy|no_proxy)
            NO_PROXY=1
            ;;
        airgap)
            AIRGAP=1
            ;;
        no-auto|no_auto)
            READ_TIMEOUT=
            ;;
        daemon-token|daemon_token)
            DAEMON_TOKEN="$_value"
            ;;
        tags)
            OPERATOR_TAGS="$_value"
            ;;
        *)
            echo >&2 "Error: unknown parameter \"$_param\""
            exit 1
            ;;
    esac
    shift
done
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant