zeus
3 years ago
11 changed files with 97 additions and 30 deletions
@ -1 +1 @@ |
|||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.c94ad443.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.c94ad443.js"></script></body></html> |
|||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.fe2236d7.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.fe2236d7.js"></script></body></html> |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,36 @@ |
|||
#!/bin/bash |
|||
|
|||
|
|||
if [[ $# -eq 0 ]] ; then |
|||
echo 'no service' |
|||
exit 1 |
|||
fi |
|||
|
|||
|
|||
if [[ -z "$1" ]] ; then |
|||
echo 'no service' |
|||
exit 1 |
|||
fi |
|||
|
|||
|
|||
service=$1 |
|||
serviceeditororig=${service//_} |
|||
serviceeditororig=${service//-} |
|||
|
|||
docker ps --format '{{.Names}}' | { |
|||
while read i; do |
|||
var=$i |
|||
# remove leading whitespace characters |
|||
var="${var#"${var%%[![:space:]]*}"}" |
|||
# remove trailing whitespace characters |
|||
var="${var%"${var##*[![:space:]]}"}" |
|||
serviceeditor=${var//_} |
|||
serviceeditor=${serviceeditor//-} |
|||
|
|||
if [ "edit${serviceeditororig}masterservice1" == "$serviceeditor" ]; then |
|||
echo "stop sidecar instance ${serviceeditor} "; |
|||
docker stop edit_${serviceeditororig}masterservice1 |
|||
docker container rm edit_${serviceeditororig}masterservice1 |
|||
fi |
|||
done |
|||
} |
Loading…
Reference in new issue