From c8d6f2246b7df5fcb7c5ef95bcde8fede95388c9 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 1 Mar 2024 16:53:42 +1100 Subject: [PATCH] Fix postgresql container (#6610) - Linked volume caused permission issues --- .devcontainer/docker-compose.yml | 2 +- .devcontainer/postCreateCommand.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index c7ea36b147..c8626c0091 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -7,7 +7,7 @@ services: expose: - 5432/tcp volumes: - - ../dev:/var/lib/postgresql/data:z + - ../dev/database:/var/lib/postgresql/data:z environment: POSTGRES_DB: inventree POSTGRES_USER: inventree_user diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh index 04be371ef1..9cf0b9c3a0 100755 --- a/.devcontainer/postCreateCommand.sh +++ b/.devcontainer/postCreateCommand.sh @@ -7,9 +7,13 @@ git config --global --add safe.directory /home/inventree python3 -m venv /home/inventree/dev/venv --system-site-packages --upgrade-deps . /home/inventree/dev/venv/bin/activate -# setup InvenTree server +# 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