{"id":18654455,"url":"https://github.com/tico88612/cms-docker","last_synced_at":"2025-06-29T00:37:56.293Z","repository":{"id":64219846,"uuid":"462958245","full_name":"tico88612/cms-docker","owner":"tico88612","description":"Contest Management System v1.5.dev0 Docker Version","archived":false,"fork":false,"pushed_at":"2023-12-24T06:10:14.000Z","size":42,"stargazers_count":13,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T20:42:11.480Z","etag":null,"topics":["docker","docker-compose","grading-system","programming-competitions","programming-contests"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tico88612.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-24T00:54:07.000Z","updated_at":"2024-11-19T20:45:13.000Z","dependencies_parsed_at":"2025-04-11T17:38:48.476Z","dependency_job_id":"35afca10-c79e-4709-81af-ef30d63f0f54","html_url":"https://github.com/tico88612/cms-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tico88612/cms-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tico88612%2Fcms-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tico88612%2Fcms-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tico88612%2Fcms-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tico88612%2Fcms-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tico88612","download_url":"https://codeload.github.com/tico88612/cms-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tico88612%2Fcms-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262518106,"owners_count":23323301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","grading-system","programming-competitions","programming-contests"],"created_at":"2024-11-07T07:15:27.703Z","updated_at":"2025-06-29T00:37:56.275Z","avatar_url":"https://github.com/tico88612.png","language":"Shell","readme":"# Contest Management System Docker Version\n\nThis version is following [ioi/cms](https://github.com/ioi/cms).\n\n## Support\n\n| System | Support |\n| :--- | :---: |\n| Ubuntu 20.04 | ✅ |\n| Ubuntu 22.04 | ✅, Need to enable cgroup v1 |\n| Windows Subsystem Linux (Ubuntu 22.04) | ✅ |\n| macOS | ⚠️ |\n\nmacOS doesn't support isolate (a.k.a. cmsWorker) running, because cgroups doesn't support macOS.\n\n## Architecture\n\nTBD\n\n## Requirement\n\n### Enable cgroup v1 (Ubuntu 22.04)\n\nContest Management System is used [ioi/isolate](https://github.com/ioi/isolate/) for sandbox, which is not supported cgroup v2 yet.\n\nIn Ubuntu 22.04, cgroup v1 default is not enabled. You need to enable it and reboot.\n\n```bash\n#!/bin/bash\n\necho 'GRUB_CMDLINE_LINUX_DEFAULT=\"${GRUB_CMDLINE_LINUX_DEFAULT} cgroup_enable=memory swapaccount=1 systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false\"' | sudo tee /etc/default/grub.d/70-cgroup-v1.cfg\nsudo update-grub\nsudo reboot\n```\n\nAfter that, you will need to check cgroup v1 is enabled.\n\n```bash\nmount | grep cgroup\n```\n\nThis is success example output.\n\n```\nubuntu@cms:~$ mount | grep cgroup\ntmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755,inode64)\ncgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)\ncgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)\ncgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)\ncgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)\ncgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)\ncgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)\ncgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)\ncgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)\ncgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)\ncgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)\ncgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)\ncgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)\ncgroup on /sys/fs/cgroup/misc type cgroup (rw,nosuid,nodev,noexec,relatime,misc)\ncgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)\n```\n\n### Install Docker\n\nFollow this [manual](https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script) to install Docker.\n\n## Installation\n\n1. Clone this project (include submodules)\n\n```\ngit clone --recursive https://github.com/tico88612/cms-docker.git\n```\n\n2. If you want to change worker number, edit `config/cms.conf` and `docker-compose.yml`\n\n3. Copy `.env.example` to `.env` and edit `CMS_SECRET_KEY`, `CMS_ADMIN_PASSWORD`, `CMS_RANKING_PASSWORD` etc. (Contest has not been created yet, don't touch `CMS_CONTEST_ID` before creating the contest.)\n\n```bash\ncp .env.example .env\nvim .env # Edit .env\n```\n\n4. Build `cms-base:latest` image.\n\n```bash\n# Docker build\ndocker build -f images/cms-base/Dockerfile . -t cms-base:latest\n# If you have install Buildx, you can try this\ndocker buildx build -f images/cms-base/Dockerfile . -t cms-base:latest\n```\n\n5. Up all service\n\n```bash\ndocker compose up -d\n```\n\n6. Login to Admin system \u0026 Create contest.\n\n```\nContest: http://localhost:8888\nAdmin: http://localhost:8889\nRanking: http://localhost:8890\n```\n\n7. Have fun!\n\n## Other \u0026 TO-DO List\n\nPull Request Welcome!\n\n- [ ] GitHub Action Build \u0026 Push Image\n- [ ] Helm Chart Version (Kubernetes)\n\n## Reference project\n\n- [np-overflow/k8s-cms](https://github.com/np-overflow/k8s-cms)\n- [ioi/cms](https://github.com/ioi/cms)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftico88612%2Fcms-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftico88612%2Fcms-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftico88612%2Fcms-docker/lists"}