mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
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:
commit
4e15c5fcf4
11
Dockerfile
11
Dockerfile
@ -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 -
|
||||||
|
@ -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.*
|
|
Loading…
Reference in New Issue
Block a user