зеркало из https://github.com/microsoft/spinnaker.git
Tweak developer install to turn off cassandra. (#1293)
This commit is contained in:
Родитель
9dcb0d2d73
Коммит
b12b26a192
|
@ -190,6 +190,9 @@ if prompt_YN "Y" "Install (or update) Google Cloud Platform SDK?"; then
|
|||
pushd $HOME
|
||||
echo "*** BEGIN installing gcloud..."
|
||||
curl https://sdk.cloud.google.com | bash
|
||||
echo "Adding kubectl..."
|
||||
gcloud components install kubectl -q || true
|
||||
|
||||
if [[ ! -f $HOME/.config/gcloud/credentials ]]; then
|
||||
echo "Running gcloud authentication..."
|
||||
gcloud auth login
|
||||
|
@ -208,7 +211,6 @@ if ! aws --version >& /dev/null && prompt_YN "Y" "Install AWS Platform SDK?"; th
|
|||
sudo apt-get install -y awscli
|
||||
fi
|
||||
|
||||
|
||||
# Setup source code
|
||||
if [[ "$CONFIRMED_GITHUB_REPOSITORY_OWNER" != "none" ]]; then
|
||||
mkdir -p build
|
||||
|
@ -232,6 +234,34 @@ fi
|
|||
echo "{\"interactive\":false}" > ~/.bowerrc
|
||||
|
||||
|
||||
if [[ -f $HOME/.spinnaker/spinnaker-local.yml ]]; then
|
||||
echo "Forcing cassandra off."
|
||||
./spinnaker/install/change_cassandra.sh --echo=inMemory --front50=gcs --change_defaults=false --change_local=true
|
||||
else
|
||||
echo "Adding a default spinnaker-local that disables cassandra."
|
||||
mkdir -p $HOME/.spinnaker
|
||||
project=$(curl -L -s -f -H "Metadata-Flavor: Google" \
|
||||
http://169.254.169.254/computeMetadata/v1/project/project-id)
|
||||
cat > $HOME/.spinnaker/spinnaker-local.yml <<EOF
|
||||
services:
|
||||
echo:
|
||||
cassandra:
|
||||
enabled: false
|
||||
inMemory:
|
||||
enabled: true
|
||||
|
||||
front50:
|
||||
storage_bucket: spinnaker-${project}
|
||||
bucket_location: \${providers.google.defaultRegion}
|
||||
cassandra:
|
||||
enabled: false
|
||||
gcs:
|
||||
enabled: true
|
||||
EOF
|
||||
chmod 600 $HOME/.spinnaker/spinnaker-local.yml
|
||||
fi
|
||||
|
||||
|
||||
# If this script was run in a different shell then we
|
||||
# don't have the environment variables we set, and aren't in the build directory.
|
||||
function print_invoke_instructions() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче