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

NoMongo: Talawa App Not Starting Using Docker on develop-postgres Branch #2855

Closed
prayanshchh opened this issue Jan 14, 2025 · 6 comments
Closed
Assignees
Labels
bug Something isn't working feature request

Comments

@prayanshchh
Copy link
Contributor

prayanshchh commented Jan 14, 2025

Describe the bug
The Talawa app fails to start when using Docker Compose on the develop-postgres branch. The api container exits with an error due to a missing vitest command. The postgres-test and minio-test containers appear to start successfully, but the application cannot proceed due to the error in the API container.

To Reproduce
Steps to reproduce the behavior:

1 .Clone the Talawa repository and switch to the develop-postgres branch.
2. Run docker compose up to start the application.
3. Observe the logs.

Expected behavior
The application should start successfully, with all containers running and the API functional.

Actual behavior
The api container exits with the following error:

api-1            | sh: 1: vitest: not found
api-1            |  ELIFECYCLE  Command failed.
api-1 exited with code 1

Screenshots
image

Additional details
Add any other context or screenshots about the feature request here.

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship

@prayanshchh prayanshchh added the bug Something isn't working label Jan 14, 2025
@github-actions github-actions bot added feature request unapproved Unapproved for Pull Request labels Jan 14, 2025
@prayanshchh prayanshchh changed the title Talawa App Not Starting Using Docker on 'develop-postgres' Branch Talawa App Not Starting Using Docker on develop-postgres Branch Jan 14, 2025
@prayanshchh
Copy link
Contributor Author

assign

@palisadoes palisadoes removed the unapproved Unapproved for Pull Request label Jan 14, 2025
@palisadoes palisadoes changed the title Talawa App Not Starting Using Docker on develop-postgres Branch NoMongo: Talawa App Not Starting Using Docker on develop-postgres Branch Jan 14, 2025
@xoldd
Copy link
Contributor

xoldd commented Jan 14, 2025

@prayanshchh The development environment isn't meant to be booted up with docker compose up, it's meant to be booted up with vscode devcontainers. Follow the video: https://youtu.be/jz7koJIXqtk?feature=shared

@palisadoes
Copy link
Contributor

@xoldd

We cannot be dictating the IDE of persons contributing to the project. There must be also be a universal way for coders to participate

@prayanshchh
Copy link
Contributor Author

prayanshchh commented Jan 14, 2025

should this be closed as well?

as we aren't using docker for setup.

@palisadoes palisadoes closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in NoMongo: Talawa-API Jan 14, 2025
@xoldd
Copy link
Contributor

xoldd commented Jan 14, 2025

@xoldd

We cannot be dictating the IDE of persons contributing to the project. There must be also be a universal way for coders to participate

I think it is perfectly reasonable to do this as it will save a lot of time that is otherwise wasted on platform specific issues that contributers would have to deal with. The workflows are also harder to manage when the application is meant to run on a different platform than the development platform.

@xoldd
Copy link
Contributor

xoldd commented Jan 14, 2025

A less restrictive way would be for developers to work on their local platform and those changes being synced to the docker containers. There's this new docker compose watch feature for this. But again, this would require for developers to learn more about docker because they'd have to interface with the containers using docker specific commands. Or they'd have to exec into the docker container's shell which again is the same thing that devcontainer is doing.

Devcontainers are like a very lightweight virtual machine with less features than a virtual machine but ideal for most development specific use cases that aren't related to graphics programming in some way. Devcontainers can be made more universal using tools like devpod but vscode simply has the best integration for devcontainers which is mostly hassle free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature request
Projects
Status: Done
Development

No branches or pull requests

3 participants