From 67a36c3b0abbb429c845a39362de5a73a2bf263d Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 16 Jan 2025 10:21:17 -0500 Subject: [PATCH] Mount ~/.bittensor/omron to devcontainer So that models don't need to redownload when recreating the container --- .devcontainer/devcontainer.json | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 903efcb1..c79c718c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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"], @@ -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" } + ] }