blob: aa37a17e7d553f235d8cf1e0ad4bde1f2b64d20c [file] [log] [blame]
Zsolt Haraszti2a792f62016-05-12 17:49:02 -07001/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
David K. Bainbridge59bdb542016-07-01 11:07:45 -070016import org.opencord.gradle.rules.*
David K. Bainbridge10b0c112016-05-24 13:17:23 -070017import org.yaml.snakeyaml.Yaml
Zsolt Haraszti2a792f62016-05-12 17:49:02 -070018
David K. Bainbridge59bdb542016-07-01 11:07:45 -070019allprojects {
20 apply plugin: 'base'
21 apply plugin: 'de.gesellix.docker'
22 //apply plugin: 'com.tmiyamon.config'
23
24 docker {
25 // dockerHost = System.env.DOCKER_HOST ?: 'unix:///var/run/docker.sock'
26 // dockerHost = System.env.DOCKER_HOST ?: 'https://192.168.99.100:2376'
27 // certPath = System.getProperty('docker.cert.path') ?: "${System.getProperty('user.home')}/.docker/machine/machines/default"
28 // authConfigPlain = [
29 // "username" : "joe",
30 // "password" : "some-pw-as-needed",
31 // "email" : "joe@acme.com",
32 // "serveraddress" : "https://index.docker.io/v1/"
33 // ]
34 }
35}
36
Zsolt Haraszti2a792f62016-05-12 17:49:02 -070037ext {
38
David K. Bainbridge59bdb542016-07-01 11:07:45 -070039 // Upstream registry to simplify filling out the comps table below
40 upstreamReg = project.hasProperty('upstreamReg') ? project.getProperty('upstreamReg') : 'docker.io'
41
Zsolt Haraszti2a792f62016-05-12 17:49:02 -070042 // Target registry to be used to publish docker images needed for deployment
43 targetReg = project.hasProperty('targetReg') ? project.getProperty('targetReg') : 'localhost:5000'
44
45 // The tag used to tag the docker images push to the target registry
46 targetTag = project.hasProperty('targetTag') ? project.getProperty('targetTag') : 'candidate'
47
David K. Bainbridge10b0c112016-05-24 13:17:23 -070048 // Deployment target config file (yaml format); this can be overwritten from the command line
49 // using the -PdeployConfig=<file-path> syntax.
50 deployConfig = project.hasProperty('deployConfig') ? project.getProperty('deployConfig') : './config/default.yml'
David K. Bainbridge19b8d272016-05-26 21:20:43 -070051
David K. Bainbridge59bdb542016-07-01 11:07:45 -070052 comps = [
53 'consul': [
54 'type': 'image',
55 'upstream': upstreamReg,
56 'name': 'consul',
57 'digest': 'sha256:0dc990ff3c44d5b5395475bcc5ebdae4fc8b67f69e17942a8b9793b3df74d290'
58 ]
59 ]
60}
61
62task fetchUpstreamImages {
63 comps.each { name, spec -> if (spec.type == 'image') { dependsOn "fetch" + name } }
Zsolt Haraszti2a792f62016-05-12 17:49:02 -070064}
65
David K. Bainbridge97ee8052016-06-14 00:52:07 -070066// Switch Configuration Image
67
68task buildSwitchqImage(type: Exec) {
David K. Bainbridgea677d4e2016-09-11 20:01:32 -070069 commandLine "docker", 'build', '-t', 'cord-maas-switchq', './switchq'
David K. Bainbridge97ee8052016-06-14 00:52:07 -070070}
71
72task tagSwitchqImage(type: Exec) {
73 dependsOn buildSwitchqImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -070074 commandLine "docker", 'tag', 'cord-maas-switchq', "$targetReg/cord-maas-switchq:$targetTag"
David K. Bainbridge97ee8052016-06-14 00:52:07 -070075}
76
77task publishSwitchqImage(type: Exec) {
78 dependsOn tagSwitchqImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -070079 commandLine "docker", 'push', "$targetReg/cord-maas-switchq:$targetTag"
David K. Bainbridge97ee8052016-06-14 00:52:07 -070080}
81
82// Bootstrap Image
83
David K. Bainbridgeb5415042016-05-13 17:06:10 -070084task buildBootstrapImage(type: Exec) {
David K. Bainbridgea677d4e2016-09-11 20:01:32 -070085 commandLine "docker", 'build', '-t', 'cord-maas-bootstrap', './bootstrap'
Zsolt Haraszti2a792f62016-05-12 17:49:02 -070086}
87
David K. Bainbridgeb5415042016-05-13 17:06:10 -070088task tagBootstrapImage(type: Exec) {
89 dependsOn buildBootstrapImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -070090 commandLine "docker", 'tag', 'cord-maas-bootstrap', "$targetReg/cord-maas-bootstrap:$targetTag"
Zsolt Haraszti2a792f62016-05-12 17:49:02 -070091}
92
David K. Bainbridgeb5415042016-05-13 17:06:10 -070093task publishBootstrapImage(type: Exec) {
94 dependsOn tagBootstrapImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -070095 commandLine "docker", 'push', "$targetReg/cord-maas-bootstrap:$targetTag"
Zsolt Haraszti2a792f62016-05-12 17:49:02 -070096}
97
David K. Bainbridge97ee8052016-06-14 00:52:07 -070098// IP Allocator Image
99
David K. Bainbridge8bc905c2016-05-31 14:07:10 -0700100task buildAllocationImage(type: Exec) {
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700101 commandLine "docker", 'build', '-t', 'cord-ip-allocator', './ip-allocator'
David K. Bainbridge8bc905c2016-05-31 14:07:10 -0700102}
103
104task tagAllocationImage(type: Exec) {
David K. Bainbridgef22dc062016-05-31 15:35:39 -0700105 dependsOn buildAllocationImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700106 commandLine "docker", 'tag', 'cord-ip-allocator', "$targetReg/cord-ip-allocator:$targetTag"
David K. Bainbridge8bc905c2016-05-31 14:07:10 -0700107}
108
109task publishAllocationImage(type: Exec) {
David K. Bainbridgef22dc062016-05-31 15:35:39 -0700110 dependsOn tagAllocationImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700111 commandLine "docker", 'push', "$targetReg/cord-ip-allocator:$targetTag"
David K. Bainbridge8bc905c2016-05-31 14:07:10 -0700112}
113
David K. Bainbridge97ee8052016-06-14 00:52:07 -0700114// Provisioner Image
115
David K. Bainbridgef0da8732016-06-01 16:15:37 -0700116task buildProvisionerImage(type: Exec) {
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700117 commandLine "docker", 'build', '-t', 'cord-provisioner', './provisioner'
David K. Bainbridgef0da8732016-06-01 16:15:37 -0700118}
119
120task tagProvisionerImage(type: Exec) {
121 dependsOn buildProvisionerImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700122 commandLine "docker", 'tag', 'cord-provisioner', "$targetReg/cord-provisioner:$targetTag"
David K. Bainbridgef0da8732016-06-01 16:15:37 -0700123}
124
125task publishProvisionerImage(type: Exec) {
126 dependsOn tagProvisionerImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700127 commandLine "docker", 'push', "$targetReg/cord-provisioner:$targetTag"
David K. Bainbridgef0da8732016-06-01 16:15:37 -0700128}
129
gunjan5e9bdd1d2016-07-13 14:59:33 -0700130// Config Generator Image
131
132task buildConfigGeneratorImage(type: Exec) {
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700133 commandLine "docker", 'build', '-t', 'config-generator', './config-generator'
gunjan5e9bdd1d2016-07-13 14:59:33 -0700134}
135
136task tagConfigGeneratorImage(type: Exec) {
137 dependsOn buildConfigGeneratorImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700138 commandLine "docker", 'tag', 'config-generator', "$targetReg/config-generator:$targetTag"
gunjan5e9bdd1d2016-07-13 14:59:33 -0700139}
140
141task publishConfigGeneratorImage(type: Exec) {
142 dependsOn tagConfigGeneratorImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700143 commandLine "docker", 'push', "$targetReg/config-generator:$targetTag"
gunjan5e9bdd1d2016-07-13 14:59:33 -0700144}
145
David K. Bainbridge9d1e02d2016-06-22 09:22:16 -0700146// Automation Image
David K. Bainbridge97ee8052016-06-14 00:52:07 -0700147
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700148task buildAutomationImage(type: Exec) {
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700149 commandLine "docker", 'build', '-t', "cord-maas-automation", "-f", "./automation/Dockerfile", "./automation"
David K. Bainbridgeefa951d2016-05-26 10:54:25 -0700150}
151
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700152task tagAutomationImage(type: Exec) {
153 dependsOn buildAutomationImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700154 commandLine "docker", 'tag', 'cord-maas-automation', "$targetReg/cord-maas-automation:$targetTag"
Zsolt Haraszti2a792f62016-05-12 17:49:02 -0700155}
156
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700157task publishAutomationImage(type: Exec) {
158 dependsOn tagAutomationImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700159 commandLine "docker", 'push', "$targetReg/cord-maas-automation:$targetTag"
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700160}
161
David K. Bainbridge97ee8052016-06-14 00:52:07 -0700162// DHCP Harvester Images
163
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700164task buildHarvesterImage(type: Exec) {
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700165 commandLine "docker", 'build', '-t', "cord-dhcp-harvester", "./harvester"
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700166}
167
168task tagHarvesterImage(type: Exec) {
169 dependsOn buildHarvesterImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700170 commandLine "docker", 'tag', 'cord-dhcp-harvester', "$targetReg/cord-dhcp-harvester:$targetTag"
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700171}
172
173task publishHarvesterImage(type: Exec) {
174 dependsOn tagHarvesterImage
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700175 commandLine "docker", 'push', "$targetReg/cord-dhcp-harvester:$targetTag"
Zsolt Haraszti2a792f62016-05-12 17:49:02 -0700176}
177
178// ~~~~~~~~~~~~~~~~~~~ Global tasks ~~~~~~~~~~~~~~~~~~~~~~~
179
alshabib462f6252016-08-29 16:15:28 -0700180task updateDocker (type: Exec) {
David K. Bainbridge59bdb542016-07-01 11:07:45 -0700181 commandLine 'sudo', 'utils/enable-remote-docker-registry', "$targetReg"
182}
183
Zsolt Haraszti2a792f62016-05-12 17:49:02 -0700184// To be used to fetch upstream binaries, clone repos, etc.
185task fetch(type: Exec) {
186 // this is where we fetch upstream artifacts that we do not need internet for the build phase"
187 // Placeholdr example:
David K. Bainbridge59bdb542016-07-01 11:07:45 -0700188 dependsOn fetchUpstreamImages
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700189 commandLine "docker", "pull", "golang:alpine"
190 commandLine "docker", "pull", "python:2.7-alpine"
Zsolt Haraszti2a792f62016-05-12 17:49:02 -0700191}
192
193// To be used to generate all needed binaries that need to be present on the target
194// as docker images in the local docker runner.
195task buildImages {
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700196 dependsOn buildBootstrapImage
197 dependsOn buildHarvesterImage
David K. Bainbridge9d1e02d2016-06-22 09:22:16 -0700198 dependsOn buildAutomationImage
David K. Bainbridge8bc905c2016-05-31 14:07:10 -0700199 dependsOn buildAllocationImage
David K. Bainbridgef0da8732016-06-01 16:15:37 -0700200 dependsOn buildProvisionerImage
gunjan5e9bdd1d2016-07-13 14:59:33 -0700201 dependsOn buildConfigGeneratorImage
David K. Bainbridge97ee8052016-06-14 00:52:07 -0700202 dependsOn buildSwitchqImage
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700203}
204
205task tagImages {
206 dependsOn tagBootstrapImage
207 dependsOn tagHarvesterImage
David K. Bainbridge9d1e02d2016-06-22 09:22:16 -0700208 dependsOn tagAutomationImage
David K. Bainbridge8bc905c2016-05-31 14:07:10 -0700209 dependsOn tagAllocationImage
David K. Bainbridgef0da8732016-06-01 16:15:37 -0700210 dependsOn tagProvisionerImage
gunjan5e9bdd1d2016-07-13 14:59:33 -0700211 dependsOn tagConfigGeneratorImage
David K. Bainbridge97ee8052016-06-14 00:52:07 -0700212 dependsOn tagSwitchqImage
Zsolt Haraszti2a792f62016-05-12 17:49:02 -0700213}
214
215task publish {
alshabib462f6252016-08-29 16:15:28 -0700216 //FIXME: This works because the upstream project primes the nodes before running this.
David K. Bainbridge59bdb542016-07-01 11:07:45 -0700217 comps.each { name, spec -> if (spec.type == 'image') { dependsOn "publish" + name } }
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700218 dependsOn publishBootstrapImage
219 dependsOn publishHarvesterImage
David K. Bainbridge9d1e02d2016-06-22 09:22:16 -0700220 dependsOn publishAutomationImage
David K. Bainbridge8bc905c2016-05-31 14:07:10 -0700221 dependsOn publishAllocationImage
David K. Bainbridgef0da8732016-06-01 16:15:37 -0700222 dependsOn publishProvisionerImage
gunjan5e9bdd1d2016-07-13 14:59:33 -0700223 dependsOn publishConfigGeneratorImage
David K. Bainbridge97ee8052016-06-14 00:52:07 -0700224 dependsOn publishSwitchqImage
David K. Bainbridgeefa951d2016-05-26 10:54:25 -0700225}
226
David K. Bainbridge59bdb542016-07-01 11:07:45 -0700227
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700228// ~~~~~~~~~~~~~~~~~~~ Deployment / Test Tasks ~~~~~~~~~~~~~~~~~~~~~~~
229
David K. Bainbridge10b0c112016-05-24 13:17:23 -0700230List.metaClass.asParam = { prefix, sep ->
231 if (delegate.size() == 0) {
232 ""
233 }
234 String result = "--" + prefix + "="
235 String p = ""
236 delegate.each {
237 result += p + "${it}"
238 p = sep
239 }
240 result
David K. Bainbridgeb5415042016-05-13 17:06:10 -0700241}
242
David K. Bainbridge10b0c112016-05-24 13:17:23 -0700243List.metaClass.p = { value, name ->
244 if (value != null && value != "") {
245 delegate << name + "=" + value
246 } else {
247 delegate
248 }
249}
250
251List.metaClass.p = { spec ->
252 if (spec != null && spec != "") {
253 delegate += spec
254 } else {
255 delegate
256 }
257}
258
alshabib462f6252016-08-29 16:15:28 -0700259task prime (type: Exec) {
David K. Bainbridgef4181702016-06-17 14:44:03 -0700260 println "Using deployment config: $deployConfig"
261 File configFile = new File(deployConfig)
262 def yaml = new Yaml()
263 def config = yaml.load(configFile.newReader())
264
265 executable = "ansible-playbook"
266 args = ["-i", config.seedServer.ip + ',']
267
268 if ( config.seedServer.user != null && config.seedServer.user != "" ) {
269 args = args << "--user=$config.seedServer.user"
270 }
271
David K. Bainbridge5ba01a92016-08-16 14:58:31 -0700272 if ( config.debug ) {
273 args = args << "-vvvv"
274 }
275
David K. Bainbridgef4181702016-06-17 14:44:03 -0700276 def extraVars = []
277 if (config.seedServer) {
278 extraVars = extraVars.p(config.seedServer.extraVars)
279 .p(config.seedServer.password, "ansible_ssh_pass")
280 .p(config.seedServer.sudoPassword, "ansible_sudo_pass")
281 .p(config.seedServer.fabric_ip, "fabric_ip")
282 .p(config.seedServer.management_ip, "management_ip")
David K. Bainbridgee80fd392016-08-19 15:46:19 -0700283 .p(config.seedServer.management_gw, "management_gw")
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700284 .p(config.seedServer.management_bc, "management_bc")
David K. Bainbridgef4181702016-06-17 14:44:03 -0700285 .p(config.seedServer.management_network, "management_network")
286 .p(config.seedServer.management_iface, "management_iface")
287 .p(config.seedServer.external_ip, "external_ip")
David K. Bainbridgee80fd392016-08-19 15:46:19 -0700288 .p(config.seedServer.external_gw, "external_gw")
David K. Bainbridgea677d4e2016-09-11 20:01:32 -0700289 .p(config.seedServer.external_bc, "external_bc")
David K. Bainbridgef4181702016-06-17 14:44:03 -0700290 .p(config.seedServer.external_network, "external_network")
291 .p(config.seedServer.external_iface, "external_iface")
292 .p(config.seedServer.fabric_ip, "fabric_ip")
293 .p(config.seedServer.fabric_network, "fabric_network")
294 .p(config.seedServer.fabric_iface, "fabric_iface")
David K. Bainbridgede51ce52016-08-22 13:54:24 -0700295 .p(config.seedServer.fabric_iface_spec, "fabric_iface_spec")
David K. Bainbridgef4181702016-06-17 14:44:03 -0700296 .p(config.seedServer.domain, "domain")
David K. Bainbridgebe58a0d2016-06-22 15:43:02 -0700297 .p(config.seedServer.virtualbox_support, "virtualbox_support")
298 .p(config.seedServer.power_helper_user, "power_helper_user")
299 .p(config.seedServer.power_helper_host, "power_helper_host")
300 .p(config.seedServer.port, "ansible_ssh_port")
David K. Bainbridgef4181702016-06-17 14:44:03 -0700301 }
302
303 if (config.otherServers) {
304 extraVars = extraVars.p(config.otherServers.location, "prov_location")
305 .p(config.otherServers.rolesPath, "prov_role_path")
306 .p(config.otherServers.role, "prov_role")
307 }
308
309 if (config.docker) {
310 extraVars = extraVars.p(config.docker.registry, "docker_registry")
311 .p(config.docker.imageVersion, "docker_image_version")
312 }
313
314 def skipTags = [].p(config.seedServer.skipTags)
315
316 args = args.p(skipTags.asParam("skip-tags", ",")).p(extraVars.asParam("extra-vars", " ")) << "prime-node.yml"
317}
318
alshabib462f6252016-08-29 16:15:28 -0700319task deployBase(type: Exec) {
David K. Bainbridge10b0c112016-05-24 13:17:23 -0700320 println "Using deployment config: $deployConfig"
321 File configFile = new File(deployConfig)
322 def yaml = new Yaml()
323 def config = yaml.load(configFile.newReader())
324
325 executable = "ansible-playbook"
David K. Bainbridge13c765c2016-05-26 11:24:22 -0700326 args = ["-i", config.seedServer.ip + ',']
David K. Bainbridge10b0c112016-05-24 13:17:23 -0700327
David K. Bainbridge13c765c2016-05-26 11:24:22 -0700328 if ( config.seedServer.user != null && config.seedServer.user != "" ) {
329 args = args << "--user=$config.seedServer.user"
David K. Bainbridge10b0c112016-05-24 13:17:23 -0700330 }
331
David K. Bainbridge5ba01a92016-08-16 14:58:31 -0700332
333 if ( config.debug ) {
334 args = args << "-vvvv"
335 }
336
David K. Bainbridge10b0c112016-05-24 13:17:23 -0700337 def extraVars = []
David K. Bainbridge13c765c2016-05-26 11:24:22 -0700338 if (config.seedServer) {
339 extraVars = extraVars.p(config.seedServer.extraVars)
340 .p(config.seedServer.password, "ansible_ssh_pass")
341 .p(config.seedServer.sudoPassword, "ansible_sudo_pass")
342 .p(config.seedServer.fabric_ip, "fabric_ip")
343 .p(config.seedServer.management_ip, "management_ip")
David K. Bainbridgee80fd392016-08-19 15:46:19 -0700344 .p(config.seedServer.management_gw, "management_gw")
David K. Bainbridgec82a4462016-06-14 12:39:01 -0700345 .p(config.seedServer.management_network, "management_network")
346 .p(config.seedServer.management_iface, "management_iface")
David K. Bainbridge13c765c2016-05-26 11:24:22 -0700347 .p(config.seedServer.external_ip, "external_ip")
David K. Bainbridgee80fd392016-08-19 15:46:19 -0700348 .p(config.seedServer.external_gw, "external_gw")
David K. Bainbridgec82a4462016-06-14 12:39:01 -0700349 .p(config.seedServer.external_network, "external_network")
350 .p(config.seedServer.external_iface, "external_iface")
351 .p(config.seedServer.fabric_ip, "fabric_ip")
352 .p(config.seedServer.fabric_network, "fabric_network")
353 .p(config.seedServer.fabric_iface, "fabric_iface")
David K. Bainbridgede51ce52016-08-22 13:54:24 -0700354 .p(config.seedServer.fabric_iface_spec, "fabric_iface_spec")
David K. Bainbridgec82a4462016-06-14 12:39:01 -0700355 .p(config.seedServer.domain, "domain")
David K. Bainbridgebe58a0d2016-06-22 15:43:02 -0700356 .p(config.seedServer.virtualbox_support, "virtualbox_support")
David K. Bainbridgec82a4462016-06-14 12:39:01 -0700357 .p(config.seedServer.power_helper_user, "power_helper_user")
358 .p(config.seedServer.power_helper_host, "power_helper_host")
David K. Bainbridgebe58a0d2016-06-22 15:43:02 -0700359 .p(config.seedServer.port, "ansible_ssh_port")
David K. Bainbridge6ea57c12016-06-06 23:29:12 -0700360 }
361
David K. Bainbridge10b0c112016-05-24 13:17:23 -0700362 if (config.otherServers) {
363 extraVars = extraVars.p(config.otherServers.location, "prov_location")
364 .p(config.otherServers.rolesPath, "prov_role_path")
365 .p(config.otherServers.role, "prov_role")
366 }
367
David K. Bainbridge97ee8052016-06-14 00:52:07 -0700368 if (config.docker) {
369 extraVars = extraVars.p(config.docker.registry, "docker_registry")
370 .p(config.docker.imageVersion, "docker_image_version")
371 }
372
David K. Bainbridge13c765c2016-05-26 11:24:22 -0700373 def skipTags = [].p(config.seedServer.skipTags)
David K. Bainbridge10b0c112016-05-24 13:17:23 -0700374
375 args = args.p(skipTags.asParam("skip-tags", ",")).p(extraVars.asParam("extra-vars", " ")) << "head-node.yml"
David K. Bainbridge10b0c112016-05-24 13:17:23 -0700376}
alshabib462f6252016-08-29 16:15:28 -0700377
378prime.dependsOn {
379 updateDocker
380}
381
382tasks.addRule(new DockerFetchRule(project))
383tasks.addRule(new DockerPublishRule(project, project(':maas').prime))
384tasks.addRule(new DockerTagRule(project))
385
386