Skip to content

Commit

Permalink
- add docker commands to gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
spolnik committed Apr 20, 2018
1 parent fc33da0 commit a4b73fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}

0 comments on commit a4b73fa

Please sign in to comment.