From d8eaff2687902fa50d9e0572ee86e7d974faf9b3 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Sat, 23 May 2026 01:44:25 +0000 Subject: [PATCH] Synced .devcontainer from FX31337/.github Co-authored-by: kenorb --- .devcontainer/apt-packages.txt | 11 +++++ .devcontainer/devcontainer.json | 59 ++++++++++++++++++++++++++ .devcontainer/requirements-ansible.txt | 4 ++ .devcontainer/requirements.txt | 14 ++++++ 4 files changed, 88 insertions(+) create mode 100644 .devcontainer/apt-packages.txt create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/requirements-ansible.txt create mode 100644 .devcontainer/requirements.txt diff --git a/.devcontainer/apt-packages.txt b/.devcontainer/apt-packages.txt new file mode 100644 index 0000000..a962a42 --- /dev/null +++ b/.devcontainer/apt-packages.txt @@ -0,0 +1,11 @@ +coreutils +direnv +figlet +findutils +gh +git +links +mawk +sed +time +vim diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..fb73dc1 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,59 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu +{ + // "build": { + // "dockerfile": "Dockerfile", + // // Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04 + // // Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon. + // // "args": { "VARIANT": "ubuntu-22.04" } + // }, + + // Configure tool-specific properties. + // Note: Keep the list in alphabetical order. + "customizations": { + "vscode": { + "extensions": [ + "bierner.markdown-mermaid", + "DavidAnson.vscode-markdownlint", + "GitHub.copilot", + "GitHub.copilot-chat", + "GitHub.vscode-github-actions", + "vscodevim.vim", + "vsls-contrib.codetour", + "xaver.clang-format" + ] + } + }, + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers-contrib/features/actionlint:1": {}, + "ghcr.io/devcontainers-contrib/features/node-asdf:0": {}, + "ghcr.io/devcontainers-extra/features/pipx-package:1": {}, + "ghcr.io/devcontainers/features/docker-in-docker:2": {}, + "ghcr.io/devcontainers/features/python:1": {}, + "ghcr.io/guiyomh/features/vim:0": {}, + "ghcr.io/jungaretti/features/make:1": {}, + "ghcr.io/jungaretti/features/ripgrep:1": {}, + "ghcr.io/prulloac/devcontainer-features/pre-commit:1": {}, + "ghcr.io/sliekens/devcontainer-features/opencode:1": {} + }, + + // Pre-create host directories so OpenCode can bind-mount persistent config and cache data into the container + "initializeCommand": "mkdir -p \"$HOME/.local/share/opencode\" \"$HOME/.config/opencode\"", + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "uname -a", + + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/base:jammy", + + "postCreateCommand": "pip install -r .devcontainer/requirements.txt && pipx install --include-deps --force ansible && pipx inject ansible -r .devcontainer/requirements-ansible.txt && pre-commit install", + + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode", + // Note: Python dependencies can be added in the `requirements.txt` file. + "onCreateCommand": "sudo apt-get update && xargs -a .devcontainer/apt-packages.txt sudo apt-get install -y" +} diff --git a/.devcontainer/requirements-ansible.txt b/.devcontainer/requirements-ansible.txt new file mode 100644 index 0000000..9fe8088 --- /dev/null +++ b/.devcontainer/requirements-ansible.txt @@ -0,0 +1,4 @@ +# Python packages injected into the pipx-managed Ansible environment. +# Keep dependencies sorted alphabetically. +docker>=7.1 +requests==2.32.5 diff --git a/.devcontainer/requirements.txt b/.devcontainer/requirements.txt new file mode 100644 index 0000000..cfd4496 --- /dev/null +++ b/.devcontainer/requirements.txt @@ -0,0 +1,14 @@ +# Python's requirements +# Usage: pip install -r requirements.txt +# Note: Keep dependencies sorted alphabetically. +ansible +ansible-lint +argcomplete>=1.9.4 +docker>=7.1 +jinja2-cli +molecule +molecule-docker +pipenv +pre-commit +requests==2.32.5 +uv