Compare commits
2 Commits
main
...
add-devcon
| Author | SHA1 | Date | |
|---|---|---|---|
|
4c12baef28
|
|||
|
eb3a74b709
|
7
.devcontainer/Dockerfile
Normal file
7
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# .devcontainer/Dockerfile
|
||||||
|
FROM mcr.microsoft.com/devcontainers/javascript-node:1-20-bullseye
|
||||||
|
|
||||||
|
# CACHED INSTALLATION:
|
||||||
|
# Install global NPM packages here. This creates a cached Docker layer.
|
||||||
|
# We use 'su node' to ensure permissions are correct for the non-root user.
|
||||||
|
RUN su node -c "npm install -g @google/gemini-cli"
|
||||||
40
.devcontainer/devcontainer.json
Normal file
40
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"name": "Gemini Agent Quality Ops",
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile"
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/python:1": {
|
||||||
|
"version": "3.11",
|
||||||
|
"installTools": true,
|
||||||
|
"optimize": true
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/git:1": {},
|
||||||
|
"ghcr.io/devcontainers/features/git-lfs:1": {},
|
||||||
|
"ghcr.io/devcontainers-extra/features/pre-commit:2": {}
|
||||||
|
},
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"ms-python.python",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"vitest.explorer",
|
||||||
|
"google.gemini-cli-vscode-ide-companion",
|
||||||
|
"google.geminicodeassist"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"postStartCommand": "bash .devcontainer/setup.sh",
|
||||||
|
"remoteUser": "vscode",
|
||||||
|
"updateRemoteUserUID": true,
|
||||||
|
"mounts": [
|
||||||
|
"source=pipx-venvs,target=/home/node/.local/share/pipx,type=volume",
|
||||||
|
"source=pipx-bin,target=/home/node/.local/bin,type=volume",
|
||||||
|
"source=pre-commit-cache,target=/home/node/.cache/pre-commit,type=volume",
|
||||||
|
"source=${localEnv:USERPROFILE}/.gemini,target=/home/node/.gemini,type=bind"
|
||||||
|
]
|
||||||
|
}
|
||||||
11
.devcontainer/setup.sh
Normal file
11
.devcontainer/setup.sh
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 1. Fix Git Permissions (Critical in Docker)
|
||||||
|
git config --global --add safe.directory $(pwd)
|
||||||
|
|
||||||
|
# 2. Re-connect Git Hooks
|
||||||
|
if command -v pre-commit &> /dev/null; then
|
||||||
|
pre-commit install
|
||||||
|
else
|
||||||
|
echo "⚠️ Warning: pre-commit not found. Skipping hook installation."
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user