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

Bug Report: npm run setup command encountering an issue when starting Docker Containers on Linux #2767

Closed
Aad1tya27 opened this issue Dec 17, 2024 · 2 comments
Assignees
Labels
bug Something isn't working unapproved Unapproved for Pull Request

Comments

@Aad1tya27
Copy link

Describe the bug
When running npm run setup, and choosing to start the docker containers, we encounter an error because of the outdated version of docker compose being used in setup.ts .

To Reproduce
Steps to reproduce the behavior:

  1. Run npm run setup in the root folder of the talawa-api.
  2. Select all default options, and answer "Are you setting up this project using Docker?" with Y.
  3. Answer "Do you want to start the Docker containers now?" with Y

Expected behavior
Docker containers should have started and docker build file should have run in detached mode.

Actual behavior
Error: spawn docker-compose ENOENT
Error running docker-compose: Error: spawn docker-compose ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn docker-compose',
path: 'docker-compose',
spawnargs: [ '-f', 'docker-compose.dev.yaml', 'up', '--build', '-d' ]
}
Some error occurred: Error: spawn docker-compose ENOENT

Screenshots
image

Additional details
In the setup.ts file, the spawn function takes "docker-compose" as the command for Linux Users. Now this function is deprecated and by default on Docker Desktop or Compose installation, Docker Compose V2 is installed.
image

Potential internship candidates

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

@Aad1tya27 Aad1tya27 added the bug Something isn't working label Dec 17, 2024
@Aad1tya27
Copy link
Author

Can I work on this issue?

@github-actions github-actions bot added the unapproved Unapproved for Pull Request label Dec 17, 2024
Copy link

Congratulations on making your first Issue! 🎊 If you haven't already, check out our Contributing Guidelines and Issue Reporting Guidelines to ensure that you are following our guidelines for contributing and making issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unapproved Unapproved for Pull Request
Projects
None yet
Development

No branches or pull requests

2 participants