]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Development: devcontainer fixes for Windows (#10843)
authorExploracuriousAlex <127612956+ExploracuriousAlex@users.noreply.github.com>
Wed, 17 Sep 2025 16:16:58 +0000 (18:16 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Sep 2025 16:16:58 +0000 (16:16 +0000)
* chore(devcontainer): drop read-only host .gitconfig bind mount

The bind mount prevented adjusting git config inside the dev container, and VS Code Dev Containers already copies the host .gitconfig automatically, making the mount unnecessary. This restores ability to manage git settings within the container.

* chore(gitignore): ignore .pnpm-store folder for pnpm package management

Add .pnpm-store/ to .gitignore to prevent local pnpm package store from being tracked by git when using the devcontainer.

* docs(development): clarify VS Code devcontainer setup steps for Windows

Add instructions, how to overcome some issues caused by using Windows as host system.

.devcontainer/docker-compose.devcontainer.sqlite-tika.yml
.gitignore
docs/development.md

index 13d59c776cc852bfaac3441fa6269454fbd30f66..e106cea1b6062dc37c438f4c318f20cdef16fe05 100644 (file)
@@ -49,7 +49,6 @@ services:
       - ./data:/usr/src/paperless/paperless-ngx/data
       - ./media:/usr/src/paperless/paperless-ngx/media
       - ./consume:/usr/src/paperless/paperless-ngx/consume
-      - ~/.gitconfig:/usr/src/paperless/.gitconfig:ro
     environment:
       PAPERLESS_REDIS: redis://broker:6379
       PAPERLESS_TIKA_ENABLED: 1
index 452273705af8e189b5281d5a1108226acdfcfb5e..c7b5c4d8ed94a375f221dd72b513b89e28f8e90b 100644 (file)
@@ -107,3 +107,6 @@ celerybeat-schedule*
 /.devcontainer/data/
 /.devcontainer/media/
 /.devcontainer/redisdata/
+
+# ignore pnpm package store folder created when setting up the devcontainer
+.pnpm-store/
index c624f97c435f2ff304cf029ce03e4763c36662e1..71ca4d930c033de4093d5e2f54d7e2e664d47d2f 100644 (file)
@@ -470,9 +470,14 @@ To get started:
 
 2. VS Code will prompt you with "Reopen in container". Do so and wait for the environment to start.
 
-3. Initialize the project by running the task **Project Setup: Run all Init Tasks**. This
+3. In case your host operating system is Windows:
+
+    - The Source Control view in Visual Studio Code might show: "The detected Git repository is potentially unsafe as the folder is owned by someone other than the current user." Use "Manage Unsafe Repositories" to fix this.
+    - Git might have detecteded modifications for all files, because Windows is using CRLF line endings. Run `git checkout .` in the containers terminal to fix this issue.
+
+4. Initialize the project by running the task **Project Setup: Run all Init Tasks**. This
    will initialize the database tables and create a superuser. Then you can compile the front end
    for production or run the frontend in debug mode.
 
-4. The project is ready for debugging, start either run the fullstack debug or individual debug
+5. The project is ready for debugging, start either run the fullstack debug or individual debug
    processes. Yo spin up the project without debugging run the task **Project Start: Run all Services**