rabin 7 år sedan
förälder
incheckning
8a81951b8b
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 0
      src/docker/build/iot/xinnongbaohe/Dockerfile
  2. 1 1
      src/docker/conf/iot.conf

+ 1 - 0
src/docker/build/iot/xinnongbaohe/Dockerfile

@@ -18,6 +18,7 @@ RUN apk add --no-cache --update py-gevent py-psycopg2 git && \
 	git clone http://git.dever.cc:3000/python/demeter.git $DEMETER_LIB && \
 	git clone http://git.dever.cc:3000/python/xinnongbaohe.git $DEMETER_HOME && \
 	#mkdir -p /etc/supervisor/conf.d/ && \
+	rm -R $DEMETER_HOME/runtime/postgresql/device_* $DEMETER_HOME/runtime/postgresql/hardware $DEMETER_HOME/runtime/postgresql/farm_* $DEMETER_HOME/runtime/postgresql/msg $DEMETER_HOME/runtime/postgresql/origin_*  $DEMETER_HOME/runtime/postgresql/log $DEMETER_HOME/runtime/postgresql/manage_log && \
 	chmod -R +x $DEMETER_HOME/*.py
 
 EXPOSE 8087 8088

+ 1 - 1
src/docker/conf/iot.conf

@@ -34,6 +34,6 @@ command = demeter
 [apidoc]
 volumes = {container}src/python:/root/input,{container}web/apidoc:/root/output,{container}src/python/nongxiaohe/doc:/root/config
 call = apidoc
-#使用dever call tool apidoc input=demo&out=output来运行,然后可以在宿主机里使用apidoc命令
+#使用dm call iot-apidoc input=demo&out=output来运行,然后可以在宿主机里使用apidoc命令
 param = -i /root/input/{$input:nongxiaohe}/front/api -o /root/{$out:output} -c /root/config
 alias = apidoc