This is an automated email from the ASF dual-hosted git repository. qiaojialin pushed a commit to branch cherry_pick_rel0.8 in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit 50f935ac1adb1b85181d8aa19df107ea79846881 Author: 151250128 <[email protected]> AuthorDate: Fri Jul 26 17:59:12 2019 +0800 Update dockerfile to only compile server and client --- docker/Dockerfile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 507e2b7..b3cf982 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 \ - && 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 \ + && 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 -pl server,client -am -DskipTests -Dthrift.download-url="http://www.apache.org/licenses/LICENSE-2.0.txt" -Dthrift.exec.absolute.path="/usr/bin/thrift" \ + && 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 \
