sap-mcp-bridge: new app — five SAP MCP servers behind one nginx-proxied port
This commit is contained in:
30
apps/sap-mcp-bridge/build/build.sh
Normal file
30
apps/sap-mcp-bridge/build/build.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# Build and push the sap-mcp-bridge Docker image to the Gitea registry.
|
||||
# Run this from the build/ directory of the Runtipi app.
|
||||
#
|
||||
# Usage:
|
||||
# ./build.sh # build + push :latest
|
||||
# IMAGE_TAG=1.0.0 ./build.sh # tag a specific version
|
||||
# ./build.sh --no-cache # extra flags are forwarded to docker build
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
IMAGE_NAME="${IMAGE_NAME:-git.alexzaw.dev/alexz/sap-mcp-bridge}"
|
||||
IMAGE_TAG="${IMAGE_TAG:-latest}"
|
||||
|
||||
echo "Building ${IMAGE_NAME}:${IMAGE_TAG}..."
|
||||
|
||||
docker build "$@" -t "${IMAGE_NAME}:${IMAGE_TAG}" .
|
||||
docker push "${IMAGE_NAME}:${IMAGE_TAG}"
|
||||
|
||||
echo ""
|
||||
echo "Build complete!"
|
||||
echo ""
|
||||
echo "To test locally (without Runtipi):"
|
||||
echo " docker run --rm -p 8080:8080 -v \$PWD/workspace:/workspace ${IMAGE_NAME}:${IMAGE_TAG}"
|
||||
echo " curl http://127.0.0.1:8080/healthz"
|
||||
echo ""
|
||||
echo "After pushing, deploy to Runtipi:"
|
||||
echo " cd /etc/runtipi/repos/runtipi && sudo git add . && sudo git commit -m 'sap-mcp-bridge: bump' && sudo git push origin main"
|
||||
echo " sudo /etc/runtipi/runtipi-cli appstore update"
|
||||
echo " sudo /etc/runtipi/runtipi-cli app update sap-mcp-bridge:runtipi # (or install via the dashboard the first time)"
|
||||
Reference in New Issue
Block a user