Moved filename of completions script and added another remote function.

This commit is contained in:
caes 2020-05-26 19:26:00 -04:00
parent 806156af64
commit 968028ae3e
3 changed files with 25 additions and 4 deletions

View File

@ -318,9 +318,9 @@ export_env () {
local lines=() local lines=()
readarray -t lines < <(get_data_array etc environment) readarray -t lines < <(get_data_array etc environment)
for line in "${lines[@]}"; do for line in "${lines[@]}"; do
if [[ $TESTING_MODE == "TRUE" ]]; then #if [[ $TESTING_MODE == "TRUE" ]]; then
echo export $line # echo export $line
fi #fi
export $line export $line
done done
} }
@ -1148,6 +1148,24 @@ docker_run_from_data_on_host () {
fi 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 # Local automation

View File

@ -33,6 +33,9 @@
"issue_path": "/opt/gitlab", "issue_path": "/opt/gitlab",
"image": "gitlab/gitlab-ce:latest", "image": "gitlab/gitlab-ce:latest",
"options": [ "options": [
[
"--rm"
],
[ [
"--volume", "--volume",
"/opt/gitlab/config:/etc/gitlab:Z", "/opt/gitlab/config:/etc/gitlab:Z",
@ -49,7 +52,7 @@
["--hostname","gitlab.adamo.network"], ["--hostname","gitlab.adamo.network"],
[ [
"-e", "-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\""
] ]
] ]
}, },