Skip to content

Commit 730693c

Browse files
authored
Merge pull request #17 from tegonal/dev/build-tool-change
Metabase v0.41.7 release
2 parents 0b89d95 + 84f9c23 commit 730693c

File tree

5 files changed

+44
-34
lines changed

5 files changed

+44
-34
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
*.iml
1010
teradata-driver.iml
1111
.lein-repl-history
12+
.cpcache

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ If you are running the Docker image or you want to use another directory for plu
5050

5151
## Building the Teradata Driver Yourself
5252

53-
### Prereqs: Install Metabase locally, compiled for building drivers
54-
55-
```bash
56-
cd /path/to/metabase/source
57-
lein install-for-building-drivers
58-
```
59-
60-
### Build it
61-
62-
```bash
63-
cd /path/to/teradata-driver
64-
lein clean
65-
DEBUG=1 LEIN_SNAPSHOTS_IN_RELEASE=true lein uberjar
66-
```
67-
68-
This will build a file called `target/uberjar/teradata.metabase-driver.jar`; copy this to your Metabase `./plugins` directory.
53+
## One time setup of metdata
54+
55+
You require metabase to be installed alongside of your project
56+
1. cd metadata-teradata-driver/..
57+
2. git clone https://github.com/metabase/metabase
58+
3. cd metabase
59+
4. clojure -X:deps prep
60+
5. cd modules/driver
61+
6. clojure -X:deps prep
62+
7. cd ../../../metadata-teradata-driver
63+
64+
## Build
65+
1. modify :paths in deps.edn, make them absolute
66+
2. clojure -X:build
67+
68+
This will build a file called `target/teradata.metabase-driver.jar`; copy this to your Metabase `./plugins` directory.

deps.edn

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
:paths [
3+
; before building, you need to turn those into absolute paths
4+
"src"
5+
"resources"
6+
]
7+
8+
; build the driver with `clojure -X:build` assumes that:
9+
; 1. the metabase repo (https://github.com/metabase/metabase) exists in ../metabase
10+
; 2. the correct tag is checked out `git checkout v...`
11+
; 3. `clojure -X:deps prep` was run in ../metabase as well as in ../metabase/modules/drivers
12+
; 4. You have turned the relative :paths above into absolute paths
13+
:aliases {
14+
:build {
15+
;; as soon as extra-deps supports prep-lib we can use {:git/url "https://github.com/metabase/metabase.git" :git/tag "v0.41.7" :git/sha "5d45269b16"}
16+
:extra-deps {metabase/metabase-core {:local/root "../metabase"}
17+
metabase/build-drivers {:local/root "../metabase/bin/build-drivers"}}
18+
:exec-fn build-drivers.build-driver/build-driver!
19+
:exec-args {:driver :teradata
20+
:project-dir "."
21+
:target-dir "./target"}
22+
23+
}
24+
}
25+
}

project.clj

Lines changed: 0 additions & 16 deletions
This file was deleted.

resources/metabase-plugin.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
info:
22
name: Metabase Teradata Driver
3-
version: 1.0.2-teradata-jdbc-17.10
3+
version: 1.0.2-metabase-v0.41.7-teradata-jdbc-17.10
44
description: Allows Metabase to connect to Teradata databases. Community Supported driver.
55
dependencies:
66
- class: com.teradata.jdbc.TeraDriver
77
message: >
8-
Metabase requires the Teradata terajdbc4.jar and tdgssconfig.jar in order to be able to connect to Teradata databases.
8+
Metabase requires the Teradata terajdbc4.jar in order to be able to connect to Teradata databases.
99
driver:
1010
name: teradata
1111
display-name: Teradata

0 commit comments

Comments
 (0)