Skip to content

Commit

Permalink
CDSP IoTDB Dockerfile: update for IoTDB v1.3.3
Browse files Browse the repository at this point in the history
The CDSP IoTDB Dockerfile extends the upstream IoTDB docker image by
adding the optional UDF Data Quality library and enabling the REST API
to allow Grafana connections.

This commit updates the Dockerfile for changes in IoTDB v1.3.3:

1. UDF Data Quality library archive internal structure has changed
2. REST: Config iotdb-common.properties has been merged into
   iotdb-system.properties. The latter no longer contains all the config
   entries so the entry to enable the REST API must be added.

Signed-off-by: Stephen Lawrence <[email protected]>
  • Loading branch information
slawr authored and chrizmc committed Feb 11, 2025
1 parent b15d605 commit 1845e4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/iotdb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Dockerfile for the CDSP build of Apache IoTDB.
# ---------------------------------------------------------------------------

ARG IOTDB_VERSION=1.2.2
ARG IOTDB_VERSION=1.3.3
ARG IOTDB_IMAGE=apache/iotdb:${IOTDB_VERSION}-standalone

FROM ${IOTDB_IMAGE} AS cdsp-extras
Expand All @@ -15,9 +15,9 @@ ARG IOTDB_IMAGE
# UDF Data Quality library
ARG UDF_ARCHIVE_NAME=apache-iotdb-${IOTDB_VERSION}-library-udf-bin.zip
ARG UDF_ARCHIVE_URL=https://archive.apache.org/dist/iotdb/${IOTDB_VERSION}/${UDF_ARCHIVE_NAME}
ARG UDF_LIB_PATH=apache-iotdb-${IOTDB_VERSION}-library-udf-bin/ext/udf/library-udf.jar
ARG UDF_LIB_PATH=apache-iotdb-${IOTDB_VERSION}-library-udf-bin/library-udf.jar
ARG UDF_REG_SCRIPT_NAME=register-UDF.sh
ARG UDF_REG_SCRIPT_PATH=apache-iotdb-${IOTDB_VERSION}-library-udf-bin/tools/${UDF_REG_SCRIPT_NAME}
ARG UDF_REG_SCRIPT_PATH=apache-iotdb-${IOTDB_VERSION}-library-udf-bin/${UDF_REG_SCRIPT_NAME}
ARG SERVICE_HOSTNAME=iotdb-service

# General configuration
Expand All @@ -35,7 +35,7 @@ RUN unzip -j -o ${UDF_ARCHIVE_NAME} ${UDF_LIB_PATH} ${UDF_REG_SCRIPT_PATH} \

WORKDIR ${IOTDB_HOME}/conf
# Enable IoTDB REST API as it is used by the IoTDB Grafana Connector for queries
RUN sed -i 's/^# enable_rest_service=false/enable_rest_service=true/g' iotdb-common.properties
RUN echo "enable_rest_service=true" >> iotdb-system.properties

# Set the entry point path to the IoTDB sbin directory where the IoTDB admin scripts are.
# This mimics the upstream image.
Expand Down

0 comments on commit 1845e4b

Please sign in to comment.