- devcontainer.json on .devcontainer/devcontainer.json
Last active
August 29, 2025 02:53
-
-
Save sftblw/8c0ea5efbe0f57325fd8badcd2d403a4 to your computer and use it in GitHub Desktop.
codex devcontainer with rust plugin and host ollama
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
| #!/bin/bash | |
| codex --oss --model=gpt-oss:20b --full-auto |
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
Show hidden characters
| { | |
| "name": "codex-min", | |
| "image": "mcr.microsoft.com/devcontainers/base:jammy", | |
| // Rust & Node만 feature로 설치 (간단/재현성) | |
| "features": { | |
| "ghcr.io/devcontainers/features/rust:1": {}, | |
| "ghcr.io/devcontainers/features/node:1": { | |
| "version": "22" | |
| } | |
| }, | |
| // 리눅스 호스트에서도 host.docker.internal 보장 | |
| "runArgs": [ | |
| "--network=host", | |
| "--security-opt=no-new-privileges", | |
| "--cap-drop=ALL" | |
| ], | |
| // 호스트에서 돌아가는 Ollama에 붙기 | |
| "containerEnv": { | |
| "OLLAMA_HOST": "http://localhost:11434" | |
| }, | |
| // Codex CLI만 깔아둠 | |
| "postCreateCommand": "npm i -g @openai/codex", | |
| // 편의 확장 최소 | |
| "customizations": { | |
| "vscode": { | |
| "extensions": [ | |
| "rust-lang.rust-analyzer", | |
| "tamasfe.even-better-toml", | |
| "BarbossHack.crates-io" | |
| ], | |
| "settings": { | |
| "editor.formatOnSave": true, | |
| "rust-analyzer.check.allTargets": true | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment