File tree Expand file tree Collapse file tree 5 files changed +54
-2
lines changed
Expand file tree Collapse file tree 5 files changed +54
-2
lines changed Original file line number Diff line number Diff line change 6868 push : true
6969 tags : ${{ secrets.DOCKER_HUB_USERNAME }}/dis_sim_data_population:${{ github.event.release.tag_name }},${{ secrets.DOCKER_HUB_USERNAME }}/dis_sim_data_population:latest
7070
71+ - name : Build and push services_ready
72+ uses : docker/build-push-action@v3
73+ with :
74+ context : ./src/services_ready/.
75+ file : ./src/services_ready/Dockerfile
76+ platforms : linux/amd64,linux/arm64
77+ push : true
78+ tags : ${{ secrets.DOCKER_HUB_USERNAME }}/dis_sim_services_ready:${{ github.event.release.tag_name }},${{ secrets.DOCKER_HUB_USERNAME }}/dis_sim_services_ready:latest
79+
Original file line number Diff line number Diff line change 2727 docker build -f ./src/similarity/Dockerfile ./src/similarity
2828 - name : Build dis-sim-data-population
2929 run :
30- docker build -f ./src/data_population/Dockerfile ./src/data_population
30+ docker build -f ./src/data_population/Dockerfile ./src/data_population
31+ - name : Build services-ready
32+ run :
33+ docker build -f ./src/services_ready/Dockerfile ./src/services_ready
Original file line number Diff line number Diff line change @@ -69,7 +69,12 @@ services:
6969 depends_on :
7070 zookeeper :
7171 condition : service_healthy
72- # condition: service_completed_successfully
72+ healthcheck :
73+ test : kafka-topics --bootstrap-server broker:9092 --list
74+ interval : 30s
75+ timeout : 10s
76+ retries : 5
77+ # https://github.com/confluentinc/cp-docker-images/issues/248
7378 environment :
7479 KAFKA_BROKER_ID : 1
7580 KAFKA_ZOOKEEPER_CONNECT : ' zookeeper:2181'
@@ -146,4 +151,17 @@ services:
146151 condition : service_healthy
147152 subscription_db :
148153 condition : service_healthy
154+
155+ services_ready :
156+ build : ' ./src/services_ready'
157+ image : harshraj22/dis_sim_services_ready
158+ depends_on :
159+ redis :
160+ condition : service_healthy
161+ subscription_db :
162+ condition : service_healthy
163+ broker :
164+ condition : service_healthy
165+ zookeeper :
166+ condition : service_healthy
149167
Original file line number Diff line number Diff line change 1+ FROM bash
2+
3+ # RUN apk add --no-cache bash
4+ COPY message.sh .
5+
6+ SHELL ["/bin/bash" , "-c" ]
7+
8+ CMD ["./message.sh" ]
Original file line number Diff line number Diff line change 1+ echo '
2+ The Required Services Are:
3+
4+
5+
6+ ||=====|| ||===== //\\ ========|| \\ //
7+ || || || // \\ || || \\ //
8+ ||=====|| ||===== //====\\ || || \\//
9+ || \\ || // \\ || || ||
10+ || \\ || // \\ || || ||
11+ || \\ ||===== // \\ ========|| ||
12+
13+
14+ '
You can’t perform that action at this time.
0 commit comments