Moved filename of completions script and added another remote function.
This commit is contained in:
parent
806156af64
commit
968028ae3e
24
broker.sh
24
broker.sh
@ -318,9 +318,9 @@ export_env () {
|
||||
local lines=()
|
||||
readarray -t lines < <(get_data_array etc environment)
|
||||
for line in "${lines[@]}"; do
|
||||
if [[ $TESTING_MODE == "TRUE" ]]; then
|
||||
echo export $line
|
||||
fi
|
||||
#if [[ $TESTING_MODE == "TRUE" ]]; then
|
||||
# echo export $line
|
||||
#fi
|
||||
export $line
|
||||
done
|
||||
}
|
||||
@ -1148,6 +1148,24 @@ docker_run_from_data_on_host () {
|
||||
fi
|
||||
}
|
||||
|
||||
docker_destroy_from_data_on_host () {
|
||||
local host=$1
|
||||
shift
|
||||
local dealkeypath="$*"
|
||||
# env exported here since this is for bootstrapping
|
||||
export_env
|
||||
if construct_deal_info $dealkeypath; then
|
||||
pr_vars deal_name docker_image
|
||||
if [[ $TESTING_MODE == "TRUE" ]]; then
|
||||
ssh_tty_to_host $host "echo docker stop $deal_name;
|
||||
echo docker rm $deal_name"
|
||||
else
|
||||
ssh_tty_to_host $host "docker stop $deal_name;
|
||||
docker rm $deal_name"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
######################################################################
|
||||
# Local automation
|
||||
|
||||
|
@ -33,6 +33,9 @@
|
||||
"issue_path": "/opt/gitlab",
|
||||
"image": "gitlab/gitlab-ce:latest",
|
||||
"options": [
|
||||
[
|
||||
"--rm"
|
||||
],
|
||||
[
|
||||
"--volume",
|
||||
"/opt/gitlab/config:/etc/gitlab:Z",
|
||||
@ -49,7 +52,7 @@
|
||||
["--hostname","gitlab.adamo.network"],
|
||||
[
|
||||
"-e",
|
||||
"GITLAB_OMNIBUS_CONFIG=\"external_url 'http://gitlab.adamo.network:45000'; gitlab_rails['gitlab_shell_ssh_port'] = 22\""
|
||||
"GITLAB_OMNIBUS_CONFIG=\"external_url 'http://gitlab.adamo.network:45000'; gitlab_rails['gitlab_shell_ssh_port'] = 45022\""
|
||||
]
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user