-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (62 loc) · 2.18 KB
/
Makefile
File metadata and controls
71 lines (62 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
run-mysql-cli-introspection:
ifndef JDBC_URL
$(error JDBC_URL is not set)
endif
HASURA_CONFIGURATION_DIRECTORY=./configs/mysql \
./gradlew :ndc-cli:run --args="\
update $(JDBC_URL) \
--fully-qualify-names=false \
--outfile '../configs/mysql/configuration.json' \
--database=MYSQL"
run-mysql-connector:
export HASURA_CONFIGURATION_DIRECTORY=$(shell pwd)/configs/mysql && \
./gradlew :ndc-connector-mysql:quarkusDev --console=plain
run-mysql-tests:
cd ../ndc-spec && \
cargo run --bin ndc-test replay --endpoint http://localhost:8080 --snapshots-dir ../ndc-jvm-mono/ndc-spec-tests/mysql
run-trino-connector:
export HASURA_CONFIGURATION_DIRECTORY=$(shell pwd)/ndc-connector-trino && \
./gradlew :ndc-connector-trino:quarkusDev --console=plain
run-trino-cli-introspection:
HASURA_CONFIGURATION_DIRECTORY=/home/user/projects/ndc-jvm-mono/ndc-connector-trino \
./gradlew :ndc-cli:run --args="\
update \
jdbc:trino://localhost:8090?user=trino \
--database=TRINO \
--schemas=chinook_mysql \
--fully-qualify-names=true"
run-snowflake-cli-introspection:
ifndef JDBC_URL
$(error JDBC_URL is not set)
endif
HASURA_CONFIGURATION_DIRECTORY=./configs/snowflake \
./gradlew :ndc-cli:run --args="\
update $(JDBC_URL) \
--fully-qualify-names=false \
--outfile '../configs/snowflake/configuration.json' \
--database=SNOWFLAKE"
run-snowflake-connector:
export HASURA_CONFIGURATION_DIRECTORY=$(shell pwd)/configs/snowflake && \
./gradlew :ndc-connector-snowflake:quarkusDev --console=plain
run-oracle-connector:
export HASURA_CONFIGURATION_DIRECTORY=$(shell pwd)/ndc-connector-oracle && \
./gradlew :ndc-connector-oracle:quarkusDev --console=plain
run-oracle-cli-introspection:
ifndef JDBC_URL
$(error JDBC_URL is not set)
endif
HASURA_CONFIGURATION_DIRECTORY=./ndc-connector-oracle \
./gradlew :ndc-cli:run --args="\
update $(JDBC_URL) \
--fully-qualify-names=false \
--outfile '../ndc-connector-oracle/configuration.json' \
--database=ORACLE"
build-and-push-cli:
ifndef NDC_JVM_CLI_VERSION
$(error NDC_JVM_CLI_VERSION is not set)
endif
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t ghcr.io/hasura/ndc-jvm-cli:$(NDC_JVM_CLI_VERSION) \
-f ndc-cli.dockerfile \
--push .