From 10d77f17aa265c3019c8d5e459392fd2314acaf9 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Tue, 9 Jul 2024 15:12:19 -0700 Subject: [PATCH] retry npm 3 times to account for the flakiness of the process --- Dockerfile | 11 +++++++++-- src/puter-js/app-migration-guide.txt | 12 ------------ 2 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 src/puter-js/app-migration-guide.txt diff --git a/Dockerfile b/Dockerfile index 8a6f8c48..5e41d7a0 100644 --- a/Dockerfile +++ b/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 - diff --git a/src/puter-js/app-migration-guide.txt b/src/puter-js/app-migration-guide.txt deleted file mode 100644 index f1f530ab..00000000 --- a/src/puter-js/app-migration-guide.txt +++ /dev/null @@ -1,12 +0,0 @@ -all UI function calls from puter should be in the form `puter.ui.` - e.g. `puter.showOpenFilePicker` becomes `puter.ui.showOpenFilePicker` - -puter.FileSystem. -> puter.fs. -puter.Router. -> puter.router. -puter.Apps. -> puter.apps. - -puter.setItem -> puter.kv.set -puter.getItem -> puter.kv.get -puter.removeItem -> puter.kv.del -puter.createCloudItem(...) -> new puter.CloudItem(...) -puter.router.* -> puter.hosting.* \ No newline at end of file