From eafde69a7e2878046132df5a5ccb3885a6cc8fad Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 23 Jan 2024 08:37:04 -0500 Subject: [PATCH] chore: update devcontainer Signed-off-by: Devin Buhl --- .devcontainer/devcontainer.json | 5 +++-- .devcontainer/postCreateCommand.sh | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 .devcontainer/postCreateCommand.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f7cd4085..c33a9203 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,7 +6,7 @@ "SOPS_AGE_KEY_FILE": "${containerWorkspaceFolder}/age.key" }, "postCreateCommand": { - "deps": "task workstation:venv" + "deps": "${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh" }, "features": { "ghcr.io/devcontainers/features/common-utils:2": { @@ -16,7 +16,8 @@ "minikube": "none" }, "ghcr.io/devcontainers/features/python:1": { - "version": "3.12.1" + "version": "3.11.7", + "installTools": false }, "ghcr.io/devcontainers-contrib/features/age:1": {}, "ghcr.io/devcontainers-contrib/features/cloudflared:1": {}, diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh new file mode 100755 index 00000000..9761c83b --- /dev/null +++ b/.devcontainer/postCreateCommand.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Remove the .venv directory +rm -rf .venv + +# Create a new virtual environment +task workstation:venv