Skip to content

Commit 82bfb39

Browse files
author
Brendan Wang
committed
chore: add install.sh
1 parent b873aba commit 82bfb39

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

instal.sh

-5
This file was deleted.

install.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
DOWNLOAD_URL='https://legacy-s1.apitable.com/docker-compose.tar.gz'
6+
7+
mkdir -p apitable
8+
cd apitable || exit 1
9+
10+
: "${DOWNLOAD_URL?✗ missing env}"
11+
12+
curl -fLo docker-compose.tar.gz "${DOWNLOAD_URL}"
13+
tar -xvzf docker-compose.tar.gz
14+
15+
docker-compose down -v --remove-orphans
16+
for i in {1..50}; do
17+
if docker-compose pull; then
18+
if docker-compose up -d; then
19+
break
20+
fi
21+
fi
22+
sleep 6
23+
done

0 commit comments

Comments
 (0)