File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed
Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 4343 - name : Build and publish the Docker image
4444 uses : docker/build-push-action@v5
4545 with :
46- context : services/save-and-restore
46+ context : services/alarm-server
4747 push : true
4848 platforms : linux/amd64
4949 tags : ${{ steps.meta.outputs.tags }}
Original file line number Diff line number Diff line change 1+ services :
2+ zookeeper :
3+ image : confluentinc/cp-zookeeper:latest
4+ container_name : zookeeper
5+ healthcheck :
6+ test : nc -z localhost 2181 || exit -1
7+ interval : 10s
8+ timeout : 5s
9+ retries : 3
10+ environment :
11+ ZOOKEEPER_CLIENT_PORT : 2181
12+ ZOOKEEPER_TICK_TIME : 2000
13+ ports :
14+ - 2181:2181
15+
16+
17+ kafka :
18+ image : confluentinc/cp-kafka:latest
19+ hostname : ${HOSTNAME}
20+ ports :
21+ - 9092:9092
22+ depends_on :
23+ - zookeeper
24+ healthcheck :
25+ test : kafka-topics --bootstrap-server broker:9092 --list
26+ interval : 30s
27+ timeout : 10s
28+ retries : 3
29+ environment :
30+ KAFKA_BROKER_ID : 1
31+ KAFKA_ZOOKEEPER_CONNECT : ' zookeeper:2181'
32+ KAFKA_LISTENERS : INTERNAL://0.0.0.0:9094,OUTSIDE://0.0.0.0:9092
33+ KAFKA_ADVERTISED_LISTENERS : INTERNAL://:9094,OUTSIDE://:9092
34+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT
35+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR : 1
36+ KAFKA_INTER_BROKER_LISTENER_NAME : INTERNAL
37+
38+ alarmserver :
39+ image : ghcr.io/controlsystemstudio/phoebus/service-alarm-server:csstudio-2989
40+ depends_on :
41+ - kafka
42+ command : >
43+ /bin/bash -c "
44+ java -jar /alarmserver/service-alarm-server-*.jar"
45+
You can’t perform that action at this time.
0 commit comments