Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
ARG JDK_VERSION
ENV JAVA_HOME="/usr/lib/jvm/jdk-${JDK_VERSION}"
ENV PATH=$PATH:$JAVA_HOME/bin
ENV CATALOG_MANAGEMENT=static
COPY --from=jdk-download $JAVA_HOME $JAVA_HOME

RUN \
Expand Down
1 change: 1 addition & 0 deletions core/docker/default/etc/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
discovery.uri=http://localhost:8080
catalog.management=${ENV:CATALOG_MANAGEMENT}
2 changes: 1 addition & 1 deletion docs/src/main/sphinx/admin/properties-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ ignore on startup.
- **Default value:** `false`

Requires [](prop-catalog-store) to be set to `file`. If true, existing catalog
property files cannot be removed with `DROP CATALOG`, and now new catalog files
property files cannot be removed with `DROP CATALOG`, and no new catalog files
can be written with identical names with `CREATE CATALOG`. As a result, a
coordinator restart resets the known catalogs to the existing files only.
12 changes: 12 additions & 0 deletions docs/src/main/sphinx/installation/containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ at `/etc/trino/catalog`, or individual catalog property files in it.

If you want to use additional plugins, mount them at `/usr/lib/trino/plugin`.

To avoid having to create catalog files and mount them in the container,
you can enable dynamic catalog management by setting the `CATALOG_MANAGEMENT`
environmental variable to `dynamic`.

```shell
$ docker run --name trino -d -p 8080:8080 -e CATALOG_MANAGEMENT=dynamic trinodb/trino
```

After connecting to Trino, execute (sql-catalog-management)= statements to
create drop catalogs as desired. To make these changes persistent across
container restarts, a volume must be mounted at `/etc/trino/catalog`.

## Cleaning up

You can stop and start the container, using the `docker stop trino` and
Expand Down