summaryrefslogtreecommitdiff
path: root/docker-springboot/prepare_springboot.sh
blob: 558dd769d62cca8e643e10c664a4498574dd7427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

# 初始化变量设定
export set BASEDIR="/root"
export set PROTECTION_DIR="$BASEDIR/realtime_protection"

# 下载git仓库内容
echo https://EnderByEndera:[email protected] > $BASEDIR/.git-credentials
git config --global credential.helper store
git clone https://git.mesalab.cn/EnderByEndera/realtime_protection.git $BASEDIR/realtime_protection

# 启动gradle
cd $PROTECTION_DIR
chmod +x ./gradlew
./gradlew clean