Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in maestro #54

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 45 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,48 +113,49 @@ POSTGRES_USER=my-user POSTGRES_PASSWORD=my-password ./run.sh postgres

## Services

| Service Type | Service | Supported |
|-----------------------------|--------------------|-----------|
| Change Data Capture | debezium | ✅ |
| Database | cassandra | ✅ |
| Database | cockroachdb | ✅ |
| Database | elasticsearch | ✅ |
| Database | mariadb | ✅ |
| Database | mongodb | ✅ |
| Database | mssql | ✅ |
| Database | mysql | ✅ |
| Database | neo4j | ✅ |
| Database | postgres | ✅ |
| Database | spanner | ✅ |
| Database | sqlite | ✅ |
| Database | opensearch | ❌ |
| Data Catalog | marquez | ✅ |
| Data Catalog | unitycatalog | ✅ |
| Data Catalog | amundsen | ❌ |
| Data Catalog | datahub | ❌ |
| Data Catalog | openmetadata | ❌ |
| Distributed Coordination | zookeeper | ✅ |
| Distributed Data Processing | flink | ✅ |
| HTTP | httpbin | ✅ |
| Identity Management | keycloak | ✅ |
| Job Orchestrator | airflow | ✅ |
| Job Orchestrator | dagster | ✅ |
| Job Orchestrator | mage-ai | ✅ |
| Job Orchestrator | prefect | ✅ |
| Messaging | activemq | ✅ |
| Messaging | kafka | ✅ |
| Messaging | rabbitmq | ✅ |
| Messaging | solace | ✅ |
| Notebook | jupyter | ✅ |
| Object Storage | minio | ✅ |
| Query Engine | duckdb | ✅ |
| Query Engine | flight-sql | ✅ |
| Query Engine | presto | ✅ |
| Query Engine | trino | ✅ |
| Real-time OLAP | clickhouse | ✅ |
| Real-time OLAP | doris | ✅ |
| Real-time OLAP | druid | ✅ |
| Real-time OLAP | pinot | ✅ |
| Test Data Management | data-caterer | ✅ |
| Workflow | temporal | ✅ |
| Service Type | Service | Supported |
|-----------------------------|---------------|-----------|
| Change Data Capture | debezium | ✅ |
| Database | cassandra | ✅ |
| Database | cockroachdb | ✅ |
| Database | elasticsearch | ✅ |
| Database | mariadb | ✅ |
| Database | mongodb | ✅ |
| Database | mssql | ✅ |
| Database | mysql | ✅ |
| Database | neo4j | ✅ |
| Database | postgres | ✅ |
| Database | spanner | ✅ |
| Database | sqlite | ✅ |
| Database | opensearch | ❌ |
| Data Catalog | marquez | ✅ |
| Data Catalog | unitycatalog | ✅ |
| Data Catalog | amundsen | ❌ |
| Data Catalog | datahub | ❌ |
| Data Catalog | openmetadata | ❌ |
| Distributed Coordination | zookeeper | ✅ |
| Distributed Data Processing | flink | ✅ |
| HTTP | httpbin | ✅ |
| Identity Management | keycloak | ✅ |
| Job Orchestrator | airflow | ✅ |
| Job Orchestrator | dagster | ✅ |
| Job Orchestrator | mage-ai | ✅ |
| Job Orchestrator | prefect | ✅ |
| Messaging | activemq | ✅ |
| Messaging | kafka | ✅ |
| Messaging | rabbitmq | ✅ |
| Messaging | solace | ✅ |
| Notebook | jupyter | ✅ |
| Object Storage | minio | ✅ |
| Query Engine | duckdb | ✅ |
| Query Engine | flight-sql | ✅ |
| Query Engine | presto | ✅ |
| Query Engine | trino | ✅ |
| Real-time OLAP | clickhouse | ✅ |
| Real-time OLAP | doris | ✅ |
| Real-time OLAP | druid | ✅ |
| Real-time OLAP | pinot | ✅ |
| Test Data Management | data-caterer | ✅ |
| Workflow | maestro | ✅ |
| Workflow | temporal | ✅ |

1 change: 1 addition & 0 deletions data/cockroachdb/data/my_data.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE DATABASE maestro;
16 changes: 16 additions & 0 deletions data/cockroachdb/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

count=0
total=0

for f in $(ls /tmp/data/*.sql);
do
total=$((total + 1))
cockroach sql --insecure --host cockroachdb < "${f}"
if [[ $? -eq 0 ]];
then
count=$((count + 1))
fi;
done;

echo "Executed ${count} out of ${total} files"
21 changes: 21 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@ services:
- "9000:9000"
user: "101:101"
cockroachdb:
command: [bash, -c, /tmp/scripts/init.sh]
container_name: cockroachdb-data
depends_on:
cockroachdb-server:
condition: service_healthy
image: "cockroachdb/cockroach:${COCKROACHDB_VERSION:-v24.1.0}"
volumes:
- "./data/cockroachdb/init.sh:/tmp/scripts/init.sh"
- "${COCKROACHDB_DATA:-./data/cockroachdb/data}:/tmp/data"
cockroachdb-server:
command: [start-single-node, --insecure]
container_name: cockroachdb
healthcheck:
Expand Down Expand Up @@ -478,6 +488,17 @@ services:
restart: unless-stopped
volumes:
- "./data/keycloak/realm.json:/opt/keycloak/data/import/realm.json:ro"
maestro:
container_name: maestro
depends_on:
cockroachdb:
condition: service_completed_successfully
environment:
- CONDUCTOR_CONFIGS_JDBCURL=jdbc:postgresql://cockroachdb:26257/maestro
- CONDUCTOR_CONFIGS_JDBCUSERNAME=root
image: "datacatering/maestro:${MAESTRO_VERSION:-0.1.0}"
ports:
- "8081:8080"
mage-ai:
command: mage start your_first_project
container_name: mage-ai
Expand Down
1 change: 0 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ check_persist_flag() {

startup_services() {
echo -e "${GREEN}Starting up services...${NC}"
echo "$COMPOSE_FILES"
docker-compose $COMPOSE_FILES up -d --quiet-pull "$@"
if [ $? != 0 ]; then
echo -e "${RED}Error: Failed to start up services${NC}"
Expand Down