This is a docker image for Trino with Db2 connector.
Notice: it starts to switch the base image from openjdk to the official trino container image trinodb/trino
since tag 354
.
Run this command to build an image with trino release 354 and Db2 connector:
docker build --build-arg TRINO_VERSION=354 -t "shawnzhu/trinodb:354" .
docker run -d -p 8080:8080 shawnzhu/trino:354
Given configuration of db2:
# cat db2.properties
connector.name=db2
connection-url=jdbc:db2://ip:port/database
connection-user=myuser
connection-password=mypassword
Then:
docker run -d -p 8080:8080 -v /foo/bar/db2.properties:/usr/lib/trino/default/etc/catalog/db2.properties:ro shawnzhu/trino:latest
It adds the graceful shutdown feature from Trino such that on a SIGTERM signal to the container, the worker will have a grace period before interrupting active queries.