##// END OF EJS Templates
rccontrol small fixes / help spelling
super-admin -
Show More
@@ -7,9 +7,11 b' all its additional components in single environment using Docker.'
7 Using a docker-compose this setup creates following services for RhodeCode:
7 Using a docker-compose this setup creates following services for RhodeCode:
8
8
9 Edge-Router:
9 Edge-Router:
10
10 - Traefik, Edge Router, SSL termination etc
11 - Traefik, Edge Router, SSL termination etc
11
12
12 Core Services:
13 Core Services:
14
13 - Database (defaults to PostgreSQL)
15 - Database (defaults to PostgreSQL)
14 - Redis, acts as cache and queue exchange
16 - Redis, acts as cache and queue exchange
15 - ChannelStream - live websocket communications
17 - ChannelStream - live websocket communications
@@ -17,6 +19,7 b' Core Services:'
17 - Elasticsearch (full text search backend)
19 - Elasticsearch (full text search backend)
18
20
19 RhodeCode
21 RhodeCode
22
20 - RhodeCode CE/EE
23 - RhodeCode CE/EE
21 - VCSServer for GIT/SVN/HG support
24 - VCSServer for GIT/SVN/HG support
22 - SSH Server for cloning over SSH
25 - SSH Server for cloning over SSH
@@ -25,6 +28,7 b' RhodeCode'
25 - Celery beat for automation tasks
28 - Celery beat for automation tasks
26
29
27 Metrics
30 Metrics
31
28 - Loki, logs aggregation
32 - Loki, logs aggregation
29 - Grafana, Metrics Dashboard
33 - Grafana, Metrics Dashboard
30 - Promethues, Metrics time-series
34 - Promethues, Metrics time-series
@@ -36,7 +40,8 b' Metrics'
36 ## Pre requisites
40 ## Pre requisites
37
41
38 To Run this stack Docker engine and Docker Compose needs to be installed on the host machine.
42 To Run this stack Docker engine and Docker Compose needs to be installed on the host machine.
39 Visit docker site and install docker (min version 20.10) and docker compose:
43 Please run ./rccontrol init to install docker using the installer, or
44 visit docker site and install docker (min version 20.10) and docker compose:
40
45
41 - https://docs.docker.com/engine/install/
46 - https://docs.docker.com/engine/install/
42 - https://docs.docker.com/compose/install/
47 - https://docs.docker.com/compose/install/
@@ -78,7 +83,15 b' There are 3 options to run the docker stack.'
78 # Standalone cluster build from installer
83 # Standalone cluster build from installer
79
84
80 Follow these steps to build and run the RhodeCode Cluster via Docker-compose.
85 Follow these steps to build and run the RhodeCode Cluster via Docker-compose.
81 Get the repository:
86
87 1) Run:
88
89 ./rccontrol init
90
91 2) Run:
92 ./rccontrol
93
94
82
95
83 git clone https://code.rhodecode.com/rhodecode-enterprise-docker && cd rhodecode-enterprise-docker
96 git clone https://code.rhodecode.com/rhodecode-enterprise-docker && cd rhodecode-enterprise-docker
84
97
@@ -1,12 +1,14 b''
1 #!/usr/bin/env bash
1 #!/usr/bin/env bash
2 # This script was generated by bashly 0.8.10 (https://bashly.dannyb.co)
2 # This script was generated
3 # Modifying it manually is not recommended
3 # Modifying it manually is not recommended
4
4
5 # :wrapper.bash3_bouncer
5 check_bash_version() {
6 if [[ "${BASH_VERSINFO:-0}" -lt 4 ]]; then
6 if [ ! "${BASH_VERSINFO:-0}" -ge 4 ]; then
7 printf "bash version 4 or higher is required\n" >&2
7 echo "Bash version 4 or greater is required (got ${BASH_VERSINFO}), please update your bash version!"
8 exit 1
8 exit 1
9 fi
9 fi
10 }
11 check_bash_version
10
12
11 # :command.master_script
13 # :command.master_script
12
14
@@ -18,11 +20,11 b' version_command() {'
18 # :command.usage
20 # :command.usage
19 rccontrol_usage() {
21 rccontrol_usage() {
20 if [[ -n $long_usage ]]; then
22 if [[ -n $long_usage ]]; then
21 printf "rccontrol - RhodeCode Control - CLI for manaing RhodeCode Cluster Stack\n"
23 printf "rccontrol - RhodeCode Control - CLI for installing and managing RhodeCode Cluster Stack\n"
22 echo
24 echo
23
25
24 else
26 else
25 printf "rccontrol - RhodeCode Control - CLI for manaing RhodeCode Cluster Stack\n"
27 printf "rccontrol - RhodeCode Control - CLI for installing and managing RhodeCode Cluster Stack\n"
26 echo
28 echo
27
29
28 fi
30 fi
@@ -44,16 +46,16 b' rccontrol_usage() {'
44 echo " build-source Build RhodeCode image from source, requires upgrade-source initially"
46 echo " build-source Build RhodeCode image from source, requires upgrade-source initially"
45 echo
47 echo
46 printf "Stack Commands:\n"
48 printf "Stack Commands:\n"
47 echo " stack run one of available cluster stacks, use -h for more details"
49 echo " stack run one of available cluster stacks, run stack -h for more details"
48 echo " stack-status Show stack status"
50 echo " stack-status Show stack status"
49 echo " stack-upgrade upgrade ALL stack status"
51 echo " stack-upgrade upgrade ALL stack status"
50 echo
52 echo
51 printf "CLI Commands:\n"
53 printf "CLI Commands:\n"
52 echo " cli run various CLI tools"
54 echo " cli Various CLI tools, run cli -h for more details"
53 echo
55 echo
54 printf "Backup Commands:\n"
56 printf "Backup Commands:\n"
55 echo " backup-db CLI"
57 echo " backup-db Backup Database"
56 echo " backup-data CLI"
58 echo " backup-data Backup RhodeCode storage"
57 echo
59 echo
58
60
59 # :command.long_usage
61 # :command.long_usage
@@ -402,11 +404,11 b' rccontrol_build_source_usage() {'
402 # :command.usage
404 # :command.usage
403 rccontrol_stack_usage() {
405 rccontrol_stack_usage() {
404 if [[ -n $long_usage ]]; then
406 if [[ -n $long_usage ]]; then
405 printf "rccontrol stack - run one of available cluster stacks, use -h for more details\n"
407 printf "rccontrol stack - run one of available cluster stacks, run stack -h for more details\n"
406 echo
408 echo
407
409
408 else
410 else
409 printf "rccontrol stack - run one of available cluster stacks, use -h for more details\n"
411 printf "rccontrol stack - run one of available cluster stacks, run stack -h for more details\n"
410 echo
412 echo
411
413
412 fi
414 fi
@@ -435,7 +437,7 b' rccontrol_stack_usage() {'
435
437
436 # :command.usage_examples
438 # :command.usage_examples
437 printf "Examples:\n"
439 printf "Examples:\n"
438 printf " - ./rccontrol3 stack router up # run router stack with output to\n console\n - ./rccontrol3 stack router up --detach # run router stack detached\n - ./rccontrol3 stack router down # stop whole router stack\n - ./rccontrol3 stack router ps # check status of router stack\n - ./rccontrol3 stack router -f docker-overrides.yaml up -d # run router stack\n with your overrides\n"
440 printf " - ./rccontrol stack router up # run router stack with output to\n console\n - ./rccontrol stack router up --detach # run router stack detached\n - ./rccontrol stack router down # stop whole router stack\n - ./rccontrol stack router ps # check status of router stack\n - ./rccontrol stack router -f docker-overrides.yaml up -d # run router stack\n with your overrides\n"
439 echo
441 echo
440
442
441 fi
443 fi
@@ -685,11 +687,11 b' rccontrol_stack_upgrade_usage() {'
685 # :command.usage
687 # :command.usage
686 rccontrol_cli_usage() {
688 rccontrol_cli_usage() {
687 if [[ -n $long_usage ]]; then
689 if [[ -n $long_usage ]]; then
688 printf "rccontrol cli - run various CLI tools\n"
690 printf "rccontrol cli - Various CLI tools, run cli -h for more details\n"
689 echo
691 echo
690
692
691 else
693 else
692 printf "rccontrol cli - run various CLI tools\n"
694 printf "rccontrol cli - Various CLI tools, run cli -h for more details\n"
693 echo
695 echo
694
696
695 fi
697 fi
@@ -835,20 +837,20 b' rccontrol_cli_storage_usage() {'
835 }
837 }
836
838
837 # :command.usage
839 # :command.usage
838 rccontrol__completions_usage() {
840 rccontrol_backup_db_usage() {
839 if [[ -n $long_usage ]]; then
841 if [[ -n $long_usage ]]; then
840 printf "rccontrol _completions - Generate completions, eval "$(./rccontrol _completions)"\n"
842 printf "rccontrol backup-db - Backup Database\n"
841 echo
843 echo
842
844
843 else
845 else
844 printf "rccontrol _completions - Generate completions, eval "$(./rccontrol _completions)"\n"
846 printf "rccontrol backup-db - Backup Database\n"
845 echo
847 echo
846
848
847 fi
849 fi
848
850
849 printf "Usage:\n"
851 printf "Usage:\n"
850 printf " rccontrol _completions\n"
852 printf " rccontrol backup-db\n"
851 printf " rccontrol _completions --help | -h\n"
853 printf " rccontrol backup-db --help | -h\n"
852 echo
854 echo
853
855
854 # :command.long_usage
856 # :command.long_usage
@@ -860,24 +862,29 b' rccontrol__completions_usage() {'
860 printf " Show this help\n"
862 printf " Show this help\n"
861 echo
863 echo
862
864
865 # :command.usage_examples
866 printf "Examples:\n"
867 printf " ./rccontrol backup-db\n"
868 echo
869
863 fi
870 fi
864 }
871 }
865
872
866 # :command.usage
873 # :command.usage
867 rccontrol_backup_db_usage() {
874 rccontrol_backup_data_usage() {
868 if [[ -n $long_usage ]]; then
875 if [[ -n $long_usage ]]; then
869 printf "rccontrol backup-db - CLI\n"
876 printf "rccontrol backup-data - Backup RhodeCode storage\n"
870 echo
877 echo
871
878
872 else
879 else
873 printf "rccontrol backup-db - CLI\n"
880 printf "rccontrol backup-data - Backup RhodeCode storage\n"
874 echo
881 echo
875
882
876 fi
883 fi
877
884
878 printf "Usage:\n"
885 printf "Usage:\n"
879 printf " rccontrol backup-db\n"
886 printf " rccontrol backup-data\n"
880 printf " rccontrol backup-db --help | -h\n"
887 printf " rccontrol backup-data --help | -h\n"
881 echo
888 echo
882
889
883 # :command.long_usage
890 # :command.long_usage
@@ -889,29 +896,24 b' rccontrol_backup_db_usage() {'
889 printf " Show this help\n"
896 printf " Show this help\n"
890 echo
897 echo
891
898
892 # :command.usage_examples
893 printf "Examples:\n"
894 printf " ./rccontrol backup-db\n"
895 echo
896
897 fi
899 fi
898 }
900 }
899
901
900 # :command.usage
902 # :command.usage
901 rccontrol_backup_data_usage() {
903 rccontrol__completions_usage() {
902 if [[ -n $long_usage ]]; then
904 if [[ -n $long_usage ]]; then
903 printf "rccontrol backup-data - CLI\n"
905 printf "rccontrol _completions - Generate completions, eval "$(./rccontrol _completions)"\n"
904 echo
906 echo
905
907
906 else
908 else
907 printf "rccontrol backup-data - CLI\n"
909 printf "rccontrol _completions - Generate completions, eval "$(./rccontrol _completions)"\n"
908 echo
910 echo
909
911
910 fi
912 fi
911
913
912 printf "Usage:\n"
914 printf "Usage:\n"
913 printf " rccontrol backup-data\n"
915 printf " rccontrol _completions\n"
914 printf " rccontrol backup-data --help | -h\n"
916 printf " rccontrol _completions --help | -h\n"
915 echo
917 echo
916
918
917 # :command.long_usage
919 # :command.long_usage
@@ -1223,13 +1225,6 b' rccontrol_bootstrap_command() {'
1223 DEBUG=${args[--debug]}
1225 DEBUG=${args[--debug]}
1224 force=${args[--force]}
1226 force=${args[--force]}
1225
1227
1226 check_bash_version() {
1227 if [ ! "${BASH_VERSINFO:-0}" -ge 4 ]; then
1228 echo "$(red Bash version 4 or greater is required, please update your bash version!)"
1229 exit
1230 fi
1231 }
1232
1233 check_docker() {
1228 check_docker() {
1234 (which docker || which docker.io) &>/dev/null
1229 (which docker || which docker.io) &>/dev/null
1235 }
1230 }
@@ -1426,8 +1421,6 b' rccontrol_bootstrap_command() {'
1426
1421
1427 cur_date=$(date '+%Y-%m-%d %H:%M:%S')
1422 cur_date=$(date '+%Y-%m-%d %H:%M:%S')
1428
1423
1429 check_bash_version
1430
1431 # Init the config !
1424 # Init the config !
1432 if [[ ! -f "$CONFIG_FILE" ]]; then
1425 if [[ ! -f "$CONFIG_FILE" ]]; then
1433 echo "config: init new config at: $CONFIG_FILE"
1426 echo "config: init new config at: $CONFIG_FILE"
@@ -1918,12 +1911,6 b' rccontrol_cli_storage_command() {'
1918 }
1911 }
1919
1912
1920 # :command.function
1913 # :command.function
1921 rccontrol__completions_command() {
1922 # src/_completions_command.sh
1923 send_completions
1924 }
1925
1926 # :command.function
1927 rccontrol_backup_db_command() {
1914 rccontrol_backup_db_command() {
1928 # src/backup_db_command.sh
1915 # src/backup_db_command.sh
1929 check_bootstrap
1916 check_bootstrap
@@ -1986,6 +1973,12 b' rccontrol_backup_data_command() {'
1986
1973
1987 }
1974 }
1988
1975
1976 # :command.function
1977 rccontrol__completions_command() {
1978 # src/_completions_command.sh
1979 send_completions
1980 }
1981
1989 # :command.parse_requirements
1982 # :command.parse_requirements
1990 parse_requirements() {
1983 parse_requirements() {
1991 # :command.fixed_flags_filter
1984 # :command.fixed_flags_filter
@@ -2096,13 +2089,6 b' parse_requirements() {'
2096 shift $#
2089 shift $#
2097 ;;
2090 ;;
2098
2091
2099 _completions )
2100 action="_completions"
2101 shift
2102 rccontrol__completions_parse_requirements "$@"
2103 shift $#
2104 ;;
2105
2106 backup-db )
2092 backup-db )
2107 action="backup-db"
2093 action="backup-db"
2108 shift
2094 shift
@@ -2117,6 +2103,13 b' parse_requirements() {'
2117 shift $#
2103 shift $#
2118 ;;
2104 ;;
2119
2105
2106 _completions )
2107 action="_completions"
2108 shift
2109 rccontrol__completions_parse_requirements "$@"
2110 shift $#
2111 ;;
2112
2120 # :command.command_fallback
2113 # :command.command_fallback
2121 "" )
2114 "" )
2122 rccontrol_usage >&2
2115 rccontrol_usage >&2
@@ -3226,19 +3219,29 b' rccontrol_cli_storage_parse_requirements() {'
3226 }
3219 }
3227
3220
3228 # :command.parse_requirements
3221 # :command.parse_requirements
3229 rccontrol__completions_parse_requirements() {
3222 rccontrol_backup_db_parse_requirements() {
3230 # :command.fixed_flags_filter
3223 # :command.fixed_flags_filter
3231 case "${1:-}" in
3224 case "${1:-}" in
3232 --help | -h )
3225 --help | -h )
3233 long_usage=yes
3226 long_usage=yes
3234 rccontrol__completions_usage
3227 rccontrol_backup_db_usage
3235 exit
3228 exit
3236 ;;
3229 ;;
3237
3230
3238 esac
3231 esac
3239
3232
3233 # :command.dependencies_filter
3234 if ! [[ -x "$(command -v tar)" ]]; then
3235 printf "missing dependency: tar\n" >&2
3236 exit 1
3237 fi
3238 if ! [[ -x "$(command -v gzip)" ]]; then
3239 printf "missing dependency: gzip\n" >&2
3240 exit 1
3241 fi
3242
3240 # :command.command_filter
3243 # :command.command_filter
3241 action="_completions"
3244 action="backup-db"
3242
3245
3243 # :command.parse_requirements_while
3246 # :command.parse_requirements_while
3244 while [[ $# -gt 0 ]]; do
3247 while [[ $# -gt 0 ]]; do
@@ -3264,12 +3267,12 b' rccontrol__completions_parse_requirements() {'
3264 }
3267 }
3265
3268
3266 # :command.parse_requirements
3269 # :command.parse_requirements
3267 rccontrol_backup_db_parse_requirements() {
3270 rccontrol_backup_data_parse_requirements() {
3268 # :command.fixed_flags_filter
3271 # :command.fixed_flags_filter
3269 case "${1:-}" in
3272 case "${1:-}" in
3270 --help | -h )
3273 --help | -h )
3271 long_usage=yes
3274 long_usage=yes
3272 rccontrol_backup_db_usage
3275 rccontrol_backup_data_usage
3273 exit
3276 exit
3274 ;;
3277 ;;
3275
3278
@@ -3280,13 +3283,9 b' rccontrol_backup_db_parse_requirements() {'
3280 printf "missing dependency: tar\n" >&2
3283 printf "missing dependency: tar\n" >&2
3281 exit 1
3284 exit 1
3282 fi
3285 fi
3283 if ! [[ -x "$(command -v gzip)" ]]; then
3284 printf "missing dependency: gzip\n" >&2
3285 exit 1
3286 fi
3287
3286
3288 # :command.command_filter
3287 # :command.command_filter
3289 action="backup-db"
3288 action="backup-data"
3290
3289
3291 # :command.parse_requirements_while
3290 # :command.parse_requirements_while
3292 while [[ $# -gt 0 ]]; do
3291 while [[ $# -gt 0 ]]; do
@@ -3312,25 +3311,19 b' rccontrol_backup_db_parse_requirements() {'
3312 }
3311 }
3313
3312
3314 # :command.parse_requirements
3313 # :command.parse_requirements
3315 rccontrol_backup_data_parse_requirements() {
3314 rccontrol__completions_parse_requirements() {
3316 # :command.fixed_flags_filter
3315 # :command.fixed_flags_filter
3317 case "${1:-}" in
3316 case "${1:-}" in
3318 --help | -h )
3317 --help | -h )
3319 long_usage=yes
3318 long_usage=yes
3320 rccontrol_backup_data_usage
3319 rccontrol__completions_usage
3321 exit
3320 exit
3322 ;;
3321 ;;
3323
3322
3324 esac
3323 esac
3325
3324
3326 # :command.dependencies_filter
3327 if ! [[ -x "$(command -v tar)" ]]; then
3328 printf "missing dependency: tar\n" >&2
3329 exit 1
3330 fi
3331
3332 # :command.command_filter
3325 # :command.command_filter
3333 action="backup-data"
3326 action="_completions"
3334
3327
3335 # :command.parse_requirements_while
3328 # :command.parse_requirements_while
3336 while [[ $# -gt 0 ]]; do
3329 while [[ $# -gt 0 ]]; do
@@ -3630,14 +3623,6 b' run() {'
3630 rccontrol_cli_storage_command
3623 rccontrol_cli_storage_command
3631 fi
3624 fi
3632
3625
3633 elif [[ $action == "_completions" ]]; then
3634 if [[ ${args[--help]:-} ]]; then
3635 long_usage=yes
3636 rccontrol__completions_usage
3637 else
3638 rccontrol__completions_command
3639 fi
3640
3641 elif [[ $action == "backup-db" ]]; then
3626 elif [[ $action == "backup-db" ]]; then
3642 if [[ ${args[--help]:-} ]]; then
3627 if [[ ${args[--help]:-} ]]; then
3643 long_usage=yes
3628 long_usage=yes
@@ -3654,6 +3639,14 b' run() {'
3654 rccontrol_backup_data_command
3639 rccontrol_backup_data_command
3655 fi
3640 fi
3656
3641
3642 elif [[ $action == "_completions" ]]; then
3643 if [[ ${args[--help]:-} ]]; then
3644 long_usage=yes
3645 rccontrol__completions_usage
3646 else
3647 rccontrol__completions_command
3648 fi
3649
3657 elif [[ $action == "root" ]]; then
3650 elif [[ $action == "root" ]]; then
3658 root_command
3651 root_command
3659 fi
3652 fi
General Comments 0
You need to be logged in to leave comments. Login now