Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install/uninstall scripts #3044

Merged
merged 4 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions deploy/scripts/install-combine.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /usr/bin/env bash
set -eo pipefail

# Set the environment variables that are required by The Combine.
# In addition, the values are stored in a file so that they do not
Expand All @@ -8,13 +9,6 @@ set-combine-env () {
# Generate JWT Secret Key
COMBINE_JWT_SECRET_KEY=`LC_ALL=C tr -dc 'A-Za-z0-9*\-_@!' </dev/urandom | head -c 64; echo`
# Collect values from user
cat << .EOM

The installation process will setup an initial user as a site
administrator. This you can select a username that you will use
for your normal word collection work. The default username is admin.

.EOM
read -p "Enter AWS_ACCESS_KEY_ID: " AWS_ACCESS_KEY_ID
read -p "Enter AWS_SECRET_ACCESS_KEY: " AWS_SECRET_ACCESS_KEY
# write collected values and static values to config file
Expand Down Expand Up @@ -203,11 +197,11 @@ if [ -z "${COMBINE_VERSION}" ] ; then
exit 1
fi

create-python-venv
# Step through the installation stages
while [ "$STATE" != "Done" ] ; do
case $STATE in
Pre-reqs)
create-python-venv
install-kubernetes
next-state "Restart"
;;
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/setup_files/cluster_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ nginx-ingress-controller:
name: ingress-controller
reference: ingress-nginx/ingress-nginx
namespace: ingress-nginx
wait: false
wait: true

rancher-ui:
repo:
Expand Down
1 change: 1 addition & 0 deletions deploy/scripts/uninstall-combine
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /usr/bin/env bash
set -euo pipefail

delete-files () {
for file in "$@" ; do
Expand Down
Loading