2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Docs/devcontainer (#4787)

* Added empty problemMatchers to prevent vscode from asking

* Added first draft for devcontainer docs

* Add 3rd space to tips

* Fix wording

* Add 4rd space to tips

* Refphased intro text

* Fixed spelling mistakes and added note

* Added dynamic variables for devcontainer

* Added missing containerWorkspaceFolder vars other devcontainer files

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>

* Added note for inventree core intelicense for plugin devs

* Added where is dev data stored question to faq

* Update docs/docs/start/devcontainer.md

* update toc

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
Lukas
2023-05-12 09:13:48 +02:00
committed by GitHub
parent 41cef1a190
commit 17057f4266
6 changed files with 133 additions and 25 deletions

View File

@ -1,22 +1,23 @@
#!/bin/bash
# Avoiding Dubious Ownership in Dev Containers for setup commands that use git
# Note that the local workspace directory is passed through as the first argument $1
git config --global --add safe.directory $1
# create folders
mkdir -p /workspaces/InvenTree/dev/{commandhistory,plugins}
cd /workspaces/InvenTree
mkdir -p $1/dev/{commandhistory,plugins}
cd $1
# create venv
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
invoke update
invoke 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
# so that it gets copied from host to the container to have your global
# git config in container
rm -f /home/vscode/.gitconfig