Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos410 authored Jul 18, 2023
1 parent 1cc14a8 commit 3088817
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,17 @@ If that does not work for you, you can use the release artifact `firebird.metaba

## Building from source:

For a detailed description, take a look at the [official documentation](https://github.com/metabase/metabase/wiki/Writing-A-Driver).
For a detailed description, take a look at the [official documentation](https://www.metabase.com/docs/latest/developers-guide/drivers/start.html).

#### Prepare a local Metabase installation for building drivers

* Download the Metabase sources
* Compile a local Metabase installation for building drivers
* Checkout the main metabase repository and the firebird driver repository in the same parent directory:
```
lein install-for-building-drivers
workspace
- metabase
- metabase-firebird-driver
```

#### Build the driver

* Checkout the Firebird driver sources to `{metabase-source-dir}/modules/drivers/firebird`
* Build the driver. This will create the .jar file in the directory `target/uberjar`. Just copy that file to your plugins directory and you are good to go!
* Run the `build.sh` script from the metabase-firebird-driver repository
```
cd {metabase-source-dir}/modules/drivers/firebird
lein clean
LEIN_SNAPSHOTS_IN_RELEASE=true DEBUG=1 lein uberjar
cd metabase-firebird-driver
./build.sh
```
* The driver will now be built. The .jar file can be found in the `target` directory.

0 comments on commit 3088817

Please sign in to comment.