File tree 7 files changed +23
-69
lines changed
7 files changed +23
-69
lines changed Original file line number Diff line number Diff line change 28
28
29
29
\. settings /
30
30
31
- build /docker /artifacts /
32
31
.idea /
33
32
out /
34
33
* .iml
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -34,3 +34,6 @@ spring:
34
34
url: https://api.mailgun.net/v3/XXX.mailgun.org/messages
35
35
key: key-XXX
36
36
```
37
+
38
+ # Build
39
+ Run `` gradle buildDocker ``
Original file line number Diff line number Diff line change 1
1
buildscript {
2
2
ext {
3
3
springBootVersion = ' 1.5.9.RELEASE'
4
+ gradleDockerVersion = " 1.2"
4
5
}
5
6
repositories {
6
7
mavenCentral()
7
8
}
8
9
dependencies {
9
10
classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
11
+ classpath(" se.transmode.gradle:gradle-docker:${ gradleDockerVersion} " )
10
12
}
11
13
}
12
14
13
15
apply plugin : ' java'
14
16
apply plugin : ' org.springframework.boot'
17
+ apply plugin : ' docker'
15
18
16
19
version = ' 1.5.5'
17
20
@@ -64,4 +67,20 @@ allprojects {
64
67
}
65
68
}
66
69
67
- apply from : ' gradle/docker.gradle'
70
+ task buildDocker (type : Docker ) {
71
+ baseImage = ' java:8-jre-alpine'
72
+ project. group = " gelder"
73
+ applicationName = " spring-boot-admin-ui"
74
+ maintainer = " Martin Geldmacher"
75
+ entryPoint([' java' ,
76
+ ' -jar' ,
77
+ ' /app.jar' ])
78
+ exposePort(8080 ) // UI
79
+
80
+ addFile {
81
+ from jar
82
+ rename {' app.jar' }
83
+ }
84
+ }
85
+
86
+ buildDocker. dependsOn(build)
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments