Skip to content
Snippets Groups Projects
Verified Commit 0b395199 authored by Varac's avatar Varac
Browse files

Use aliases to run control image binaries on host

parent 032d9d69
No related branches found
No related tags found
No related merge requests found
......@@ -2,3 +2,4 @@
# that potential secrets or sensitive information do not leave the developer's workstation.
# https://thoughtworks.github.io/talisman/
control/bashrc # ignore:filename
ansible/roles/get_control/files/.bash_aliases # ignore:filename
# Openappstack aliases
# Base alias
alias oas_control='docker run -it --rm -v /oas:/oas -v /oas/control/local:/control/local docker.greenhost.net/openappstack/bootstrap/oas-control'
# Start an interactive bash shell on the OAS control image
alias oas_controlshell='oas_control bash'
#!/bin/bash
echo "Starting control shell..."
docker run --rm -it \
--hostname=control \
-v /oas:/oas \
-v /oas/control/local:/control/local \
docker.greenhost.net/openappstack/bootstrap/oas-control \
/bin/bash
......@@ -51,9 +51,9 @@
force: true
become: true
- name: Copy shell command to run control shell
- name: Configure bash_aliases
copy:
src: "control-shell.sh"
dest: "/oas/bin/control-shell.sh"
mode: "0755"
src: "bash_aliases"
dest: "/root/.bash_aliases"
mode: "0640"
become: true
......@@ -8,4 +8,4 @@ else
host=$1
fi
ssh -t "root@${host}" "/oas/bin/control-shell.sh"
ssh -t "root@${host}" bash -ic "oas_controlshell"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment