You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DOCKER] UC server container displays welcome message (unitycatalog#392)
This PR changes how the UC server docker image is built (uses the faster
`sbt server/package`) and copies the jars required to start it (to
`jars` directory).
After
unitycatalog@4b7aaa3,
I thought I'd work on changes that would make the behaviour of the UC
server when started consistent regardless whether it's in or outside
Docker container (namely the welcome message at the start and no
warnings).
A Dockerized UC runs in the foreground and containers are removed once
stopped.
Copy file name to clipboardexpand all lines: docker/README.md
+30-36
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,14 @@ Before you can build the Docker image, install the following tools:
11
11
12
12
## Building Unity Catalog Server Image
13
13
14
+
> [!NOTE]
15
+
>
16
+
> On [Mac computers with Apple silicon](https://support.apple.com/en-us/116943), you may want to change [DOCKER_DEFAULT_PLATFORM](https://docs.docker.com/reference/cli/docker/#environment-variables) environment variable before building the images as follows:
17
+
>
18
+
> ```bash
19
+
>export DOCKER_DEFAULT_PLATFORM=linux/amd64
20
+
>```
21
+
14
22
[build-uc-server-docker](./bin/build-uc-server-docker) builds the Docker image of Unity Catalog Localhost Reference Server.
15
23
16
24
```bash
@@ -19,7 +27,8 @@ Before you can build the Docker image, install the following tools:
19
27
20
28
> [!NOTE]
21
29
>
22
-
> `build-uc-server-docker` runs the entire sbt build while creating the Docker image.
30
+
> `build-uc-server-docker` runs `sbt server/package` build while creating the Docker image.
31
+
> That gives all the required jars files part of the image.
23
32
24
33
`build-uc-server-docker` creates an image named `unitycatalog` with the version from [version.sbt](../version.sbt).
25
34
@@ -28,8 +37,8 @@ docker images unitycatalog
28
37
```
29
38
30
39
```text
31
-
REPOSITORY TAG IMAGE ID CREATED SIZE
32
-
unitycatalog 0.2.0-SNAPSHOT 8b68b233813bAbout a minute ago 427MB
40
+
REPOSITORY TAG IMAGE ID CREATED SIZE
41
+
unitycatalog 0.2.0-SNAPSHOT 5771da3566937 minutes ago 2.58GB
33
42
```
34
43
35
44
## Running Unity Catalog Server Container
@@ -41,36 +50,31 @@ Once the Docker image of Unity Catalog's Localhost Reference Server is built, yo
41
50
```
42
51
43
52
```text
44
-
Container unitycatalog does not exist. Creating it...
0 commit comments