瀏覽代碼

更新 '.drone.yml'

修改打包镜像的堆内存
luofuwen 3 月之前
父節點
當前提交
8b6b964d59
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      .drone.yml

+ 8 - 0
.drone.yml

@@ -59,6 +59,8 @@ steps:
       - cp -rv lhb-gateway/target/lib /context/
       - cp -rv lhb-gateway/target/config /context/
       - cp /dockerfiles/template-min.dockerfile /context/Dockerfile
+      - sed -i 's/{Xms}/1024m/g' /context/Dockerfile
+      - sed -i 's/{Xmx}/1024m/g' /context/Dockerfile
       - sed -i 's/{ImageName}/lhb-gateway/g' /context/Dockerfile
       - echo -e "*\n!*.jar\n!lib/\n!config/\n!Dockerfile" > /context/.dockerignore
       - ls -alR /context
@@ -154,6 +156,8 @@ steps:
       - cp -rv lhb-quartz/target/lib /context/
       - cp -rv lhb-quartz/target/config /context/
       - cp /dockerfiles/template-min.dockerfile /context/Dockerfile
+      - sed -i 's/{Xms}/256m/g' /context/Dockerfile
+      - sed -i 's/{Xmx}/256m/g' /context/Dockerfile
       - sed -i 's/{ImageName}/lhb-quartz/g' /context/Dockerfile
       - echo -e "*\n!*.jar\n!lib/\n!config/\n!Dockerfile" > /context/.dockerignore
       - ls -alR /context
@@ -250,6 +254,8 @@ steps:
       - cp -rv lhb-system/lhb-system-biz/target/lib /context/
       - cp -rv lhb-system/lhb-system-biz/target/config /context/
       - cp /dockerfiles/template-biz-min.dockerfile /context/Dockerfile
+      - sed -i 's/{Xms}/512m/g' /context/Dockerfile
+      - sed -i 's/{Xmx}/512m/g' /context/Dockerfile
       - sed -i 's/{ImageName}/lhb-system/g' /context/Dockerfile
       - echo -e "*\n!*.jar\n!lib/\n!config/\n!Dockerfile" > /context/.dockerignore
       - echo "===== 构建上下文文件列表 ====="
@@ -348,6 +354,8 @@ steps:
       - cp -rv lhb-basic/lhb-basic-biz/target/lib /context/
       - cp -rv lhb-basic/lhb-basic-biz/target/config /context/
       - cp /dockerfiles/template-biz-min.dockerfile /context/Dockerfile
+      - sed -i 's/{Xms}/512m/g' /context/Dockerfile
+      - sed -i 's/{Xmx}/512m/g' /context/Dockerfile
       - sed -i 's/{ImageName}/lhb-basic/g' /context/Dockerfile
       - echo -e "*\n!*.jar\n!lib/\n!config/\n!Dockerfile" > /context/.dockerignore
       - echo "===== 构建上下文文件列表 ====="