Fedora31安裝docker與青島大學online judge

原本要將青島大學online judge安裝到FreeBSD上,發現FreeBSD可以安裝docker-machine,可以使用virtual載入iso的作業系統,但無法啟動docker服務,載入青島大學online judge,發現目前FreeBSD並未支援,所以只好回到Fedora。

Step1)安裝docker

#dnf install moby-engine docker-compose

Step2)Fedora31從cgroup2降回cgroup1

#dnf install -y grubby

#grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"

#reboot

Step3)安裝青島大學Online Judge(docker版本)

#git clone -b 2.0 https://github.com/QingdaoU/OnlineJudgeDeploy.git && cd OnlineJudgeDeploy

#docker-compose up -d

Step4)使用瀏覽器連線80port或443port,就可以看到青島大學Online Judge

參考資料

(1)安裝Docker

https://linuxconfig.org/how-to-install-docker-on-fedora-31

(2)青島大學OnlineJudge

https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0