Skip to content

Commit 1b8edd6

Browse files
author
Corneil du Plessis
committed
[CI] Added shell script to deploy httplogger [skip ci]
1 parent 24fee74 commit 1b8edd6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/deploy/shell/deploy-httplogger.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
if [ -z "$BASH_VERSION" ]; then
3+
echo "This script requires Bash. Use: bash $0 $*"
4+
exit 0
5+
fi
6+
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
7+
8+
cat > deploy-httplogger.shell <<EOF
9+
stream create --name httplogger --definition "http | log"
10+
stream deploy --name httplogger --properties app.*.logging.level.root=debug,deployer.http.kubernetes.createLoadBalancer=true
11+
EOF
12+
13+
"$SCDIR/shell.sh" --spring.shell.commandFile=deploy-httplogger.shell

0 commit comments

Comments
 (0)