fixed default env setup
This commit is contained in:
parent
d29a26fa53
commit
6b9c6a1b94
@ -5,5 +5,5 @@
|
||||
FROM rancher/docker
|
||||
|
||||
ADD drone-docker /go/bin/
|
||||
|
||||
VOLUME /var/lib/docker
|
||||
ENTRYPOINT ["/go/bin/drone-docker"]
|
||||
|
3
main.go
3
main.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user