This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| sed -unbuffered -e 's/\(.*FATAL.*\)/\o033[1;31m\1\o033[0;39m/' -e 's/\(.*ERROR.*\)/\o033[31m\1\o033[39m/' -e 's/\(.*WARN.*\)/\o033[33m\1\o033[39m/' -e 's/\(.*INFO.*\)/\o033[32m\1\o033[39m/' -e 's/\(.*DEBUG.*\)/\o033[34m\1\o033[39m/' -e 's/\(.*TRACE.*\)/\o033[30m\1\o033[39m/' -e 's/\(.*[Ee]xception.*\)/\o033[1;39m\1\o033[0;39m/'- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM maven:3.6.3-jdk-11-slim@sha256:68ce1cd457891f48d1e137c7d6a4493f60843e84c9e2634e3df1d3d5b381d36c AS build | |
| RUN mkdir /project | |
| COPY . /project | |
| WORKDIR /project | |
| RUN mvn clean package -DskipTests | |
| FROM adoptopenjdk/openjdk11:jre-11.0.9.1_1-alpine@sha256:b6ab039066382d39cfc843914ef1fc624aa60e2a16ede433509ccadd6d995b1f | |
| RUN mkdir /app | |
| COPY --from=build /project/target/java-application.jar /app/java-application.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Al Fatihah | |
| Al Baqarah | |
| Ali Imran | |
| An Nisa' | |
| Al Ma'idah | |
| Al An'am | |
| Al A'raf | |
| Al Anfal | |
| At Taubah | |
| Yunus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Al Fatihah (الفاتحة) | |
| Al Baqarah (البقرة) | |
| Ali Imran (آل عمران) | |
| An Nisa' (النساء) | |
| Al Ma'idah (المائدة) | |
| Al An'am (الأنعام) | |
| Al A'raf (الأعراف) | |
| Al Anfal (الأنفال) | |
| At Taubah (التوبة) | |
| Yunus (يونس) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "movies": [ | |
| { | |
| "id": "771324839", | |
| "title": "Jurassic World", | |
| "year": 2015, | |
| "mpaa_rating": "PG-13", | |
| "runtime": 123, | |
| "critics_consensus": "", | |
| "release_dates": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| echo '----' | |
| # Set the path so cron can find jq, necessary for cron depending on your default PATH | |
| export PATH=$PATH:/usr/local/bin/ | |
| date | |
| # List current connectors and status | |
| curl -s "http://localhost:8083/connectors?expand=info&expand=status" | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # List current connectors and status | |
| curl -s "http://localhost:8083/connectors"| jq '.[]'| xargs -I{connector_name} curl -s "http://localhost:8083/connectors/"{connector_name}"/status"| jq -c -M '[.name,.connector.state,.tasks[].state]|join(":|:")'| column -s : -t| sed 's/\"//g'| sort | |
| # Restart any connector tasks that are FAILED | |
| curl -s "http://localhost:8083/connectors" | \ | |
| jq '.[]' | \ | |
| xargs -I{connector_name} curl -s "http://localhost:8083/connectors/"{connector_name}"/status" | \ | |
| jq -c -M '[select(.tasks[].state=="FAILED") | .name,"§±§",.tasks[].id]' | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run postgres instance | |
| docker run --name postgres -p 5000:5432 debezium/postgres | |
| # Run zookeeper instance | |
| docker run -it --name zookeeper -p 2181:2181 -p 2888:2888 -p 3888:3888 debezium/zookeeper | |
| # Run kafka instance | |
| docker run -it --name kafka -p 9092:9092 --link zookeeper:zookeeper debezium/kafka | |
| # Run kafka connect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| zookeeper: | |
| image: debezium/zookeeper:${DEBEZIUM_VERSION} | |
| ports: | |
| - 2181:2181 | |
| - 2888:2888 | |
| - 3888:3888 | |
| kafka: | |
| image: debezium/kafka:${DEBEZIUM_VERSION} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -s "http://localhost:8083/connectors?expand=info&expand=status" | \ | |
| jq '. | to_entries[] | [ .value.info.type, .key, .value.status.connector.state, .value.status.tasks[].state, .value.info.config."connector-class"] | join(":|:")' | \ | |
| column -s : -t| sed 's/\"//g' |sort |
NewerOlder