Add deployment scripts and docker-compose configs for OCI

This commit is contained in:
윤희준
2026-08-15 07:22:42 +09:00
parent fc21710e60
commit 7209f5610f
4 changed files with 232 additions and 0 deletions

21
deploy.sh Normal file
View 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