Repository navigation
Conversation
- project setup - image manipulation (build, test, push, pull, clean) - makefile as entry point
- no need for template backup and restore - bundle all image assets under assets/
- based on python3.12 trixie - minimal development tools (git, ssh, gh, uv, pre-commit) - self-initializing script
- during image build phase, initialize the hooks in the assets folder - this speeds up significantly testing and deployment
- Create README.md, CONTRIBUTE.md, and CHANGELOG.md - Move tests/README.md to TESTING.md - Fix documentation references and linting errors - Fix old help message in Makefile
- Add issue templates using GitHub Forms (YAML) format - Bug report template with environment details and reproduction steps - Feature request template with problem statement and impact analysis - Task template with acceptance criteria and priority dropdown - Add pull request template with testing checklist and change type classification - Templates include HTML comments for guidance and align with project workflow
- Add docker-compose.yml template with devcontainer service configuration - Update devcontainer.json to use dockerComposeFile instead of direct image/mounts - Move container configuration (image, volumes, environment) to docker-compose.yml - Update TestDevContainerJson: remove image test, add dockerComposeFile and service tests - Add TestDevContainerDockerCompose class with comprehensive docker-compose.yml tests
- update tests - update setup script
Changed devcontainer to mount projects into /workspace/<project_name>
subdirectory rather than directly to /workspace.
Key changes:
- Set workspaceFolder to /workspace/{{SHORT_NAME}}
- Mount using relative path (..) to subdirectory in docker-compose volumes
- Update scripts path to match new structure
- Remove redundant env vars from docker-compose
- Remove PRE_COMMIT_HOME from base image (now project-specific)
- Update tests
Implements support for mounting additional folders using standard Docker Compose override files. This enables e.g. multi-project development, shared libraries, and reference material mounting without modifying committed configuration. New files: - MOUNTS.md: Comprehensive documentation with examples - docker-compose.override.yml.example: Template with common patterns - .devcontainer/.gitignore: Ignores user-specific override files Changes: - README.md: Added mounting section with quick start - conftest.py: Test fixture creates and tests override functionality - test_integration.py: 4 integration tests verify mount operations Features: - Standard Docker Compose override pattern - Per-developer customization (gitignored) - Full integration test coverage - Documentation with troubleshooting guide Closes #3
[BREAKING] Add multi-project support via subdirectory mounting and compose overrides
Add GitHub templates for issues and pull requests
The script was using 'return 1' outside of a function, which is invalid in bash and won't properly exit the script with an error code. Changed to 'exit 1' to properly signal an error condition when pre-commit installation fails.
- Add EXPECTED_VERSIONS dictionary at module level to define all tool versions - Update all version checks to use variables from EXPECTED_VERSIONS - Fix inconsistency: pre-commit test comment said 4.3.0 but checked 4.5.0 - Makes version testing more maintainable and less fragile - When tool versions change, only EXPECTED_VERSIONS needs updating This resolves confusion about expected versions and makes the test suite easier to maintain when dependencies are updated.
The pre-commit hook in assets/workspace/.githooks/pre-commit was referencing service 'dev', but the actual service name defined in docker-compose.yml is 'devcontainer'. This caused the hook to fail when executed from outside the container. Changed 'podman compose run --rm dev' to 'podman compose run --rm devcontainer' to match the actual service name.
The variable ssh_agent_added was only assigned inside conditional blocks (lines 263, 268) but referenced on line 271. If both conditions were false (SSH mount already exists AND environment variable already set), the variable would be undefined, causing a NameError. Fixed by initializing ssh_agent_added to False before the conditional checks, ensuring it always has a defined value when referenced.
Contributor
i had to, since its not pushed to ghcr.
make test-integrations fails hard. |
- Create utils.sh with cross-platform helper functions:
- sed_inplace: Handle BSD (macOS) vs GNU (Linux) sed differences
- run_with_timeout: Cross-platform timeout command
- get_iso_date: Consistent ISO 8601 date formatting
- detect_os/get_sed_type: Detection and debugging utilities
- Update build.sh:
- Use sed_inplace for reliable template replacement
- Improve file handling with null-delimited find
- Add sed type detection to debug output
- Fix shellcheck warnings
- Update push.sh:
- Fix broken sed -i command that was failing silently on macOS
- Use sed_inplace and get_iso_date utilities
- Remove error suppression (2>/dev/null || true)
- Update setup.sh:
- Replace timeout command with run_with_timeout
- Ensures compatibility on macOS where timeout is not available
This fixes the issue where {{IMAGE_TAG}} placeholders were not being
replaced during builds on macOS systems.
- Update Makefile pull target to support REGISTRY_TEST=1 mode with --tls-verify=false - Modify test to call podman directly instead of through make to avoid output capturing issues - Refactor pull target to meet checkmake max body length requirement - All 8 registry tests now pass successfully The issue was that podman needs --tls-verify=false to communicate with insecure local registries (localhost with dynamic ports), and this flag wasn't being passed when pulling images in test mode.
- update test fixture - update image content test - refurbish tests to check for placeholders
Contributor
Author
|
@gerchowl may I ask for one final run of |
The BUILT_PLATFORMS variable was initialized as an empty string and concatenated with a leading space, resulting in a leading space in the final string. When iterating with `for img_tag in $BUILT_PLATFORMS`, the leading space caused an empty string to be the first iteration value, leading to attempts to add an empty image name to the manifest with `podman manifest add "$REPO:latest" ""`, which would fail. Fix by conditionally adding the space only when BUILT_PLATFORMS is not empty, ensuring the first image tag is added without a leading space.
Add a new post-create.sh script that runs when the container is created for the first time, allowing users to customize their setup with project- specific dependencies and tools. Changes: - Add assets/workspace/.devcontainer/scripts/post-create.sh script - Configure postCreateCommand in devcontainer.json to call the script - Update README.md to document the new lifecycle script - Add test_setup_scripts_exist check for post-create.sh - Add test_devcontainer_json_post_create_command to verify configuration - Update test_image.py to include post-create.sh in expected files list The post-create script provides a dedicated hook for one-time setup tasks that should run only when the container is first created, complementing the existing initialize.sh (host-side) and post-attach.sh (runs on every attach) lifecycle hooks.
- uv from 0.9.15 to 0.9.16 - ruff from 0.14.7 to 0.14.8
This was referenced Dec 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the vigOS Development Environment - a standardized, production-ready development container image designed for Python-based projects. This is the first official release (v0.1) of the devcontainer system, providing a complete, reproducible development environment with integrated tooling and automation.
The vigOS devcontainer provides:
init-workspacescriptRelated Issue(s)
Closes #2
Closes #3
Type of Change
Changes Made
Core Infrastructure
Devcontainer Template
Git & GitHub Integration
Development Tools & Automation
Testing Infrastructure
Documentation
.devcontainer/README.md- focused documentation for devcontainer lifecycle, mounts, and workspace configurationTesting
make test- runs image, integration, and registry tests)make test-image)make test-integration)make test-registry)Checklist
[Unreleased]sectionAdditional Notes
Release Proposal: v0.1
This PR proposes the first official release (0.1) of the vigOS Development Environment.
Release Artifacts:
ghcr.io/vig-os/devcontainer:0.1Release Process (after approval):
This will create git tag, build multi-architecture images, push to GHCR, create GitHub release, and automatically update both main README.md and devcontainer README.md with version, release link, and date.
Architecture Decisions
Known Limitations
Review Focus Areas
Please pay special attention to:
Quick Demo