Skip to content

Commit

Permalink
Merge pull request #104 from vegetablest/main
Browse files Browse the repository at this point in the history
feat: add dev container config
  • Loading branch information
edwardzjl authored Nov 20, 2024
2 parents f4da04d + de27fea commit 235b3d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/devcontainers/python:3.12-bullseye

RUN python3 -m pip install --upgrade pip hatch
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "Tablegpt-agent",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "Dockerfile"
},

"containerEnv" : { "HATCH_DATA_DIR": "${containerWorkspaceFolder}" },

// See https://stackoverflow.com/questions/70206554/share-ssh-keys-with-vs-code-devcontainer-running-with-dockers-wsl2-backend
"mounts": [
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,readonly"
]
}

0 comments on commit 235b3d8

Please sign in to comment.