This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 065e887c5f8 Update dockerfile to use java 17 (#12948)
065e887c5f8 is described below
commit 065e887c5f8a694f9375f4acdaa8123af03cec8d
Author: Haonan <[email protected]>
AuthorDate: Wed Jul 17 02:15:09 2024 +0800
Update dockerfile to use java 17 (#12948)
---
docker/src/main/DockerCompose/do-docker-build.sh | 4 +-
docker/src/main/Dockerfile-0.10.1 | 39 ----------------
docker/src/main/Dockerfile-0.11.4 | 41 -----------------
docker/src/main/Dockerfile-0.12.6-cluster | 53 ----------------------
docker/src/main/Dockerfile-0.12.6-node | 45 ------------------
docker/src/main/Dockerfile-0.13.0-cluster | 53 ----------------------
docker/src/main/Dockerfile-0.13.3-node | 45 ------------------
.../src/main/Dockerfile-0.13.3-node-multi-platform | 45 ------------------
docker/src/main/Dockerfile-0.8.1 | 40 ----------------
docker/src/main/Dockerfile-0.9.1 | 41 -----------------
docker/src/main/Dockerfile-0.9.1-jre8 | 41 -----------------
docker/src/main/Dockerfile-1.0.0-confignode | 2 +-
docker/src/main/Dockerfile-1.0.0-datanode | 2 +-
docker/src/main/Dockerfile-1.0.0-standalone | 2 +-
docker/src/main/Dockerfile-1c1d | 2 +-
15 files changed, 6 insertions(+), 449 deletions(-)
diff --git a/docker/src/main/DockerCompose/do-docker-build.sh
b/docker/src/main/DockerCompose/do-docker-build.sh
index 96940cc2d78..19037f3834c 100755
--- a/docker/src/main/DockerCompose/do-docker-build.sh
+++ b/docker/src/main/DockerCompose/do-docker-build.sh
@@ -106,11 +106,11 @@ function prepare_buildx(){
docker buildx create --name mybuilder --driver docker-container
--bootstrap --use
docker run --rm --privileged tonistiigi/binfmt:latest --install all
fi
- find ${current_path}/../ -name 'Dockerfile-1.0.0*' | xargs sed -i
's#FROM openjdk:11-jre-slim#FROM --platform=$TARGETPLATFORM
eclipse-temurin:11-jre-focal#g'
+ find ${current_path}/../ -name 'Dockerfile-1.0.0*' | xargs sed -i
's#FROM eclipse-temurin:17-jre-focal#FROM --platform=$TARGETPLATFORM
eclipse-temurin:17-jre-focal#g'
else
docker_build="docker build" ;
docker_publish="" ;
- find ${current_path}/../ -name 'Dockerfile-1.0.0*' | xargs sed -i
's#FROM --platform=$TARGETPLATFORM eclipse-temurin:11-jre-focal#FROM
openjdk:11-jre-slim#g'
+ find ${current_path}/../ -name 'Dockerfile-1.0.0*' | xargs sed -i
's#FROM --platform=$TARGETPLATFORM eclipse-temurin:17-jre-focal#FROM
eclipse-temurin:17-jre-focal#g'
fi
}
function build_iotdb(){
diff --git a/docker/src/main/Dockerfile-0.10.1
b/docker/src/main/Dockerfile-0.10.1
deleted file mode 100644
index 05dacd906b3..00000000000
--- a/docker/src/main/Dockerfile-0.10.1
+++ /dev/null
@@ -1,39 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM openjdk:11-jre-slim
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://archive.apache.org/dist/iotdb/0.10.1-incubating/apache-iotdb-0.10.1-incubating-bin.zip
\
- && unzip apache-iotdb-0.10.1-incubating-bin.zip \
- && rm apache-iotdb-0.10.1-incubating-bin.zip \
- && mv apache-iotdb-0.10.1-incubating /iotdb \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y
-EXPOSE 6667
-EXPOSE 31999
-EXPOSE 5555
-EXPOSE 8181
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
diff --git a/docker/src/main/Dockerfile-0.11.4
b/docker/src/main/Dockerfile-0.11.4
deleted file mode 100644
index 627c4e16349..00000000000
--- a/docker/src/main/Dockerfile-0.11.4
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM openjdk:11-jre-slim
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://downloads.apache.org/iotdb/0.11.4/apache-iotdb-0.11.4-bin.zip \
- # if you are in China, use the following URL
- #&& wget
https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.11.4/apache-iotdb-0.11.4-bin.zip
\
- && unzip apache-iotdb-0.11.4-bin.zip \
- && rm apache-iotdb-0.11.4-bin.zip \
- && mv apache-iotdb-0.11.4 /iotdb \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y
-EXPOSE 6667
-EXPOSE 31999
-EXPOSE 5555
-EXPOSE 8181
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
diff --git a/docker/src/main/Dockerfile-0.12.6-cluster
b/docker/src/main/Dockerfile-0.12.6-cluster
deleted file mode 100644
index b7975dee430..00000000000
--- a/docker/src/main/Dockerfile-0.12.6-cluster
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM openjdk:11-jre-slim
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://downloads.apache.org/iotdb/0.12.6/apache-iotdb-0.12.6-cluster-bin.zip \
- # if you are in China, use the following URL
- #&& wget
https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.12.6/apache-iotdb-0.12.6-cluster-bin.zip
\
- && unzip apache-iotdb-0.12.6-cluster-bin.zip \
- && rm apache-iotdb-0.12.6-cluster-bin.zip \
- && mv apache-iotdb-0.12.6-cluster-bin /iotdb \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y \
- # modify the seeds in configuration file
- && sed -i '/^seed_nodes/cseed_nodes=127.0.0.1:9003'
/iotdb/conf/iotdb-cluster.properties \
- && sed -i '/^default_replica_num/cdefault_replica_num=1'
/iotdb/conf/iotdb-cluster.properties
-
-# rpc port
-EXPOSE 6667
-# JMX port
-EXPOSE 31999
-# sync port
-EXPOSE 5555
-# monitor port
-EXPOSE 8181
-# internal meta port
-EXPOSE 9003
-# internal data port
-EXPOSE 40010
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-node.sh"]
diff --git a/docker/src/main/Dockerfile-0.12.6-node
b/docker/src/main/Dockerfile-0.12.6-node
deleted file mode 100644
index eaf3e01a917..00000000000
--- a/docker/src/main/Dockerfile-0.12.6-node
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM openjdk:11-jre-slim
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://downloads.apache.org/iotdb/0.12.6/apache-iotdb-0.12.6-server-bin.zip \
- # if you are in China, use the following URL
- #&& wget
https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.12.6/apache-iotdb-0.12.6-server-bin.zip
\
- && unzip apache-iotdb-0.12.6-server-bin.zip \
- && rm apache-iotdb-0.12.6-server-bin.zip \
- && mv apache-iotdb-0.12.6-server-bin /iotdb \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y
-# rpc port
-EXPOSE 6667
-# JMX port
-EXPOSE 31999
-# sync port
-EXPOSE 5555
-# monitor port
-EXPOSE 8181
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
diff --git a/docker/src/main/Dockerfile-0.13.0-cluster
b/docker/src/main/Dockerfile-0.13.0-cluster
deleted file mode 100644
index 15600260f88..00000000000
--- a/docker/src/main/Dockerfile-0.13.0-cluster
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM openjdk:11-jre-slim
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://downloads.apache.org/iotdb/0.13.0/apache-iotdb-0.13.0-cluster-bin.zip \
- # if you are in China, use the following URL
- #&& wget
https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.13.0/apache-iotdb-0.13.0-cluster-bin.zip
\
- && unzip apache-iotdb-0.13.0-cluster-bin.zip \
- && rm apache-iotdb-0.13.0-cluster-bin.zip \
- && mv apache-iotdb-0.13.0-cluster-bin /iotdb \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y \
- # modify the seeds in configuration file
- && sed -i '/^seed_nodes/cseed_nodes=127.0.0.1:9003'
/iotdb/conf/iotdb-cluster.properties \
- && sed -i '/^default_replica_num/cdefault_replica_num=1'
/iotdb/conf/iotdb-cluster.properties
-
-# rpc port
-EXPOSE 6667
-# JMX port
-EXPOSE 31999
-# sync port
-EXPOSE 5555
-# monitor port
-EXPOSE 8181
-# internal meta port
-EXPOSE 9003
-# internal data port
-EXPOSE 40010
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-node.sh"]
diff --git a/docker/src/main/Dockerfile-0.13.3-node
b/docker/src/main/Dockerfile-0.13.3-node
deleted file mode 100644
index 82573c412b8..00000000000
--- a/docker/src/main/Dockerfile-0.13.3-node
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM openjdk:11-jre-slim
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://downloads.apache.org/iotdb/0.13.3/apache-iotdb-0.13.3-server-bin.zip \
- # if you are in China, use the following URL
- #&& wget
https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.13.3/apache-iotdb-0.13.3-server-bin.zip
\
- && unzip apache-iotdb-0.13.3-server-bin.zip \
- && rm apache-iotdb-0.13.3-server-bin.zip \
- && mv apache-iotdb-0.13.3-server-bin /iotdb \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y
-# rpc port
-EXPOSE 6667
-# JMX port
-EXPOSE 31999
-# sync port
-EXPOSE 5555
-# monitor port
-EXPOSE 8181
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
diff --git a/docker/src/main/Dockerfile-0.13.3-node-multi-platform
b/docker/src/main/Dockerfile-0.13.3-node-multi-platform
deleted file mode 100644
index bdf0a57d4a8..00000000000
--- a/docker/src/main/Dockerfile-0.13.3-node-multi-platform
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM --platform=$TARGETPLATFORM eclipse-temurin:11-jre-focal
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://downloads.apache.org/iotdb/0.13.3/apache-iotdb-0.13.3-server-bin.zip \
- # if you are in China, use the following URL
- #&& wget
https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.13.3/apache-iotdb-0.13.3-server-bin.zip
\
- && unzip apache-iotdb-0.13.3-server-bin.zip \
- && rm apache-iotdb-0.13.3-server-bin.zip \
- && mv apache-iotdb-0.13.3-server-bin /iotdb \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y
-# rpc port
-EXPOSE 6667
-# JMX port
-EXPOSE 31999
-# sync port
-EXPOSE 5555
-# monitor port
-EXPOSE 8181
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
diff --git a/docker/src/main/Dockerfile-0.8.1 b/docker/src/main/Dockerfile-0.8.1
deleted file mode 100644
index b4d955c288a..00000000000
--- a/docker/src/main/Dockerfile-0.8.1
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM openjdk:11-jre-slim
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://www-us.apache.org/dist/iotdb/0.8.1-incubating/apache-iotdb-0.8.1-incubating-bin.zip
\
- # if you are in China, use the following URL
- #&& wget
http://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.8.1-incubating/apache-iotdb-0.8.1-incubating-bin.zip
\
- && unzip apache-iotdb-0.8.1-incubating-bin.zip \
- && rm apache-iotdb-0.8.1-incubating-bin.zip \
- && mv apache-iotdb-0.8.1-incubating /iotdb \
- && sed -i '150d' /iotdb/conf/logback.xml \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y
-EXPOSE 6667
-EXPOSE 31999
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
diff --git a/docker/src/main/Dockerfile-0.9.1 b/docker/src/main/Dockerfile-0.9.1
deleted file mode 100644
index a4a6f4b0be3..00000000000
--- a/docker/src/main/Dockerfile-0.9.1
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM openjdk:11-jre-slim
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://www-us.apache.org/dist/iotdb/0.9.1-incubating/apache-iotdb-0.9.1-incubating-bin.zip
\
- # if you are in China, use the following URL
- #&& wget
http://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.9.1-incubating/apache-iotdb-0.9.1-incubating-bin.zip
\
- && unzip apache-iotdb-0.9.1-incubating-bin.zip \
- && rm apache-iotdb-0.9.1-incubating-bin.zip \
- && mv apache-iotdb-0.9.1-incubating /iotdb \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y
-EXPOSE 6667
-EXPOSE 31999
-EXPOSE 5555
-EXPOSE 8181
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
diff --git a/docker/src/main/Dockerfile-0.9.1-jre8
b/docker/src/main/Dockerfile-0.9.1-jre8
deleted file mode 100644
index 4727c99afe6..00000000000
--- a/docker/src/main/Dockerfile-0.9.1-jre8
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-FROM openjdk:8-jre
-RUN apt update \
- # procps is for `free` command
- && apt install wget unzip lsof procps -y \
- && wget
https://www-us.apache.org/dist/iotdb/0.9.1-incubating/apache-iotdb-0.9.1-incubating-bin.zip
\
- # if you are in China, use the following URL
- #&& wget
http://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.9.1-incubating/apache-iotdb-0.9.1-incubating-bin.zip
\
- && unzip apache-iotdb-0.9.1-incubating-bin.zip \
- && rm apache-iotdb-0.9.1-incubating-bin.zip \
- && mv apache-iotdb-0.9.1-incubating /iotdb \
- && apt remove wget unzip -y \
- && apt autoremove -y \
- && apt purge --auto-remove -y \
- && apt clean -y
-EXPOSE 6667
-EXPOSE 31999
-EXPOSE 5555
-EXPOSE 8181
-VOLUME /iotdb/data
-VOLUME /iotdb/logs
-ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
-ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
diff --git a/docker/src/main/Dockerfile-1.0.0-confignode
b/docker/src/main/Dockerfile-1.0.0-confignode
index 44a30e9869c..7fd7319b1e8 100644
--- a/docker/src/main/Dockerfile-1.0.0-confignode
+++ b/docker/src/main/Dockerfile-1.0.0-confignode
@@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#
-FROM openjdk:11-jre-slim
+FROM eclipse-temurin:17-jre-focal
ARG version=1.0.0
ARG target=apache-iotdb-${version}-confignode-bin
diff --git a/docker/src/main/Dockerfile-1.0.0-datanode
b/docker/src/main/Dockerfile-1.0.0-datanode
index e2ce1b9f4d1..32f3c0fe17f 100644
--- a/docker/src/main/Dockerfile-1.0.0-datanode
+++ b/docker/src/main/Dockerfile-1.0.0-datanode
@@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#
-FROM openjdk:11-jre-slim
+FROM eclipse-temurin:17-jre-focal
ARG version=1.0.0
ARG target=apache-iotdb-${version}-datanode-bin
diff --git a/docker/src/main/Dockerfile-1.0.0-standalone
b/docker/src/main/Dockerfile-1.0.0-standalone
index 0cc1def3589..da3a0ce149d 100644
--- a/docker/src/main/Dockerfile-1.0.0-standalone
+++ b/docker/src/main/Dockerfile-1.0.0-standalone
@@ -18,7 +18,7 @@
#
# syntax=docker/dockerfile:1
-FROM openjdk:11-jre-slim
+FROM eclipse-temurin:17-jre-focal
ARG version=1.0.0
ARG target=apache-iotdb-${version}-all-bin
diff --git a/docker/src/main/Dockerfile-1c1d b/docker/src/main/Dockerfile-1c1d
index 71548de08b7..996072066b7 100644
--- a/docker/src/main/Dockerfile-1c1d
+++ b/docker/src/main/Dockerfile-1c1d
@@ -19,7 +19,7 @@
# docker build context is the root path of the repository
-FROM openjdk:11-jre-slim
+FROM eclipse-temurin:17-jre-focal
ADD distribution/target/apache-iotdb-*-all-bin.zip /
ADD docker/src/main/DockerCompose/start-1c1d.sh /