Skip to content

Disable Moby (not present in Debian Trixie), add minimal devcontainer - #191

Merged
bubacoder merged 1 commit into
mainfrom
feature/devcontainer
Sep 1, 2025
Merged

Disable Moby (not present in Debian Trixie), add minimal devcontainer#191
bubacoder merged 1 commit into
mainfrom
feature/devcontainer

Conversation

@bubacoder

@bubacoder bubacoder commented Sep 1, 2025

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Added a minimal Dev Container option with essential tools (AWS CLI, Python, Terraform, Go task, Terraform docs, pre-commit) for faster setup.
    • Disabled Moby in the full Dev Container (not present in Debian Trixie).
  • Documentation

    • Improved Dev Container README formatting for clarity and readability.

@coderabbitai

coderabbitai Bot commented Sep 1, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

Updates Dev Container assets: formats .devcontainer/README.md, augments .devcontainer/complete/devcontainer.json to include docker-outside-of-docker configuration with an explicit moby flag, and adds a new minimal Dev Container definition at .devcontainer/minimal/devcontainer.json with several features configured.

Changes

Cohort / File(s) Summary
README formatting
.devcontainer/README.md
Minor markdown formatting: added blockquote marker and inline code for filename; no content changes.
Complete devcontainer update
.devcontainer/complete/devcontainer.json
Added docker-outside-of-docker feature (version latest), included moby:false, adjusted JSON formatting (trailing comma) and added reference comment.
New minimal devcontainer
.devcontainer/minimal/devcontainer.json
Introduced minimal Dev Container using base:bookworm image with features (AWS CLI, Python, Terraform, Go Task, Terraform docs, pre-commit); comments note optional settings; no ports or remoteUser set.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Dev Container Client
  participant VS as VS Code / Dev Containers
  participant DC as Devcontainer Engine
  participant Img as Base Image
  participant Feat as Feature Installers
  participant Docker as Docker (host)

  Dev->>VS: Open folder in container
  VS->>DC: Parse devcontainer.json (complete/minimal)
  DC->>Img: Pull mcr.microsoft.com/devcontainers/base:bookworm
  DC->>Feat: Apply features (AWS CLI, Python, Terraform, Task, TF Docs, pre-commit)
  alt complete config
    Note over DC,Feat: Install docker-outside-of-docker (version: latest, moby: false)
    Feat-->>Docker: Configure access to host Docker
  end
  DC-->>VS: Start container
  VS-->>Dev: Attach to running container
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/devcontainer

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (4)
.devcontainer/complete/devcontainer.json (1)

21-26: Pin Docker CE to v27 and persist DinD cache

  • Pin the Docker engine to version 27 now that the CE apt repo supports Debian Trixie.
  • Mount a named volume for /var/lib/docker to persist the DinD image cache between rebuilds.
-        "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
-          "version": "latest",
-          "dockerDashComposeVersion": "v2",
-          "moby": false
-        }
+        "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
+          "version": "27",
+          "dockerDashComposeVersion": "v2",
+          "moby": false
+        }
@@ -end
+    // Persist DinD image cache between rebuilds (optional)
+    ,
+    "mounts": [
+      "source=devcontainer-docker-data,target=/var/lib/docker,type=volume"
+    ]
.devcontainer/minimal/devcontainer.json (3)

6-6: Align Debian base across devcontainers or document the divergence.
Complete uses Debian trixie (via build arg); minimal uses bookworm. This can cause tool/version drift. Either align to the same base or note why minimal intentionally differs.


10-16: Pin feature tool versions for reproducibility.
Avoid “floating latest” to keep rebuilds stable and CI deterministic.

Apply version pins (adjust to your vetted versions):

-    "ghcr.io/devcontainers/features/aws-cli:1": {},
-    "ghcr.io/devcontainers/features/python:1": {},
-    "ghcr.io/devcontainers/features/terraform:1": {},
-    "ghcr.io/devcontainers-extra/features/go-task:1": {},
-    "ghcr.io/devcontainers-extra/features/terraform-docs:1": {},
-    "ghcr.io/devcontainers-extra/features/pre-commit:2": {}
+    "ghcr.io/devcontainers/features/aws-cli:1": { "version": "2" },
+    "ghcr.io/devcontainers/features/python:1": { "version": "3.12" },
+    "ghcr.io/devcontainers/features/terraform:1": { "version": "1.9.5" },
+    "ghcr.io/devcontainers-extra/features/go-task:1": { "version": "3.39.2" },
+    "ghcr.io/devcontainers-extra/features/terraform-docs:1": { "version": "0.19.4" },
+    "ghcr.io/devcontainers-extra/features/pre-commit:2": { "version": "3.8.0" }

21-26: Consider editor defaults and non-root user.
Optionally add VS Code extensions/settings and use a non-root user to match typical devcontainer conventions.

Example:

   // "customizations": {},
+  "customizations": {
+    "vscode": {
+      "extensions": [
+        "hashicorp.terraform",
+        "ms-python.python",
+        "ms-python.vscode-pylance",
+        "github.vscode-github-actions"
+      ]
+    }
+  },
 
   // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
-  // "remoteUser": "root"
+  // "remoteUser": "root"
+  // Or explicitly use the default non-root if present in base image (e.g., "vscode")
+  // "remoteUser": "vscode"
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 364426d and 8719c27.

📒 Files selected for processing (3)
  • .devcontainer/README.md (1 hunks)
  • .devcontainer/complete/devcontainer.json (1 hunks)
  • .devcontainer/minimal/devcontainer.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: build
  • GitHub Check: check
🔇 Additional comments (1)
.devcontainer/README.md (1)

3-3: LGTM on formatting tweak.
The blockquote and inline code improve readability without changing meaning.

@bubacoder
bubacoder merged commit cb9671e into main Sep 1, 2025
4 checks passed
@bubacoder
bubacoder deleted the feature/devcontainer branch September 1, 2025 18:44
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