Skip to content

Instantly share code, notes, and snippets.

View jefferai's full-sized avatar

Jeff Mitchell jefferai

View GitHub Profile
#hostname = "example3-host"
#dns = ["1.2.3.4"]
resource "docker_container" "example" {
name = "example3"
image = "ubuntu:14.04"
domainname = "testing.local"
publish_all_ports = true
}
2015/02/04 17:36:33 terraform-provider-docker: 2015/02/04 17:36:33 Plugin address: unix /tmp/tf-plugin485594628
2015/02/04 17:36:33 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/04 17:36:33 [DEBUG] Creating graph for path: [root]
2015/02/04 17:36:33 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/04 17:36:33 [INFO] Validating provider: docker
2015/02/04 17:36:33 [DEBUG] docker_container.example: expanding to count = 1
2015/02/04 17:36:33 [INFO] Validating resource: docker_container.example
2015/02/04 17:36:33 [DEBUG] Creating graph for path: [root]
2015/02/04 17:36:33 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/04 17:36:33 [INFO] Configuring provider: docker
~/gocode/src/github.com/hashicorp/consul$ make test
--> Installing build dependencies
./scripts/verify_no_uuid.sh
go list ./... | xargs -n1 go test
ok github.com/hashicorp/consul 0.003s
ok github.com/hashicorp/consul/acl 0.004s
2015/01/07 20:11:55 [DEBUG] http: Request /v1/agent/self (306.432us)
2015/01/07 20:11:55 [DEBUG] http: Request /v1/event/fire/cmd (1.239072ms)
2015/01/07 20:11:55 [DEBUG] http: Shutting down http server(127.0.0.1:10411)
2015/01/07 20:11:55 [ERR] http: Request /v1/catalog/nodes, error: No cluster leader
@jefferai
jefferai / gist:e89578f795bf5737f65f
Created January 7, 2015 18:54
Consul "go test" fail
~/gocode/src/github.com/hashicorp/consul$ go get -u github.com/hashicorp/consul
~/gocode/src/github.com/hashicorp/consul$ go install github.com/hashicorp/consul
~/gocode/src/github.com/hashicorp/consul$ cd consul
~/gocode/src/github.com/hashicorp/consul/consul$ go test
2015/01/07 18:53:31 [INFO] serf: EventMemberJoin: Node 15000 127.0.0.1
2015/01/07 18:53:31 [INFO] raft: Node at 127.0.0.1:15001 [Follower] entering Follower state
2015/01/07 18:53:31 [INFO] serf: EventMemberJoin: Node 15000.dc1 127.0.0.1
2015/01/07 18:53:31 [INFO] consul: adding server Node 15000 (Addr: 127.0.0.1:15001) (DC: dc1)
2015/01/07 18:53:31 [INFO] consul: adding server Node 15000.dc1 (Addr: 127.0.0.1:15001) (DC: dc1)
2015/01/07 18:53:31 [WARN] raft: Heartbeat timeout reached, starting election