You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2019/07/25 17:07:01 UTC
[incubator-iotdb] 01/01: let the dockerfile build from iotdb v0.8
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch 0.8-docker
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit 2511f497cae940804ef31478507d7dd9db3a8fd0
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Fri Jul 26 01:06:25 2019 +0800
let the dockerfile build from iotdb v0.8
---
docker/Dockerfile | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 507e2b7..5aecd40 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -25,17 +25,20 @@ RUN apt update \
&& rm -rf jdk11.tar.gz \
&& export JAVA_HOME=/jdk-11.0.2/ \
&& export PATH="$JAVA_HOME/bin:$PATH" \
- && wget https://github.com/apache/incubator-iotdb/archive/master.zip \
- && unzip master.zip \
- && rm master.zip \
- && cd incubator-iotdb-master \
+ && wget https://github.com/apache/incubator-iotdb/archive/rel/0.8.zip \
+ && unzip 0.8.zip \
+ && rm 0.8.zip \
+ && cd incubator-iotdb-rel-0.8 \
&& mvn package -DskipTests -Dthrift.download-url="http://www.apache.org/licenses/LICENSE-2.0.txt" -Dthrift.exec.absolute.path="/usr/bin/thrift" \
- && cp -r iotdb/iotdb /iotdb \
- && cp -r iotdb-cli/cli /cli \
+ && cd build/target/ \
+ && tar -xzf build-0.8.0-SNAPSHOT-release.tar.gz \
+ && mkdir /iotdb \
+ && mv build-0.8.0-SNAPSHOT/* /iotdb/ \
+ && cd ../../ \
&& mvn clean \
&& ls -lh ~/.m2 \
&& rm -rf ~/.m2 \
- && rm -rf /incubator-iotdb-master \
+ && rm -rf /incubator-iotdb-rel-0.8 \
&& sed -i '119d' /iotdb/conf/logback.xml \
&& apt remove wget maven unzip thrift-compiler -y \
&& apt autoremove -y \