Skip to content

Commit 14c0bf7

Browse files
committed
add 0.13.0 dockerfile
1 parent fbd7963 commit 14c0bf7

File tree

3 files changed

+139
-0
lines changed

3 files changed

+139
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
FROM openjdk:11-jre-slim
21+
RUN apt update \
22+
# procps is for `free` command
23+
&& apt install wget unzip lsof procps -y \
24+
&& wget https://downloads.apache.org/iotdb/0.13.0/apache-iotdb-0.13.0-cluster-bin.zip \
25+
# if you are in China, use the following URL
26+
#&& wget https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.13.0/apache-iotdb-0.13.0-cluster-bin.zip \
27+
&& unzip apache-iotdb-0.13.0-cluster-bin.zip \
28+
&& rm apache-iotdb-0.13.0-cluster-bin.zip \
29+
&& mv apache-iotdb-0.13.0-cluster-bin /iotdb \
30+
&& apt remove wget unzip -y \
31+
&& apt autoremove -y \
32+
&& apt purge --auto-remove -y \
33+
&& apt clean -y \
34+
# modify the seeds in configuration file
35+
&& sed -i '/^seed_nodes/cseed_nodes=127.0.0.1:9003' /iotdb/conf/iotdb-cluster.properties \
36+
&& sed -i '/^default_replica_num/cdefault_replica_num=1' /iotdb/conf/iotdb-cluster.properties
37+
38+
# rpc port
39+
EXPOSE 6667
40+
# JMX port
41+
EXPOSE 31999
42+
# sync port
43+
EXPOSE 5555
44+
# monitor port
45+
EXPOSE 8181
46+
# internal meta port
47+
EXPOSE 9003
48+
# internal data port
49+
EXPOSE 40010
50+
VOLUME /iotdb/data
51+
VOLUME /iotdb/logs
52+
ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
53+
ENTRYPOINT ["/iotdb/sbin/start-node.sh"]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
FROM openjdk:11-jre-slim
21+
RUN apt update \
22+
# procps is for `free` command
23+
&& apt install wget unzip lsof procps -y \
24+
&& wget https://downloads.apache.org/iotdb/0.13.0/apache-iotdb-0.13.0-grafana-bin.zip \
25+
# if you are in China, use the following URL
26+
#&& wget https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.13.0/apache-iotdb-0.13.0-grafana-bin.zip \
27+
&& unzip apache-iotdb-0.13.0-grafana-bin.zip \
28+
&& rm apache-iotdb-0.13.0-grafana-bin.zip \
29+
&& mv apache-iotdb-0.13.0-grafana-bin /iotdb-grafana \
30+
&& apt remove wget unzip -y \
31+
&& apt autoremove -y \
32+
&& apt purge --auto-remove -y \
33+
&& apt clean -y
34+
# rpc port
35+
EXPOSE 8888
36+
VOLUME /iotdb-grafana/config
37+
RUN echo "#!/bin/bash" > /iotdb-grafana/runboot.sh
38+
RUN echo "java -Djava.security.egd=file:/dev/./urandom -jar /iotdb-grafana/iotdb-grafana.war" >> /iotdb-grafana/runboot.sh
39+
RUN chmod a+x /iotdb-grafana/runboot.sh
40+
WORKDIR /iotdb-grafana
41+
ENTRYPOINT ["./runboot.sh"]
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
FROM openjdk:11-jre-slim
21+
RUN apt update \
22+
# procps is for `free` command
23+
&& apt install wget unzip lsof procps -y \
24+
&& wget https://downloads.apache.org/iotdb/0.13.0/apache-iotdb-0.13.0-server-bin.zip \
25+
# if you are in China, use the following URL
26+
#&& wget https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.13.0/apache-iotdb-0.13.0-server-bin.zip \
27+
&& unzip apache-iotdb-0.13.0-server-bin.zip \
28+
&& rm apache-iotdb-0.13.0-server-bin.zip \
29+
&& mv apache-iotdb-0.13.0-server-bin /iotdb \
30+
&& apt remove wget unzip -y \
31+
&& apt autoremove -y \
32+
&& apt purge --auto-remove -y \
33+
&& apt clean -y
34+
# rpc port
35+
EXPOSE 6667
36+
# JMX port
37+
EXPOSE 31999
38+
# sync port
39+
EXPOSE 5555
40+
# monitor port
41+
EXPOSE 8181
42+
VOLUME /iotdb/data
43+
VOLUME /iotdb/logs
44+
ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
45+
ENTRYPOINT ["/iotdb/sbin/start-server.sh"]

0 commit comments

Comments
 (0)