From 6bf751cba9cc9d1cda9e3e1a7500d7369b5e5ed2 Mon Sep 17 00:00:00 2001 From: Shura Date: Tue, 12 Apr 2016 13:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BAUbuntu=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ubuntu-run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ubuntu-run.sh diff --git a/ubuntu-run.sh b/ubuntu-run.sh new file mode 100644 index 0000000..e87ec4a --- /dev/null +++ b/ubuntu-run.sh @@ -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