summaryrefslogtreecommitdiff
path: root/integration-cli/docker_test_vars.go
diff options
context:
space:
mode:
Diffstat (limited to 'integration-cli/docker_test_vars.go')
-rw-r--r--integration-cli/docker_test_vars.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/integration-cli/docker_test_vars.go b/integration-cli/docker_test_vars.go
new file mode 100644
index 0000000000..f8bd5c116b
--- /dev/null
+++ b/integration-cli/docker_test_vars.go
@@ -0,0 +1,29 @@
+package main
+
+import (
+ "os"
+)
+
+// the docker binary to use
+var dockerBinary = "docker"
+
+// the private registry image to use for tests involving the registry
+var registryImageName = "registry"
+
+// the private registry to use for tests
+var privateRegistryURL = "127.0.0.1:5000"
+
+var workingDirectory string
+
+func init() {
+ if dockerBin := os.Getenv("DOCKER_BINARY"); dockerBin != "" {
+ dockerBinary = dockerBin
+ }
+ if registryImage := os.Getenv("REGISTRY_IMAGE"); registryImage != "" {
+ registryImageName = registryImage
+ }
+ if registry := os.Getenv("REGISTRY_URL"); registry != "" {
+ privateRegistryURL = registry
+ }
+ workingDirectory, _ = os.Getwd()
+}