marmelab / gaudi

Gaudi allows to share multi-component applications, based on Docker, Go, and YAML.
http://gaudi.io/
MIT License
563 stars 28 forks source link

panic: stat : no such file or directory #30

Closed gregwebs closed 10 years ago

gregwebs commented 10 years ago

.gaudi.yml

applications:
  mongodb:
    type: remote
    image: dockerfile/mongodb
    ports:
      27017: 27017
      27018: 27018
gregwebs commented 10 years ago

I cannot get gaudi to run :(

Full output:

Cleaning mongodb ...
Building dockerfile/mongodb ...
panic: 2014/03/11 20:42:39 stat : no such file or directory

goroutine 5 [running]:
github.com/marmelab/gaudi/docker.Build(0xc20007b220, 0x12, 0x0, 0x0)
    /home/gweber/lib/src/github.com/marmelab/gaudi/docker/docker.go:52 +0x158
github.com/marmelab/gaudi/container.(*Container).Build(0xc20008b000, 0xc200082b40)
    /home/gweber/lib/src/github.com/marmelab/gaudi/container/container.go:92 +0x266
github.com/marmelab/gaudi/container.(*Container).BuildOrPull(0xc20008b000, 0xc200082b40)
    /home/gweber/lib/src/github.com/marmelab/gaudi/container/container.go:78 +0x96
created by github.com/marmelab/gaudi/containerCollection.ContainerCollection.Build
    /home/gweber/lib/src/github.com/marmelab/gaudi/containerCollection/containerCollection.go:129 +0xa5

goroutine 1 [chan receive]:
github.com/marmelab/gaudi/containerCollection.waitForIt(0xc200082b40)
    /home/gweber/lib/src/github.com/marmelab/gaudi/containerCollection/containerCollection.go:138 +0x54
github.com/marmelab/gaudi/containerCollection.ContainerCollection.Build(0xc200066600)
    /home/gweber/lib/src/github.com/marmelab/gaudi/containerCollection/containerCollection.go:131 +0xd0
github.com/marmelab/gaudi/containerCollection.ContainerCollection.Start(0xc200066600)
    /home/gweber/lib/src/github.com/marmelab/gaudi/containerCollection/containerCollection.go:74 +0x52
github.com/marmelab/gaudi/gaudi.(*Gaudi).StartApplications(0xc2000794e0)
    /home/gweber/lib/src/github.com/marmelab/gaudi/gaudi/gaudi.go:70 +0x28
main.main()
    /home/gweber/lib/src/github.com/marmelab/gaudi/main.go:35 +0xbe
manuquentin commented 10 years ago

Thanks for the feedback. I'll take a look at this issue. Can you tell me on what linux distribution you are running gaudi ?

gregwebs commented 10 years ago

ubuntu 13.04

manuquentin commented 10 years ago

Ok I see, it's a undocumented feature that you try to use. The remote type should be used for GitHub hosted container.

To retrieve a container from the Docker index, you should use the prebuild type instead of remote.

This point out that these 2 types can be mixed up. I'll rename them github and index and update the doc.