forked from WANdisco/fusion-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.conf
More file actions
34 lines (25 loc) · 1.39 KB
/
common.conf
File metadata and controls
34 lines (25 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# Defaults to skip prompting
: "${ZONE_A_UI_PORT:=8083}"
: "${ZONE_A_SERVER_PORT:=8082}"
: "${ZONE_B_UI_PORT:=8583}"
: "${ZONE_B_SERVER_PORT:=8582}"
: "${ONEUI_SERVER_PORT:=8081}"
# Common settings
update_var LICENSE_FILE "Enter your license file path (or TRIAL for a trial)" "TRIAL" validate_file_path
update_var DOCKER_HOSTNAME "Enter the docker hostname" "${HOSTNAME:-$(hostname)}" validate_hostname
update_var ZONE_A_UI_PORT "Enter the HTTP port for the first zone" "8083" validate_number
update_var ZONE_A_SERVER_PORT "Enter the REST API port for the first zone" "8082" validate_number
update_var ZONE_B_UI_PORT "Enter the HTTP port for the second zone" "8583" validate_number
update_var ZONE_B_SERVER_PORT "Enter the REST API port for the second zone" "8582" validate_number
update_var ONEUI_SERVER_PORT "Enter the OneUI external http port" "8081" validate_number
: "${ZONE_A_NODE_ID:=$(./utils/uuid-gen.py)}"
: "${ZONE_B_NODE_ID:=$(./utils/uuid-gen.py)}"
save_var ZONE_A_NODE_ID "${ZONE_A_NODE_ID}" "$SAVE_ENV"
save_var ZONE_B_NODE_ID "${ZONE_B_NODE_ID}" "$SAVE_ENV"
# save versions
save_var FUSION_BASE_VERSION "2.14.2.1" "$SAVE_ENV"
save_var FUSION_IMAGE_RELEASE "3594" "$SAVE_ENV"
save_var FUSION_NN_PROXY_VERSION "4.0.0.6" "$SAVE_ENV"
save_var FUSION_NN_PROXY_IMAGE_RELEASE "3594" "$SAVE_ENV"
save_var FUSION_ONEUI_VERSION "1.0.0" "$SAVE_ENV"