From eadac84cf926683ba84a521c9cd991b475fc6c1c Mon Sep 17 00:00:00 2001 From: Jonathan Nagayoshi Date: Thu, 24 Aug 2023 00:52:38 +0000 Subject: [PATCH] fix(devcontainer): fixes python new requirements for venvs Signed-off-by: Jonathan Nagayoshi --- contrib/.devcontainer/devcontainer.json | 2 +- contrib/.devcontainer/postCreate.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/.devcontainer/devcontainer.json b/contrib/.devcontainer/devcontainer.json index b312102784..14e7d7f0ae 100644 --- a/contrib/.devcontainer/devcontainer.json +++ b/contrib/.devcontainer/devcontainer.json @@ -6,7 +6,7 @@ "features": { "ghcr.io/devcontainers/features/common-utils:1": {}, "ghcr.io/devcontainers/features/docker-from-docker:1": {}, - "ghcr.io/devcontainers-contrib/features/mkdocs:1": {} + "ghcr.io/devcontainers-contrib/features/mkdocs:2": {} }, // Use 'forwardPorts' to make a list of ports inside the container available locally. diff --git a/contrib/.devcontainer/postCreate.sh b/contrib/.devcontainer/postCreate.sh index f0631a4af2..88f403de5e 100755 --- a/contrib/.devcontainer/postCreate.sh +++ b/contrib/.devcontainer/postCreate.sh @@ -1,3 +1,6 @@ #!/bin/bash yarn install -pip install mkdocs-techdocs-core \ No newline at end of file +export VIRTUAL_ENV=$HOME/venv +python3 -m venv $VIRTUAL_ENV +export PATH="$VIRTUAL_ENV/bin:$PATH" +python3 -m pip install mkdocs-techdocs-core \ No newline at end of file