mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
Fix various devcontainer issues (#4761)
* Fix various devcontainer issues - fix dubious git ownership during postCreateCommand - fix gpg signing in container - fix local gitconfig in container - add gitlens extension to devcontainer - enable plugins in devcontainer * fix: spelling mistake
This commit is contained in:
@ -8,7 +8,15 @@ cd /workspaces/InvenTree
|
||||
python3 -m venv dev/venv
|
||||
. dev/venv/bin/activate
|
||||
|
||||
# Avoiding Dubious Ownership in Dev Containers for setup commands that use git
|
||||
git config --global --add safe.directory /workspaces/InvenTree
|
||||
|
||||
# setup InvenTree server
|
||||
pip install invoke
|
||||
inv update
|
||||
inv setup-dev
|
||||
|
||||
# remove existing gitconfig created by "Avoiding Dubious Ownership" step
|
||||
# so that it gets copyied from host to the container to have your global
|
||||
# git config in container
|
||||
rm -f /home/vscode/.gitconfig
|
||||
|
Reference in New Issue
Block a user