Skip to content

Commit

Permalink
Use sbt assembly to create fat jar for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jun 14, 2024
1 parent 70ecd25 commit cbdae7d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,21 @@ Let's take Unity Catalog for spin. In this guide, we are going to do the followi
as well as provide a convenient way to explore the content of any UC server implementation.

### Prerequisites
- Docker

OR

You have to ensure that you local environment has the following:
- Clone this repository.
- Ensure the `JAVA_HOME` environment variable your terminal is configured to point to JDK11+.
- Compile the project using `build/sbt package`

### Run the UC Server
```shell
docker run -d -i --name unitycatalog -p 8080:8080 datacatering/unitycatalog:0.1.0
```


In a terminal, in the cloned repository root directory, start the UC server.

```
Expand Down
2 changes: 1 addition & 1 deletion docker-action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ APP_VERSION=$(awk -F ' := ' '{print $2}' version.sbt | tr -d '"')
PLATFORMS="linux/amd64,linux/arm64"

run_sbt() {
SBT_COMMAND="./build/sbt -info clean package"
SBT_COMMAND="./build/sbt -info clean assembly"
echo "Running SBT to generate Server and CLI JAR: $SBT_COMMAND"
$SBT_COMMAND || exit
}
Expand Down

0 comments on commit cbdae7d

Please sign in to comment.