-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
68 lines (56 loc) · 1.68 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
group GROUP
version VERSION_NAME
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'io.ratpack.ratpack-groovy'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'docker'
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
buildscript {
repositories {
jcenter()
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'io.ratpack:ratpack-gradle:1.4.1'
classpath 'se.transmode.gradle:gradle-docker:1.2'
}
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.6'
compile 'org.slf4j:slf4j-api:1.7.15'
compile 'org.slf4j:slf4j-log4j12:1.7.15'
compile 'com.google.code.gson:gson:2.7'
compile 'com.spotify:docker-client:6.0.0'
compile 'org.apache.commons:commons-io:1.3.2'
testCompile 'junit:junit:4.12'
}
docker {
baseImage 'java:openjdk-8-jre'
maintainer 'Ilya Sadykov "[email protected]"'
}
//tasks.withType(JavaExec) {
// systemProperties System.properties
//}
task docker(type: Docker) {
applicationName = 'selenoud'
defaultCommand = ["/opt/selenoud/bin/selenoud"]
tag = 'seleniumkit/selenoud'
exposePort 4444
volume '/var/log/selenoud'
addFile "build/distributions/selenoud-${VERSION_NAME}.zip", '/opt/selenoud.zip'
workingDir '/opt'
runCommand 'mkdir -p /opt'
runCommand 'cd /opt'
runCommand 'unzip /opt/selenoud.zip'
runCommand 'rm /opt/selenoud.zip'
runCommand "mv /opt/selenoud-${VERSION_NAME} /opt/selenoud"
}
// apply from: rootDir.path + '/release.gradle'