s
This commit is contained in:
parent
cf92640022
commit
dd75415263
1 changed files with 30 additions and 0 deletions
30
devspace.sh
Normal file
30
devspace.sh
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
IMAGE=registry.mgrote.net/ansible-devspace:latest
|
||||||
|
|
||||||
|
# Farben
|
||||||
|
BLUE='\[\e[34m\]'
|
||||||
|
GREEN='\[\e[32m\]'
|
||||||
|
RED='\[\e[31m\]'
|
||||||
|
YELLOW='\[\e[33m\]'
|
||||||
|
WHITE='\[\e[97m\]'
|
||||||
|
BLACK='\[\e[30m\]'
|
||||||
|
RESET='\[\e[0m\]'
|
||||||
|
ORANGE='\[\e[0;33m\]'
|
||||||
|
|
||||||
|
echo ${GREEN}Run checks...${RESET}
|
||||||
|
|
||||||
|
if ! [ -f "./vault-pass" ]; then
|
||||||
|
echo "${RED}Vault-Pass File is missing!${RESET}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if ! [ -f "./id_ed25519" ]; then
|
||||||
|
echo "${RED}SSH-Private-Key is missing!${RESET}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ${GREEN}Pull image...${RESET}
|
||||||
|
docker pull --quiet ${IMAGE}
|
||||||
|
|
||||||
|
echo ${GREEN}Start session...${RESET}
|
||||||
|
docker run -it -v $PWD:/ansible-homeserver -w /ansible-homeserver ${IMAGE} /bin/bash && tmux new -t ansible && git rev-parse --abbrev-ref HEAD && git config --global --add safe.directory /ansible-homeserver
|
Loading…
Reference in a new issue