Skip to content

Commit

Permalink
Development containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Harrison committed Jan 31, 2024
1 parent f519ba4 commit 1005458
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer
4 changes: 4 additions & 0 deletions devcontainer/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
If you wish to use devcontainers for development in vscode. You will need to rename or create a symlink of this directory to .devcontainer and reload your window. This will trigger the an option to open the code in a container. Once the code is opened in a container you will be able to contribute like normally without having to install all the dependencies on your local system. Also, the development container provides access to your local home directory via the /code directory.

quick how-to:
run this command on linux from the root llmware: ln -s devcontainer .devcontainer
30 changes: 30 additions & 0 deletions devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "LLMWARE Dev",
"build": { "dockerfile": "../Dockerfile" },
//"image": "provocoai/llmware:dev-01",

// "runArgs": [
// "--name",
// "${localWorkspaceFolderBasename}", // Container name
// "-it",
// "-l",
// "com.docker.compose.project=devcontainers" // Container group name
// ],
"mounts" : [
//"source=${localWorkspaceFolder}/.vscode-server/,target=/root/.vscode-server/,type=bind,consistency=cached",
"source=${localEnv:HOME},target=/code,type=bind,consistency=cached"
],
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode"
]
}
}
}

0 comments on commit 1005458

Please sign in to comment.