Skip to content

Commit

Permalink
[CI] Added shell script to deploy httplogger [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Jan 30, 2024
1 parent 24fee74 commit 1b8edd6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/deploy/shell/deploy-httplogger.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
if [ -z "$BASH_VERSION" ]; then
echo "This script requires Bash. Use: bash $0 $*"
exit 0
fi
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")

cat > deploy-httplogger.shell <<EOF
stream create --name httplogger --definition "http | log"
stream deploy --name httplogger --properties app.*.logging.level.root=debug,deployer.http.kubernetes.createLoadBalancer=true
EOF

"$SCDIR/shell.sh" --spring.shell.commandFile=deploy-httplogger.shell

0 comments on commit 1b8edd6

Please sign in to comment.