-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from UniversalOJ/develop
合并 develop 分支近期更改
- Loading branch information
Showing
36 changed files
with
456 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,15 @@ MAINTAINER MascoSkray <[email protected]> | |
ARG CLONE_ADDFLAG | ||
|
||
WORKDIR /opt | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
#Update apt and install git | ||
RUN apt-get update && apt-get install -y git | ||
RUN apt-get update && apt-get install -y apache2 cmake curl fp-compiler g++ git gnupg libapache2-mod-php libapache2-mod-xsendfile libyaml-dev make mysql-server ntp openjdk-11-jdk openjdk-8-jdk php php-dev php-mbstring php-mysql php-pear php-zip python python3 python3-requests re2c unzip vim wget zip --no-install-recommends | ||
#Clone the latest UOJ Community verison to local | ||
RUN git clone https://github.com/UniversalOJ/UOJ-System.git --depth 1 --single-branch ${CLONE_ADDFLAG} uoj | ||
#Install environment and set startup script | ||
RUN cd uoj/install/bundle && sh install.sh -p && echo "\ | ||
#!/bin/sh\n\ | ||
rm -rf /run/mysqld/*\n\ | ||
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld\n\ | ||
if [ ! -f \"/var/uoj_data/.UOJSetupDone\" ]; then\n\ | ||
cd /opt/uoj/install/bundle && sh install.sh -i\n\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:18.04 | ||
FROM ubuntu:20.04 | ||
MAINTAINER MascoSkray <[email protected]> | ||
ARG CLONE_ADDFLAG | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.conf.json | ||
log/* | ||
!/log/.gitkeep | ||
uoj_judger/builtin/checker/* | ||
!uoj_judger/builtin/checker/*.cpp | ||
!uoj_judger/builtin/checker/*.h | ||
uoj_judger/builtin/judger/* | ||
!uoj_judger/builtin/judger/*.cpp | ||
!uoj_judger/builtin/judger/*.h | ||
uoj_judger/data | ||
uoj_judger/include/uoj_work_path.h | ||
uoj_judger/main_judger | ||
uoj_judger/run/* | ||
!uoj_judger/run/*.cpp | ||
!uoj_judger/run/*.h | ||
uoj_judger/work/* | ||
uoj_judger/result/* | ||
!uoj_judger/work/.gitkeep | ||
!uoj_judger/result/.gitkeep | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
.idea | ||
.php_cs.cache | ||
app/.config.php | ||
app/storage/tmp/* | ||
app/storage/submission/* | ||
app/storage/paste/* | ||
!app/storage/tmp/.gitkeep | ||
!app/storage/submission/.gitkeep | ||
!app/storage/paste/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.