Skip to content

enix223/tdengine-openjdk-client

Repository files navigation

Docker container for TDEngine client & OpenJDK

1. Introduction

taos-jdbcdriver implement two types of connection methods:

  • Native connection
  • REST connection

This repo's target is to build a container for tdengine java client to run with native connection.

Please note: This image is base on eclipse-temurin image (Official Images for OpenJDK binaries).

2. Usage

Run TDengine container

docker run -it --rm -d \
    --name tdengine-openjdk-demo \
    --hostname=tdengine \
    -p 6030-6041:6030-6041 \
    -p 6030-6041:6030-6041/udp \
    tdengine/tdengine:3.0.2.5

Run java client

docker run -it --rm \
    -v YOUR_PATH_TO_JAVA_CLIENT/client.jar:/app.jar \
    -v YOUR_PATH_TO_TAOS_CONFIG/taos.cfg:/etc/taos/taos.cfg \
    --add-host=tdengine:TDENGINE_DB_DOCKER_IP_ADDRESS \
    enix223/tdengine-openjdk-client:17-3.0.2.5 \
    java -jar /app.jar

For more information, please refer to example.

3. Building image

Argument:

  • JDKVER - OpenJDK image tag, default to 17.0.6_10
  • TDVERSION - TDEngine version, default to 3.0.2.3
  • TARGETARCH - github action os target arch

3.1 Build focal image

docker pull eclipse-temurin:17.0.6_10-jdk-focal

docker build \
    -f Dockerfile \
    --build-arg JDKVER=17.0.6_10 \
    --build-arg TDVERSION=3.0.2.5 \
    --build-arg TARGETARCH=arm64 \
    --tag enix223/tdengine-openjdk-client:17.0.6_10-jdk-focal-3.0.2.5 \
    .

About

Docker container for tdengine client & openjdk

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy