Skip to content

Instantly share code, notes, and snippets.

@sftblw
Last active August 29, 2025 02:53
Show Gist options
  • Select an option

  • Save sftblw/8c0ea5efbe0f57325fd8badcd2d403a4 to your computer and use it in GitHub Desktop.

Select an option

Save sftblw/8c0ea5efbe0f57325fd8badcd2d403a4 to your computer and use it in GitHub Desktop.
codex devcontainer with rust plugin and host ollama
  • devcontainer.json on .devcontainer/devcontainer.json
#!/bin/bash
codex --oss --model=gpt-oss:20b --full-auto
{
"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