Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
/ docker-trino Public archive

Presto server with Db2 connector

License

Notifications You must be signed in to change notification settings

IBM/docker-trino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-prestodb

Actions Status Docker Build Statu

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.

Build

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" .

Start

docker run -d -p 8080:8080 shawnzhu/trino:354

Configuration

DB2

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

Features

Graceful Shutdown

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.