File tree Expand file tree Collapse file tree 8 files changed +31
-26
lines changed Expand file tree Collapse file tree 8 files changed +31
-26
lines changed Original file line number Diff line number Diff line change 1
1
talpha :
2
+ container_name : kvdn_talpha
2
3
image : kvdn
3
4
expose :
4
5
- " 9090"
5
6
dns :
6
7
- 172.17.0.1
7
8
tbeta :
9
+ container_name : kvdn_tbeta
8
10
image : kvdn
9
11
expose :
10
12
- " 9090"
11
13
dns :
12
14
- 172.17.0.1
13
15
tgamma :
16
+ container_name : kvdn_tgamma
14
17
image : kvdn
15
18
expose :
16
19
- " 9090"
17
20
dns :
18
21
- 172.17.0.1
19
22
test :
23
+ container_name : kvdn_test
20
24
image : kvdn
21
25
expose :
22
26
- " 9090"
Original file line number Diff line number Diff line change 2
2
3
3
4
4
5
- @test " build kvdn" {
6
- cd project/; ./gradlew clean; ./gradlew shadowJar
7
- result=$?
8
- [ " $result " -eq 0 ]
9
- }
5
+ # @test "build kvdn" {
6
+ # cd project/; ./gradlew clean; ./gradlew shadowJar
7
+ # result=$?
8
+ # [ "$result" -eq 0 ]
9
+ # }
10
10
11
11
@test " build kvdn docker image" {
12
12
docker build -t kvdn .
22
22
23
23
@test " are they still running after 10 seconds?" {
24
24
sleep 10 # should verify we can talk to them here
25
- result=$( docker ps | grep -i kvdn_t | wc -l)
25
+ result=$( docker ps | grep -i _t | wc -l)
26
26
[ " $result " -ge 3 ]
27
27
}
28
28
@test " insert a value" {
29
- result=$( docker exec -t -i kvdn_test_1 /bin/bash -c " cd /opt/Client/cli; cp alpha.sh config.sh; echo hello | bash clip.sh -s=test/str/firstkey" )
29
+ result=$( docker exec -t -i kvdn_test /bin/bash -c " cd /opt/Client/cli; cp alpha.sh config.sh; echo hello | bash clip.sh -s=test/str/firstkey" )
30
30
[ $( echo " $result " | grep -c str:firstkey ) -eq 1 ]
31
31
}
32
32
@test " get keys" {
33
- result=$( docker exec -t -i kvdn_test_1 /bin/bash -c " cd /opt/Client/cli; cp beta.sh config.sh; bash clip.sh -k=test/str/" )
33
+ result=$( docker exec -t -i kvdn_test /bin/bash -c " cd /opt/Client/cli; cp beta.sh config.sh; bash clip.sh -k=test/str/" )
34
34
echo $result >> /tmp/res
35
35
[ $( echo " $result " | grep -c firstkey ) -eq 1 ]
36
36
}
37
37
38
38
@test " get the value" {
39
- result=$( docker exec -t -i kvdn_test_1 /bin/bash -c " cd /opt/Client/cli; cp gamma.sh config.sh; bash clip.sh -g=test/str/firstkey" )
39
+ result=$( docker exec -t -i kvdn_test /bin/bash -c " cd /opt/Client/cli; cp gamma.sh config.sh; bash clip.sh -g=test/str/firstkey" )
40
40
[ $( echo " $result " | grep -c hello ) -eq 1 ]
41
41
}
42
42
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
JQPath=$( which jq)
3
3
PROTO=http
4
- KVDN_HOST=kvdn_talpha_1 .kvdn.docker
4
+ KVDN_HOST=kvdn_talpha .kvdn.docker
5
5
KVDN_PORT=9090
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
JQPath=$( which jq)
3
3
PROTO=http
4
- KVDN_HOST=kvdn_tbeta_1 .kvdn.docker
4
+ KVDN_HOST=kvdn_tbeta .kvdn.docker
5
5
KVDN_PORT=9090
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
JQPath=$( which jq)
3
3
PROTO=http
4
- KVDN_HOST=kvdn_tgamma_1 .kvdn.docker
4
+ KVDN_HOST=kvdn_tgamma .kvdn.docker
5
5
KVDN_PORT=9090
Original file line number Diff line number Diff line change @@ -8,10 +8,20 @@ buildscript {
8
8
apply plugin : ' java'
9
9
apply plugin : ' groovy'
10
10
apply plugin : ' com.github.johnrengelman.shadow'
11
+ apply plugin : ' maven'
12
+ apply plugin : ' maven-publish'
13
+
11
14
12
15
group = ' net.iowntheinter'
13
16
version = ' 0.1'
14
17
18
+ uploadArchives {
19
+ repositories {
20
+ mavenDeployer {
21
+ repository(url : " file://localhost/tmp/repo/" )
22
+ }
23
+ }
24
+ }
15
25
if (! JavaVersion . current(). java8Compatible) {
16
26
throw new IllegalStateException (''' A Haiku:
17
27
| This needs Java 8,
@@ -40,7 +50,11 @@ dependencies {
40
50
compile ' com.esotericsoftware:kryo:3.0.3'
41
51
42
52
}
43
-
53
+ model {
54
+ tasks. generatePomFileForMavenCustomPublication {
55
+ destination = file(" $buildDir /generated-pom.xml" )
56
+ }
57
+ }
44
58
shadowJar {
45
59
classifier = ' fat'
46
60
manifest {
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments