创建Ubuntu启动脚本
This commit is contained in:
8
ubuntu-run.sh
Normal file
8
ubuntu-run.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
service docker start
|
||||||
|
service nginx start
|
||||||
|
base_path="/home/"
|
||||||
|
web_server_config="${base_path}OnlineJudge/dockerfiles/oj_web_server/"
|
||||||
|
judger_config="${base_path}OnlineJudge/dockerfiles/judger/"
|
||||||
|
cd $web_server_config && /usr/local/bin/docker-compose up -d
|
||||||
|
cd $judger_config && /usr/local/bin/docker-compose up -d
|
||||||
Reference in New Issue
Block a user