-
Notifications
You must be signed in to change notification settings - Fork 7
/
dip.yml
52 lines (44 loc) · 1.4 KB
/
dip.yml
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
version: '7.5'
compose:
files:
- docker/docker-compose.yml
project_name: neo4j-kafka-connector
interaction:
format:
description: format sources
runner: local
command: sh -c "./mvnw sortpom:sort license:format spotless:apply"
build-package:
description: build connector packages
runner: local
command: >
sh -c "./mvnw clean package -DskipTests -pl :packaging -am &&
find ./docker/plugins ! -name '.keep' -type f -exec rm -f {} + &&
cp ./packaging/target/*$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout).jar ./docker/plugins"
stop-connect:
description: stops connect container
service: connect
compose:
method: down
run_options: [ volumes, rmi local ]
start-connect:
description: starts connect container
service: connect
compose:
method: up
run_options: [ detach ]
relaunch:
description: builds package and re-starts connect container
runner: local
command: >
sh -c "dip build-package && dip stop-connect && dip start-connect"
cypher-shell:
description: run interactive cypher-shell inside neo4j container
service: neo4j
command: cypher-shell -a neo4j://neo4j:7687 -u neo4j -p password
compose:
method: exec
provision:
- dip build-package
- dip compose down --rmi local
- dip compose up -d neo4j zookeeper broker schema-registry control-center