mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 23:26:49 +00:00
update : refactor auto-upstall and installation methods
This commit is contained in:
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