mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
2e81a304d1
* Working on devcontainer with postgresql * Fix for docker-compose.yml * Update postCreateCommand * Tweak docker compose file * Fix Dockerfile - Do not use uv (breaks process) * Update postCreateCommand.sh - Skip database backup * Tweak file * Further improvements - Remove 'devcontainer' Dockerfile target - Fix postCreateCommand * Further cleanup * Reduce SQL errors - Use filter().exists() rather than get() * Set default SITE_URL * Docs updates * Fix hard-coded django version * Update faq.md * Typo fix: PluginObject -> PluginConfig * Docs: strict mode * docs: fix link * docs: fix typo * Fix error message * Revert change to config_template default
19 lines
569 B
Bash
Executable File
19 lines
569 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
|
|
|
|
# setup InvenTree server
|
|
invoke update -s
|
|
invoke setup-dev
|
|
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
|