You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/10/20 02:49:07 UTC

[iotdb] 01/13: test

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch 1c1d_dockertest
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 65a80b6d8dc653f28735ade395beac45a30ecc47
Author: HTHou <hh...@outlook.com>
AuthorDate: Sun Sep 18 00:16:33 2022 +0800

    test
---
 .github/workflows/client-python.yml |  4 +--
 docker/src/main/Dockerfile-1c1d     | 50 +++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/client-python.yml b/.github/workflows/client-python.yml
index 230f9a29c5..c92cd9f4ae 100644
--- a/.github/workflows/client-python.yml
+++ b/.github/workflows/client-python.yml
@@ -5,7 +5,7 @@ name: Python Client
 on:
   push:
     branches:
-      - master
+      - 1c1d_dockertest
       - 'rel/*'
       - "new_*"
     paths-ignore:
@@ -53,7 +53,7 @@ jobs:
         run: mvn -B clean install -pl distribution,client-py -am -DskipTests
       - name: Build IoTDB server docker image
         run: |
-          docker build . -f docker/src/main/Dockerfile-single -t "iotdb:dev"
+          docker build . -f docker/src/main/Dockerfile-1c1d -t "iotdb:dev"
           docker images
       - name: Install IoTDB python client requirements
         run: pip3 install -r client-py/requirements_dev.txt
diff --git a/docker/src/main/Dockerfile-1c1d b/docker/src/main/Dockerfile-1c1d
new file mode 100644
index 0000000000..95b9d69b41
--- /dev/null
+++ b/docker/src/main/Dockerfile-1c1d
@@ -0,0 +1,50 @@
+#
+# 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.
+#
+
+# docker build context is the root path of the repository
+
+FROM openjdk:11-jre-slim
+
+ADD distribution/target/apache-iotdb-*-all-bin.zip /
+
+RUN apt update \
+  && apt install lsof dos2unix procps unzip -y \
+  && unzip /apache-iotdb-*-bin.zip -d / \
+  && rm /apache-iotdb-*-bin.zip \
+  && mv /apache-iotdb-* /iotdb \
+  && apt remove unzip -y \
+  && apt autoremove -y \
+  && apt purge --auto-remove -y \
+  && apt clean -y \
+RUN dos2unix /iotdb/confignode/sbin/start-confignode.sh
+RUN dos2unix /iotdb/confignode/sbin/../conf/confignode-env.sh
+RUN dos2unix /iotdb/datanode/sbin/start-datanode.sh
+RUN dos2unix /iotdb/datanode/sbin/../conf/datanode-env.sh
+EXPOSE 6667
+EXPOSE 31999
+EXPOSE 5555
+EXPOSE 8086
+EXPOSE 8181
+VOLUME /iotdb/confignode/data
+VOLUME /iotdb/confignode/logs
+VOLUME /iotdb/datanode/data
+VOLUME /iotdb/datanode/logs
+ENV PATH="/iotdb/confignode/sbin/:/iotdb/datanode/sbin/:/iotdb/tools/:${PATH}"
+CMD ["/iotdb/confignode/sbin/start-confignode.sh"]
+ENTRYPOINT ["/iotdb/datanode/sbin/start-datanode.sh"]