diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..214a6af --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/python +{ + "name": "Python 3", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/python:2-3.11-bookworm", + "features": { + "ghcr.io/devcontainer-community/devcontainer-features/astral.sh-uv:1": {}, + "ghcr.io/devcontainers/features/node:1": {} + }, + // Snyk CLI auth: + // map host port 8080 to the local port 8080 + "ports": [ + { + "host": 8080, + "container": 8080 + } + ], + // ------------- + // Install OpenCode CLI + "postCreateCommand": "bash .devcontainer/post-create.sh" +} diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh new file mode 100644 index 0000000..96ed257 --- /dev/null +++ b/.devcontainer/post-create.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +# update +sudo apt update -y + +## Install gh cli +sudo apt install gh -y + +# Install Snyk +npm install -g snyk + +# Install Gemini CLI +npm install -g @google/gemini-cli + +# Install uv +pipx install uv diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f60d0fd..7ecaf27 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,5 +25,6 @@ repos: - id: end-of-file-fixer - id: check-yaml - id: check-json + exclude: ^\.devcontainer/devcontainer\.json$ - id: debug-statements - id: check-added-large-files