mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
use mirror for downloading
This commit is contained in:
1 parent
3171277252
commit
3c5e51f594
5 files changed
+5
-5
No files matched your search
+1
-1
@@ -70,7 +70,7 @@ pm2 start "./minio server /data/file" --name minio
|
||||
# TODO: install basic addons?
|
||||
echo "Installing Hydro"
|
||||
yarn global add hydrooj @hydrooj/ui-default @hydrooj/hydrojudge
|
||||
wget https://github.com/criyle/go-judge/releases/download/v1.0.5/executorserver-amd64 -O /usr/bin/sandbox_
|
||||
wget https://s3.undefined.moe/file/executor-amd64 -O /usr/bin/sandbox_
|
||||
chmod +x /usr/bin/sandbox_
|
||||
pm2 start "/usr/bin/sandbox_"
|
||||
mkdir ~/.hydro
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ logAndRun('apt-get install -y g++ >/dev/null');
|
||||
|
||||
log.info('正在安装 HydroOJ / Installing HydroOJ');
|
||||
logAndRunWithNvm('yarn global add hydrooj @hydrooj/ui-default @hydrooj/hydrojudge');
|
||||
http.download('https://github.com/criyle/go-judge/releases/download/v1.0.5/executorserver-amd64', '/usr/bin/sandbox');
|
||||
http.download('https://s3.undefined.moe/file/executor-amd64', '/usr/bin/sandbox');
|
||||
exec('chmod +x /usr/bin/sandbox');
|
||||
logAndRunWithNvm('pm2 start sandbox');
|
||||
fs.writefile('/root/.hydro/config.json', JSON.stringify({
|
||||
|
||||
@@ -61,7 +61,7 @@ apt-get install -y g++ >/dev/null
|
||||
# TODO: install basic addons?
|
||||
echo "Installing Hydro"
|
||||
yarn global add hydrooj @hydrooj/ui-default @hydrooj/hydrojudge
|
||||
wget https://github.com/criyle/go-judge/releases/download/v1.0.5/executorserver-amd64 -O /usr/bin/sandbox
|
||||
wget https://s3.undefined.moe/file/executor-amd64 -O /usr/bin/sandbox
|
||||
chmod +x /usr/bin/sandbox
|
||||
pm2 start sandbox
|
||||
mkdir ~/.hydro
|
||||
|
||||
@@ -61,7 +61,7 @@ apt-get install -y g++ >/dev/null
|
||||
# TODO: install basic addons?
|
||||
echo "Installing Hydro"
|
||||
yarn global add hydrooj @hydrooj/ui-default @hydrooj/hydrojudge
|
||||
wget https://github.com/criyle/go-judge/releases/download/v1.0.5/executorserver-amd64 -O /usr/bin/sandbox
|
||||
wget https://s3.undefined.moe/file/executor-amd64 -O /usr/bin/sandbox
|
||||
chmod +x /usr/bin/sandbox
|
||||
pm2 start sandbox
|
||||
mkdir ~/.hydro
|
||||
|
||||
@@ -61,7 +61,7 @@ apt-get install -y g++ >/dev/null
|
||||
# TODO: install basic addons?
|
||||
echo "Installing Hydro"
|
||||
yarn global add hydrooj @hydrooj/ui-default @hydrooj/hydrojudge
|
||||
wget https://github.com/criyle/go-judge/releases/download/v1.0.5/executorserver-amd64 -O /usr/bin/sandbox
|
||||
wget https://s3.undefined.moe/file/executor-amd64 -O /usr/bin/sandbox
|
||||
chmod +x /usr/bin/sandbox
|
||||
pm2 start sandbox
|
||||
mkdir ~/.hydro
|
||||
|
||||
Reference in new issue
Block a user