Skip to content

fix(docker): Fix git submodules not properly handling through#62

Closed
lukashow wants to merge 3 commits intomainfrom
fix/docker
Closed

fix(docker): Fix git submodules not properly handling through#62
lukashow wants to merge 3 commits intomainfrom
fix/docker

Conversation

@lukashow
Copy link
Collaborator

@lukashow lukashow commented Jan 2, 2026

Part of the fix of #60

tldr: This fix copies .git and .gitmodules to the prod environment (although it's not the best option but it's part of the LifeForge package manager mechanism so we have to keep it)
Also applied proper scanning mechanism for pocketbase by checking whether the pocketbase is really present or not (using shell command)

Note this is just temporary fix as some inconsistencies still occurs. However, schema synchronisation is now a MUST. The project itself is updating too fast.


This pull request introduces several improvements to Docker and development workflows, especially around submodule management and PocketBase server startup. The main changes ensure that git submodules are handled correctly in Docker builds, and that the PocketBase binary is automatically downloaded if missing, improving developer experience and deployment reliability.

Docker and Git Submodule Handling:

  • Added the apps/wallet submodule to .gitmodules, enabling the project to include and manage the new wallet app as a submodule.
  • Updated the Docker build process to copy the .git and .gitmodules files into the container, allowing git commands (such as submodule initialization) to work inside Docker. [1] [2]
  • Installed git in the Docker image to support operations that require git at runtime.
  • Modified .dockerignore to stop ignoring the .git directory, ensuring it is available in Docker builds where needed.

PocketBase Server Improvements:

  • Updated the PocketBase CLI utility to check if the PocketBase binary exists before starting; if not, it downloads the binary automatically, improving reliability for local development and CI. [1] [2]

@github-actions
Copy link

github-actions bot commented Jan 2, 2026

🔨 Build Results

Backend Build: Passed
Frontend Build: Passed

🎉 All builds completed successfully!

🔗 View full workflow run

@vercel
Copy link

vercel bot commented Jan 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Review Updated (UTC)
lifeforge-ui Ignored Ignored Jan 2, 2026 0:23am

@lukashow
Copy link
Collaborator Author

lukashow commented Jan 6, 2026

I'd close this PR as it is no longer applicable for current structure.

@lukashow lukashow closed this Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant