Skip to content

Commit 1679cb2

Browse files
authored
Merge pull request #57 from harshraj22/service_start_logs
Service start logs
2 parents 18d2fb0 + fcf2bd2 commit 1679cb2

File tree

5 files changed

+54
-2
lines changed

5 files changed

+54
-2
lines changed

.github/workflows/dockerhub_ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,12 @@ jobs:
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+

.github/workflows/main_branch_ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@ jobs:
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

docker-compose.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/services_ready/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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"]

src/services_ready/message.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
echo '
2+
The Required Services Are:
3+
4+
5+
6+
||=====|| ||===== //\\ ========|| \\ //
7+
|| || || // \\ || || \\ //
8+
||=====|| ||===== //====\\ || || \\//
9+
|| \\ || // \\ || || ||
10+
|| \\ || // \\ || || ||
11+
|| \\ ||===== // \\ ========|| ||
12+
13+
14+
'

0 commit comments

Comments
 (0)