2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

Devcontainer updates (#9101)

* Update docker image

- Required changes to pass display through from host OS

* Update docs

* Update devcontainer docs
This commit is contained in:
Oliver
2025-02-19 11:04:20 +11:00
committed by GitHub
parent c314a4575d
commit 8cbddd489d
5 changed files with 14 additions and 6 deletions

View File

@ -14,6 +14,10 @@ ENV INVENTREE_BACKUP_DIR="${INVENTREE_DATA_DIR}/backup"
ENV INVENTREE_PLUGIN_DIR="${INVENTREE_DATA_DIR}/plugins"
ENV INVENTREE_CONFIG_FILE="${INVENTREE_DATA_DIR}/config.yaml"
# Required for running playwright within devcontainer
ENV DISPLAY=:0
ENV LIBGL_ALWAYS_INDIRECT=1
COPY contrib/container/init.sh ./
RUN chmod +x init.sh
@ -31,6 +35,4 @@ RUN apt install -y \
RUN yarn config set network-timeout 600000 -g
# Install python database connectors
ENTRYPOINT ["/bin/bash", "./init.sh"]

View File

@ -23,6 +23,7 @@ services:
dockerfile: .devcontainer/Dockerfile
volumes:
- ../:/home/inventree:z
- /tmp/.X11-unix:/tmp/.X11-unix
environment:
INVENTREE_DB_ENGINE: postgresql