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

Panic: runtime error with docker-compose #31

Closed
rosienhs opened this issue Jan 25, 2022 · 1 comment
Closed

Panic: runtime error with docker-compose #31

rosienhs opened this issue Jan 25, 2022 · 1 comment

Comments

@rosienhs
Copy link

Hi, I'm on Mac using Colima and docker-compose binary instead of docker desktop. When running Dojo I get the following panic runtime error:

2022/01/25 11:28:09 [ 1]  INFO: (main.main) Dojo version 0.6.3
2022/01/25 11:28:09 [33]  INFO: (main.DockerComposeDriver.HandleRun) docker-compose run command will be:
 docker-compose -f docker-compose.yaml -f docker-compose.yaml.dojo -p dojo-prm-repo-suspension-service-2022-01-25_11-28-09-72983966 run --rm default "./tasks _test_integration"
panic: runtime error: slice bounds out of range

goroutine 49 [running]:
main.DockerComposeDriver.getDCContainersNames(0x11329a0, 0xc0000ee060, 0x1133360, 0xc000052180, 0xc000052180, 0xc000102180, 0x110d2a5, 0x3, 0x7ffeefbff9e0, 0xe, ...)
        /dojo/work/src/dojo/docker_compose_driver.go:546 +0x801
main.DockerComposeDriver.waitForContainersToBeRunning(0x11329a0, 0xc0000ee060, 0x1133360, 0xc000052180, 0xc000052180, 0xc000102180, 0x110d2a5, 0x3, 0x7ffeefbff9e0, 0xe, ...)
        /dojo/work/src/dojo/docker_compose_driver.go:236 +0x170
main.DockerComposeDriver.watchContainers(0x11329a0, 0xc0000ee060, 0x1133360, 0xc000052180, 0xc000052180, 0xc000102180, 0x110d2a5, 0x3, 0x7ffeefbff9e0, 0xe, ...)
        /dojo/work/src/dojo/docker_compose_driver.go:269 +0x1d6
created by main.DockerComposeDriver.HandleRun
        /dojo/work/src/dojo/docker_compose_driver.go:344 +0x63f
xmik pushed a commit that referenced this issue Feb 13, 2022
than if running Docker on Linux or using Docker Desktop on Mac
tomzo added a commit that referenced this issue Feb 13, 2022
Fix issue #31 - when using Colima docker-compose ps output is different
@xmik
Copy link
Member

xmik commented Feb 20, 2022

Hi @rosienhs,

Thanks for catching this! We want Dojo to support running on Mac using Colima. Please try Dojo 0.10.5 - this issue should be fixed there :) Please reopen this issue if there are still problems

Details

Reproduction

The issue can be reproduced using Dojo 0.10.3 by running

dojo --driver=docker-compose --dcf=./test/test-files/itest-dc.yaml --debug=true --test=true --image=alpine:3.8 whoami

on Mac, using Colima.

Fix

The fix was done in this commit: 26dbb44 and released as Dojo 0.10.4 (so it should be fixed for versions 0.10.4 onwards).

@xmik xmik closed this as completed Feb 20, 2022
@xmik xmik mentioned this issue Feb 20, 2022
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