forked from kimhyungsik/ax_hub_mcp_tool
Add deployment scripts and docker-compose configs for OCI
This commit is contained in:
21
deploy.sh
Normal file
21
deploy.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
APP_DIR="/home/ubuntu/apps/dap-mcp"
|
||||
|
||||
# 1. Update and Build Gateway (dapms)
|
||||
cd $APP_DIR/dap-was-dapms
|
||||
git pull
|
||||
docker run --rm -v $(pwd):/app -w /app eclipse-temurin:21-jdk-alpine sh -c "chmod +x gradlew && ./gradlew clean build -x test"
|
||||
|
||||
# 2. Update and Build Tools (dapmt)
|
||||
cd $APP_DIR/dap-was-dapmt
|
||||
git pull
|
||||
docker run --rm -v $(pwd):/app -w /app eclipse-temurin:21-jdk-alpine sh -c "chmod +x gradlew && ./gradlew clean build -x test"
|
||||
|
||||
# 3. Deploy
|
||||
cd $APP_DIR
|
||||
docker compose build
|
||||
docker compose up -d
|
||||
|
||||
# 4. Cleanup
|
||||
docker system prune -f
|
||||
Reference in New Issue
Block a user