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

docker-compose: command not found #42

Open
kief opened this issue Jun 21, 2024 · 2 comments
Open

docker-compose: command not found #42

kief opened this issue Jun 21, 2024 · 2 comments

Comments

@kief
Copy link

kief commented Jun 21, 2024

Hi folks!

kmorris@Kiefs-MacBook-Pro:~/src/spin/website-stack$ which docker-compose
/opt/homebrew/bin/docker-compose
kmorris@Kiefs-MacBook-Pro:~/src/spin/website-stack$ dojo
2024/06/21 15:56:41 [ 1]  INFO: (main.main) Dojo version 0.13.0
panic: Unexpected error: Command: docker-compose version --short
  Exit status: 127
  StdOut: <empty string>
  StdErr: bash: line 1: docker-compose: command not found


goroutine 1 [running]:
main.GetDockerComposeVersion({0x116a868?, 0xc0000c6080?})
	/dojo/work/src/dojo/docker_compose_driver.go:47 +0xf6
main.main()
	/dojo/work/src/dojo/main.go:92 +0x259

My Dojofile looks like:

DOJO_DOCKER_IMAGE="kiefm/spin-tools-dojo:latest"
DOJO_DRIVER="docker-compose"
DOJO_DOCKER_COMPOSE_FILE="docker-compose.yml"
@kief
Copy link
Author

kief commented Jun 22, 2024

Poking around in the dojo code, I see where the BashShellService is created and used, but it looks to me like it sets the environment for the shell to an empty string array. I assume it would pick the environment (including PATH) from the parent shell, but I don't know enough about golang to work it out.

@xmik
Copy link
Member

xmik commented Dec 29, 2024

Hi there Kief!

There is a new Dojo version 0.13.3. It would be great if you could please check if the above error still persists with that new Dojo version.

Also, I added a log message that prints the info about the environment variables (to check your theory from the above comment). To see that log output, please add the followiing at the end of your dojo command: --log-level=debug and look for a message that starts with: Local enviroment variables. Hopefully, it's not an intermitent error!

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

No branches or pull requests

2 participants