Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker #142

Merged
merged 11 commits into from
May 2, 2024
Merged

Conversation

MateuszKikmunter
Copy link
Collaborator

This fixes issues with running the project on MacOS and utilizing Docker. The issue was with mounting volumes and running the backend, as well as restoring the database.
The backend was crashing when running bcrypt because the container architecture didn't support the execution of the bcrypt binary. This is fixed by simply ignoring node_modules in a .dockerignore file and forcing Docker to fetch packages compatible with the container's architecture.

The second issue is related to mongo restore and permissions. This has been fixed by adjusting the volumes and creating dedicated Dockerfiles for all layers of the app for simplicity and clarity.

@MateuszKikmunter MateuszKikmunter added the bug Something isn't working label May 2, 2024
@MateuszKikmunter MateuszKikmunter requested a review from gitfrosh May 2, 2024 10:22
@MateuszKikmunter MateuszKikmunter self-assigned this May 2, 2024
@MateuszKikmunter MateuszKikmunter merged commit 932efbc into gitfrosh:beta May 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant