mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 18:06:49 +00:00
update : refactor auto-upstall and installation methods
This commit is contained in:
22
docker-compose/1_Auto_Upstall/tests/expects/configure/monitor.sh
Executable file
22
docker-compose/1_Auto_Upstall/tests/expects/configure/monitor.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
send "N\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "7\r"
|
||||
|
||||
send \x03
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "0\r"
|
||||
|
||||
expect EOF
|
||||
20
docker-compose/1_Auto_Upstall/tests/expects/configure/restart.sh
Executable file
20
docker-compose/1_Auto_Upstall/tests/expects/configure/restart.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
send "N\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "4\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "0\r"
|
||||
|
||||
expect EOF
|
||||
23
docker-compose/1_Auto_Upstall/tests/expects/configure/scale.sh
Executable file
23
docker-compose/1_Auto_Upstall/tests/expects/configure/scale.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
send "N\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "6\r"
|
||||
|
||||
expect "How many instances of NocoDB do you want to run*"
|
||||
send "3\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "0\r"
|
||||
|
||||
expect EOF
|
||||
20
docker-compose/1_Auto_Upstall/tests/expects/configure/start.sh
Executable file
20
docker-compose/1_Auto_Upstall/tests/expects/configure/start.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
send "N\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "1\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "0\r"
|
||||
|
||||
expect EOF
|
||||
20
docker-compose/1_Auto_Upstall/tests/expects/configure/stop.sh
Executable file
20
docker-compose/1_Auto_Upstall/tests/expects/configure/stop.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
send "N\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "2\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "0\r"
|
||||
|
||||
expect EOF
|
||||
20
docker-compose/1_Auto_Upstall/tests/expects/configure/upgrade.sh
Executable file
20
docker-compose/1_Auto_Upstall/tests/expects/configure/upgrade.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
send "N\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "5\r"
|
||||
|
||||
expect "Enter your choice: "
|
||||
send "0\r"
|
||||
|
||||
expect EOF
|
||||
21
docker-compose/1_Auto_Upstall/tests/expects/install/default.sh
Executable file
21
docker-compose/1_Auto_Upstall/tests/expects/install/default.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
expect "Enter the IP address or domain name for the NocoDB instance (default: localhost):"
|
||||
send "\r"
|
||||
|
||||
expect "Show Advanced Options*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
22
docker-compose/1_Auto_Upstall/tests/expects/install/ip.sh
Executable file
22
docker-compose/1_Auto_Upstall/tests/expects/install/ip.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/expect -f
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
expect "Enter the IP address or domain name for the NocoDB instance (default: localhost):"
|
||||
send "192.168.1.10\r"
|
||||
|
||||
expect "Show Advanced Options*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
39
docker-compose/1_Auto_Upstall/tests/expects/install/redis.sh
Executable file
39
docker-compose/1_Auto_Upstall/tests/expects/install/redis.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
expect "Enter the IP address or domain name for the NocoDB instance (default: localhost):"
|
||||
send "\r"
|
||||
|
||||
expect "Show Advanced Options*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Choose Community or Enterprise Edition*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Redis for caching*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Do you want to enable Minio for file storage*"
|
||||
send "\r"
|
||||
|
||||
expect "Enter the MinIO domain name*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Watchtower for automatic updates*"
|
||||
send "\r"
|
||||
|
||||
expect "How many instances of NocoDB do you want to run*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
39
docker-compose/1_Auto_Upstall/tests/expects/install/scale.sh
Executable file
39
docker-compose/1_Auto_Upstall/tests/expects/install/scale.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
expect "Enter the IP address or domain name for the NocoDB instance (default: localhost):"
|
||||
send "\r"
|
||||
|
||||
expect "Show Advanced Options*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Choose Community or Enterprise Edition*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Redis for caching*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Do you want to enable Minio for file storage*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Enter the MinIO domain name*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Watchtower for automatic updates*"
|
||||
send "\r"
|
||||
|
||||
expect "How many instances of NocoDB do you want to run*"
|
||||
send "2\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
38
docker-compose/1_Auto_Upstall/tests/expects/install/ssl.sh
Executable file
38
docker-compose/1_Auto_Upstall/tests/expects/install/ssl.sh
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
set random_number [lindex $argv 0]
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
expect "Enter the IP address or domain name for the NocoDB instance (default: localhost):"
|
||||
send "${random_number}.ssl.nocodb.dev\r"
|
||||
|
||||
expect "Show Advanced Options*"
|
||||
send "y\r"
|
||||
|
||||
expect "Do you want to configure SSL*"
|
||||
send "y\r"
|
||||
|
||||
expect "Choose Community or Enterprise Edition*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Redis for caching*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Do you want to enabled Watchtower for automatic updates*"
|
||||
send "\r"
|
||||
|
||||
expect "How many instances of NocoDB do you want to run*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
39
docker-compose/1_Auto_Upstall/tests/expects/install/watchtower.sh
Executable file
39
docker-compose/1_Auto_Upstall/tests/expects/install/watchtower.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
expect "Enter the IP address or domain name for the NocoDB instance (default: localhost):"
|
||||
send "\r"
|
||||
|
||||
expect "Show Advanced Options*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Choose Community or Enterprise Edition*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Redis for caching*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enable Minio for file storage*"
|
||||
send "\r"
|
||||
|
||||
expect "Enter the MinIO domain name*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Watchtower for automatic updates*"
|
||||
send "Y\r"
|
||||
|
||||
expect "How many instances of NocoDB do you want to run*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
Reference in New Issue
Block a user