Skip to content

feat: Add Docker Compose configuration and CI/CD pipeline#1

Merged
AhmedKorim merged 3 commits intodevelopfrom
ahmed/chore/ports-compose
Nov 18, 2025
Merged

feat: Add Docker Compose configuration and CI/CD pipeline#1
AhmedKorim merged 3 commits intodevelopfrom
ahmed/chore/ports-compose

Conversation

@AhmedKorim
Copy link
Member

Summary

This PR adds comprehensive Docker Compose configuration and CI/CD pipeline for the Droq Math Executor Node.

Changes

  • Dockerfile: Containerized deployment with multi-platform support
  • Docker Compose: Easy local development with customizable environment variables
  • CI/CD Pipeline: Automated builds, testing, and publishing to GitHub Container Registry
  • Security Scanning: Daily vulnerability scanning and dependency reviews
  • Documentation: Updated README with setup instructions and environment variable guides

Key Features

  • Environment variables with DFX_MATH_EXE_ prefix to avoid conflicts
  • Multi-platform builds (linux/amd64, linux/arm64)
  • Automated testing on pull requests
  • Automated publishing on pushes to main branch
  • Security vulnerability scanning with Trivy
  • SBOM generation for each build
  • GitHub releases on tag creation

Environment Variables

  • DFX_MATH_EXE_HOST_PORT: Host port mapping (default: 8003)
  • DFX_MATH_EXE_CONTAINER_PORT: Container port (default: 8003)
  • DFX_MATH_EXE_HOST: Host binding (default: 0.0.0.0)
  • DFX_MATH_EXE_LOG_LEVEL: Logging level (default: INFO)
  • DFX_MATH_EXE_CONTAINER_NAME: Container name (default: droq-math-executor-node)

Test Plan

  • Test Docker Compose startup with default configuration
  • Test environment variable customization
  • Test API endpoints functionality
  • Verify CI/CD pipeline builds successfully
  • Test container images run correctly

- Add Dockerfile for containerized deployment
- Add Docker Compose configuration with environment variables
- Add .env file with DFX_MATH_EXE_ prefixed variables
- Add GitHub Actions workflow for automated Docker builds
- Add security scanning workflow for vulnerability detection
- Update README with Docker Compose setup instructions
- Add comprehensive CI/CD documentation
- Support multi-platform builds (AMD64/ARM64)
- Add automated testing and deployment to GHCR
- Fix Dockerfile curl installation typo
- Add proper permissions for private registry access
- Add image verification step after publishing
- Remove Docker Hub section to focus on GHCR
- Add private registry authentication instructions
- Add required permissions documentation
- Ensure provenance and SBOM for private images
@AhmedKorim AhmedKorim changed the base branch from main to develop November 18, 2025 22:36
@AhmedKorim AhmedKorim merged commit 4fade03 into develop Nov 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant