浏览代码

retry npm 3 times to account for the flakiness of the process

Nariman Jelveh 10 月之前
父节点
当前提交
10d77f17aa
共有 2 个文件被更改,包括 9 次插入14 次删除
  1. 9 2
      Dockerfile
  2. 0 12
      src/puter-js/app-migration-guide.txt

+ 9 - 2
Dockerfile

@@ -24,8 +24,15 @@ COPY package*.json ./
 COPY . .
 
 # Install node modules
-RUN npm cache clean --force \
-    && npm ci
+RUN npm cache clean --force && \
+    for i in 1 2 3; do \
+        npm ci && break || \
+        if [ $i -lt 3 ]; then \
+            sleep 15; \
+        else \
+            exit 1; \
+        fi; \
+    done
 
 # Run the build command if necessary
 RUN cd src/gui && npm run build && cd -

+ 0 - 12
src/puter-js/app-migration-guide.txt

@@ -1,12 +0,0 @@
-all UI function calls from puter should be in the form `puter.ui.<function>`
-    e.g. `puter.showOpenFilePicker` becomes `puter.ui.showOpenFilePicker`
-
-puter.FileSystem.<function> -> puter.fs.<function>
-puter.Router.<function> -> puter.router.<function>
-puter.Apps.<function> -> puter.apps.<function>
-
-puter.setItem -> puter.kv.set
-puter.getItem -> puter.kv.get
-puter.removeItem -> puter.kv.del
-puter.createCloudItem(...) -> new puter.CloudItem(...)
-puter.router.* -> puter.hosting.*