Skip to content

Commit ce94722

Browse files
committed
1 parent a703345 commit ce94722

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules
22
*.log
33
.DS_Store
44
.vscode/settings.json
5-
prebuild-is-ready.txt
5+
prebuild-is-ready.txt
6+
prebuild-is-started.txt

.gitpod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ vscode:
2525
- ms-azuretools.vscode-docker
2626

2727
tasks:
28-
- init: rm prebuild-is-ready.txt; npm i -g npm; npm run gitpod-init; docker pull deepf/deeplinks:main; docker run -v $(pwd)/packages/deeplinks:/deeplinks --rm --name links --entrypoint "sh" deepf/deeplinks:main -c "cp -r /snapshots/* /deeplinks/snapshots/ && chown -R 33333:33333 /deeplinks/snapshots/"; (cd packages/deeplinks && npm run snapshot:last); npm install -g concurrently; npm run gitpod-engine; npm cache clean --force; (cd packages/deepcase-app && rm -rf app); (cd packages/deepcase/ && npm run package:build); touch prebuild-is-ready.txt;
28+
- init: ./prebuild.sh
2929
- command: ./wait-for-prebuild.sh && npm run gitpod-start;

prebuild.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
touch prebuild-is-started.txt;
2+
rm prebuild-is-ready.txt;
3+
npm i -g npm;
4+
npm run gitpod-init;
5+
docker pull deepf/deeplinks:main;
6+
docker run -v $(pwd)/packages/deeplinks:/deeplinks --rm --name links --entrypoint "sh" deepf/deeplinks:main -c "cp -r /snapshots/* /deeplinks/snapshots/ && chown -R 33333:33333 /deeplinks/snapshots/";
7+
(cd packages/deeplinks && npm run snapshot:last);
8+
npm install -g concurrently;
9+
npm run gitpod-engine;
10+
npm cache clean --force;
11+
(cd packages/deepcase-app && rm -rf app);
12+
(cd packages/deepcase/ && npm run package:build);
13+
touch prebuild-is-ready.txt;

wait-for-prebuild.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
sleep 2
2+
3+
if [ ! -f prebuild-is-started.txt ]
4+
then
5+
6+
echo "Prebuild force start..."
7+
8+
./prebuild.sh
9+
10+
echo "Prebuild is ready."
11+
exit
12+
13+
fi
14+
115
if [ ! -f prebuild-is-ready.txt ]
216
then
317

0 commit comments

Comments
 (0)