moving tasks up
diff --git a/build.gradle b/build.gradle
index 19234dc..6259114 100644
--- a/build.gradle
+++ b/build.gradle
@@ -89,6 +89,29 @@
}
+// ------------- PlaceHolders ----------------
+
+task updateDocker (type: Exec) {
+ commandLine 'sudo', 'utils/enable-remote-docker-registry', "$targetReg"
+}
+
+task prime {
+ // TODO this is a place-holder.
+ dependsOn updateDocker
+ doFirst {
+ println "Using deployment config: $deployConfig"
+ File configFile = new File(deployConfig)
+ def yaml = new Yaml()
+ def config = yaml.load(configFile.newReader())
+ println "Config: $config"
+ println "Access some data in config:\n\tSeed server IP=${config.seedServer.ip}"
+ }
+}
+
+task buildImages
+
+// ---------------- Useful tasks ----------------
+
task fetchUpstreamImages {
comps.each { name, spec -> if (spec.type == 'image') { dependsOn "fetch" + name } }
}
@@ -135,23 +158,3 @@
dependsOn deploy
}
-// ------------- PlaceHolders ----------------
-
-task updateDocker (type: Exec) {
- commandLine 'sudo', 'utils/enable-remote-docker-registry', "$targetReg"
-}
-
-task prime {
- // TODO this is a place-holder.
- dependsOn updateDocker
- doFirst {
- println "Using deployment config: $deployConfig"
- File configFile = new File(deployConfig)
- def yaml = new Yaml()
- def config = yaml.load(configFile.newReader())
- println "Config: $config"
- println "Access some data in config:\n\tSeed server IP=${config.seedServer.ip}"
- }
-}
-
-task buildImages