fixed default env setup

This commit is contained in:
Brad Rydzewski 2015-09-04 00:41:48 -07:00
parent d29a26fa53
commit 6b9c6a1b94
2 changed files with 2 additions and 3 deletions

View File

@ -5,5 +5,5 @@
FROM rancher/docker
ADD drone-docker /go/bin/
VOLUME /var/lib/docker
ENTRYPOINT ["/go/bin/drone-docker"]

View File

@ -64,7 +64,6 @@ func main() {
cmd := exec.Command("/usr/bin/dockerlaunch", args...)
if os.Getenv("DOCKER_LAUNCH_DEBUG") == "true" {
cmd.Env = os.Environ()
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
} else {
@ -77,7 +76,7 @@ func main() {
}()
// Sleep for a few seconds
time.Sleep(35 * time.Second)
time.Sleep(5 * time.Second)
// Set the Registry value
if len(vargs.Registry) == 0 {