Merge pull request #572 from HeyPuter/fix-CI-network-issues

retry npm 3 times to account for the flakiness of the process
This commit is contained in:
Nariman Jelveh 2024-07-09 15:14:21 -07:00 committed by GitHub
commit 4e15c5fcf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 14 deletions

View File

@ -24,8 +24,15 @@ COPY package*.json ./
COPY . . COPY . .
# Install node modules # Install node modules
RUN npm cache clean --force \ RUN npm cache clean --force && \
&& npm ci 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 the build command if necessary
RUN cd src/gui && npm run build && cd - RUN cd src/gui && npm run build && cd -

View File

@ -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.*