Skip to content

Commit

Permalink
Mount ~/.bittensor/omron to devcontainer
Browse files Browse the repository at this point in the history
So that models don't need to redownload when recreating the container
  • Loading branch information
elesiuta committed Jan 16, 2025
1 parent 4ab2a03 commit 67a36c3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Ubuntu",
"name": "Omron Dev",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
// Built from https://github.com/inference-labs-inc/tensor-tools/blob/main/bittensor-devcontainer/Dockerfile
"image": "ghcr.io/inference-labs-inc/bittensor-devcontainer:latest",
// "build": {
// // Path is relative to the devcontainer.json file.
// "context": "..",
// "dockerfile": "Dockerfile"
// // Path is relative to the devcontainer.json file.
// "context": "..",
// "dockerfile": "Dockerfile"
// },
// "runArgs": ["--platform=linux/amd64"],

Expand Down Expand Up @@ -41,8 +41,12 @@
"ms-python.python"
]
}
}
},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
// "remoteUser": "root",

"mounts": [
{ "source": "${localEnv:HOME}/.bittensor/omron", "target": "/home/vscode/.bittensor/omron", "type": "bind" }
]
}

0 comments on commit 67a36c3

Please sign in to comment.