Add Dev Container configuration and update helper script #14

Merged
Tealk merged 11 commits from feature/devcontainer into develop 2025-11-02 13:12:08 +01:00
Owner

This PR introduces a standardized Dev Container setup for the Ansible project to provide a consistent, reproducible development environment. It also updates the helper script to integrate smoothly with the containerized workflow.

Dev Container Changes

  • Added devcontainer.json with:
    • Build from custom Dockerfile located at .devcontainer/Dockerfile with context set to project root.
    • Mounts for:
      • SSH keys (~/.ssh) to enable seamless SSH access inside the container.
      • Git configuration file (~/.gitconfig) to preserve user Git settings.
    • VS Code customizations including:
      • Essential extensions: redhat.ansible, redhat.vscode-yaml, and Gxl.git-graph-3.
      • Settings to point to correct Ansible and ansible-lint binaries and Python interpreter.
    • Set remoteUser to vscode for proper permissions and environment consistency.

Helper Script Adjustments

  • Modified the helper script to:
    • Detect and operate correctly within the Dev Container environment.
    • Use the container’s Python interpreter and Ansible installation paths.
    • Support mounting and environment variables expected by the containerized setup.
This PR introduces a standardized Dev Container setup for the Ansible project to provide a consistent, reproducible development environment. It also updates the helper script to integrate smoothly with the containerized workflow. ## Dev Container Changes - Added `devcontainer.json` with: - **Build from custom Dockerfile** located at `.devcontainer/Dockerfile` with context set to project root. - **Mounts** for: - SSH keys (`~/.ssh`) to enable seamless SSH access inside the container. - Git configuration file (`~/.gitconfig`) to preserve user Git settings. - **VS Code customizations** including: - Essential extensions: `redhat.ansible`, `redhat.vscode-yaml`, and `Gxl.git-graph-3`. - Settings to point to correct Ansible and ansible-lint binaries and Python interpreter. - Set `remoteUser` to `vscode` for proper permissions and environment consistency. ## Helper Script Adjustments - Modified the helper script to: - Detect and operate correctly within the Dev Container environment. - Use the container’s Python interpreter and Ansible installation paths. - Support mounting and environment variables expected by the containerized setup.
Tealk force-pushed feature/devcontainer from 71a4c2366f to 97be5cb64e 2025-10-31 22:34:08 +01:00 Compare
Tealk force-pushed feature/devcontainer from caa1aac6e7 to bd42ceaeff 2025-11-02 13:11:27 +01:00 Compare
Tealk merged commit 94ae3c8dff into develop 2025-11-02 13:12:08 +01:00
Tealk deleted branch feature/devcontainer 2025-11-02 13:12:08 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
RollenspielMonster/ansible_collection!14
No description provided.