From a4b73fa96ebc085ebb2692919cc394961945af0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20Sp=C3=B3lnik?= Date: Fri, 20 Apr 2018 16:47:36 +0200 Subject: [PATCH] - add docker commands to gradle build --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index a92f734..e2b048e 100644 --- a/build.gradle +++ b/build.gradle @@ -55,9 +55,9 @@ task releaseZip(type: Zip, dependsOn: 'bootRepackage') { } task buildDockerImage(type: Exec, dependsOn: 'bootRepackage') { - commandLine 'docker', 'build', '-t', 'spolnik/jalgoarena-eureka:latest', '-t', "spolnik/jalgoarena-eureka:${version}", '.' + commandLine 'docker', 'build', '-t', "spolnik/${rootProject.name}:latest", '-t', "spolnik/${rootProject.name}:${version}", '.' } task runAsContainer(type: Exec, dependsOn: 'buildDockerImage') { - commandLine 'docker', 'container', 'run', '-d', '-p', '5000:5000', 'spolnik/jalgoarena-eureka:latest' + commandLine 'docker', 'container', 'run', '-d', '-p', '5000:5000', "spolnik/${rootProject.name}:${version}" } \ No newline at end of file