From 50130b7c005847343e1c609a8714d8246238c8d1 Mon Sep 17 00:00:00 2001 From: ptaylor Date: Fri, 5 Jan 2024 09:47:21 -0800 Subject: [PATCH] persist shell history --- .devcontainer/devcontainer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 11a812c9d..4a7ef2697 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,9 @@ { "image": "rapidsai/devcontainers:24.02-cpp-llvm17-cuda12.3-nvhpc23.7-ubuntu22.04", - "hostRequirements": { "gpu": true }, + "hostRequirements": { "gpu": "optional" }, - "initializeCommand": ["/bin/bash", "-c", "mkdir -p .cache/.{aws,config}"], + "initializeCommand": ["/bin/bash", "-c", "mkdir -p .cache/.{aws,cache,config}"], "containerEnv": { "SCCACHE_REGION": "us-east-2", @@ -12,8 +12,11 @@ "HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history" }, + "workspaceFolder": "/home/coder", + "workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/stdexec,type=bind,consistency=consistent", "mounts": [ "source=${localWorkspaceFolder}/.cache/.aws,target=/home/coder/.aws,type=bind,consistency=consistent", + "source=${localWorkspaceFolder}/.cache/.cache,target=/home/coder/.cache,type=bind,consistency=consistent", "source=${localWorkspaceFolder}/.cache/.config,target=/home/coder/.config,type=bind,consistency=consistent" ],