Skip to content

Conversation

@backpaper0
Copy link
Member

@backpaper0 backpaper0 commented Aug 16, 2025

Add Dev Container Configuration

This PR adds a complete Dev Container setup to standardize the development environment for the doma-spring-boot project.

Changes

Dev Container Setup:

  • Added .devcontainer/Dockerfile based on Java 17 dev container image with proper Maven directory configuration
  • Added .devcontainer/devcontainer.json with comprehensive development environment configuration including:
    • SDKMAN!
    • Docker-in-Docker support for Testcontainers
    • Python 3.12 with pre-commit tools
    • Persistent Maven and Docker volumes
    • VS Code extensions for Spring Boot, XML, and YAML development

Pre-commit Hooks:

  • Added .pre-commit-config.yaml with automated code quality checks:
    • Java code formatting on pre-commit
    • Full project verification on pre-push
  • Added setup script .devcontainer/setup.sh to automatically install pre-commit hooks

Benefits

  • Consistent Development Environment: All developers will use the same Java 17, Maven, and tooling versions
  • Automated Code Quality: Pre-commit hooks ensure code formatting and verification before commits/pushes
  • Testcontainers Support: Docker-in-Docker enables integration testing with Testcontainers
  • Quick Setup: New developers can start contributing immediately with a single container build

Usage

Developers can now use VS Code's "Reopen in Container" feature to automatically set up the complete development environment with all necessary tools and extensions.

@backpaper0 backpaper0 changed the title Add devcontainer configuration Add Dev Container configuration Aug 16, 2025
@backpaper0 backpaper0 marked this pull request as ready for review August 16, 2025 08:21
@github-actions
Copy link

This pull request is stale because it has been open for 60 days with no activity.

@github-actions github-actions bot added the stale label Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant