This repository was archived by the owner on Feb 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
Field env_file in compose-file crashes cli #239
Copy link
Copy link
Open
Description
Only occurs when I set the env_file
field
version: '2'
services:
mongo:
image: mongo
expose:
- 27017
app:
image: node-app
fip: 123.123.123.123
depends_on:
- mongo
links:
- mongo
ports:
- 80:3000
env_file:
- secrets.env
environment:
NODE_ENV: production
$ hyper compose up --file=hyper-compose.yaml
panic: interface conversion: interface {} is map[interface {}]interface {}, not []interface {}
goroutine 1 [running]:
github.com/hyperhq/libcompose/config.readEnvFile(0x195aaa0, 0x19c8a18, 0x7fff5fbff560, 0x12, 0xc4202f1740, 0xc4202f1700, 0x0, 0x0)
/private/tmp/hyper-20171001-70598-1bvplja/vendor/src/github.com/hyperhq/libcompose/config/merge.go:84 +0xa54
github.com/hyperhq/libcompose/config.parseV2(0x195aaa0, 0x19c8a18, 0x1955ca0, 0xc4201f5c00, 0x7fff5fbff560, 0x12, 0xc4202f1740, 0xc4202f16e0, 0xc4202f1710, 0x0, ...)
/private/tmp/hyper-20171001-70598-1bvplja/vendor/src/github.com/hyperhq/libcompose/config/merge_v2.go:95 +0x81
github.com/hyperhq/libcompose/config.MergeServicesV2(0xc4201f5c40, 0x1955ca0, 0xc4201f5c00, 0x195aaa0, 0x19c8a18, 0x7fff5fbff560, 0x12, 0xc420332380, 0x127, 0x327, ...)
/private/tmp/hyper-20171001-70598-1bvplja/vendor/src/github.com/hyperhq/libcompose/config/merge_v2.go:36 +0x219
github.com/hyperhq/libcompose/config.Merge(0xc4201f5c40, 0x1955ca0, 0xc4201f5c00, 0x195aaa0, 0x19c8a18, 0x7fff5fbff560, 0x12, 0xc420332380, 0x127, 0x327, ...)
/private/tmp/hyper-20171001-70598-1bvplja/vendor/src/github.com/hyperhq/libcompose/config/merge.go:32 +0x323
github.com/hyperhq/libcompose/project.(*Project).load(0xc420271ea0, 0x7fff5fbff560, 0x12, 0xc420332380, 0x127, 0x327, 0x31, 0xc4201ab848)
/private/tmp/hyper-20171001-70598-1bvplja/vendor/src/github.com/hyperhq/libcompose/project/project.go:163 +0xb0
github.com/hyperhq/libcompose/project.(*Project).Parse(0xc420271ea0, 0xc420271c20, 0xc4201061c0)
/private/tmp/hyper-20171001-70598-1bvplja/vendor/src/github.com/hyperhq/libcompose/project/project.go:88 +0x16f
github.com/hyperhq/libcompose/docker.NewProject(0xc4201061c0, 0xc42032e290, 0x1, 0x1, 0x1)
/private/tmp/hyper-20171001-70598-1bvplja/vendor/src/github.com/hyperhq/libcompose/docker/project.go:55 +0xab
github.com/hyperhq/hypercli/api/client.(*DockerCli).CmdComposeUp(0xc420271c20, 0xc420010170, 0x1, 0x1, 0x0, 0x0)
/private/tmp/hyper-20171001-70598-1bvplja/src/github.com/hyperhq/hypercli/api/client/compose.go:142 +0x593
reflect.callMethod(0xc4202f1110, 0xc4201abd60)
/usr/local/Cellar/go/1.9/libexec/src/reflect/value.go:640 +0x17e
reflect.methodValueCall(0xc420010170, 0x1, 0x1, 0x3, 0xc4202f1110, 0x0, 0x0, 0x1663a9a, 0xc4202f0a80, 0xc4201abf70, ...)
/usr/local/Cellar/go/1.9/libexec/src/reflect/asm_amd64.s:29 +0x33
github.com/hyperhq/hypercli/cli.(*Cli).Run(0xc4202f0a50, 0xc420010150, 0x3, 0x3, 0x19568e0, 0xc42000e020)
/private/tmp/hyper-20171001-70598-1bvplja/src/github.com/hyperhq/hypercli/cli/cli.go:81 +0x296
main.main()
/private/tmp/hyper-20171001-70598-1bvplja/hyper/hyper.go:85 +0x41f
Metadata
Metadata
Assignees
Labels
No labels