mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
.devcontainer
devcontainer.json
docker-compose.yml
postCreateCommand.sh
.devops
.github
.vscode
InvenTree
ci
contrib
deploy
docker
docs
images
src
.deepsource.toml
.eslintrc.yml
.gitattributes
.gitignore
.pkgr.yml
.pre-commit-config.yaml
CONTRIBUTING.md
Dockerfile
LICENSE
Procfile
README.md
RELEASE.md
SECURITY.md
backportrc.json
crowdin.yml
docker-compose.yml
docker.dev.env
package-lock.json
package.json
pyproject.toml
readthedocs.yml
requirements-dev.in
requirements-dev.txt
requirements.in
requirements.txt
runtime.txt
tasks.py
yarn.lock
23 lines
648 B
Bash
Executable File
23 lines
648 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Avoiding Dubious Ownership in Dev Containers for setup commands that use git
|
|
git config --global --add safe.directory /home/inventree
|
|
|
|
# create venv
|
|
python3 -m venv /home/inventree/dev/venv --system-site-packages --upgrade-deps
|
|
. /home/inventree/dev/venv/bin/activate
|
|
|
|
# Run initial InvenTree server setup
|
|
invoke update -s
|
|
|
|
# Configure dev environment
|
|
invoke setup-dev
|
|
|
|
# Install required frontend packages
|
|
invoke frontend-install
|
|
|
|
# remove existing gitconfig created by "Avoiding Dubious Ownership" step
|
|
# so that it gets copied from host to the container to have your global
|
|
# git config in container
|
|
rm -f /home/vscode/.gitconfig
|