{"id":38848006,"url":"https://github.com/ictsc/ictsc-rikka","last_synced_at":"2026-01-17T14:08:23.608Z","repository":{"id":65810092,"uuid":"377820932","full_name":"ictsc/ictsc-rikka","owner":"ictsc","description":"score-server backend in ictsc","archived":false,"fork":false,"pushed_at":"2024-11-05T12:43:43.000Z","size":362,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-16T00:42:12.059Z","etag":null,"topics":["docker","docker-compose","go","golang","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ictsc.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}},"created_at":"2021-06-17T12:20:50.000Z","updated_at":"2024-11-05T12:43:47.000Z","dependencies_parsed_at":"2023-12-02T06:24:37.619Z","dependency_job_id":"55354ab1-500f-46d2-87c5-1b874c6e4e37","html_url":"https://github.com/ictsc/ictsc-rikka","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ictsc/ictsc-rikka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ictsc%2Fictsc-rikka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ictsc%2Fictsc-rikka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ictsc%2Fictsc-rikka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ictsc%2Fictsc-rikka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ictsc","download_url":"https://codeload.github.com/ictsc/ictsc-rikka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ictsc%2Fictsc-rikka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","go","golang","redis"],"created_at":"2026-01-17T14:08:22.873Z","updated_at":"2026-01-17T14:08:23.602Z","avatar_url":"https://github.com/ictsc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ictsc-rikka\n\nscore-server backend in ictsc 2021 summer.\n\n## development\n\n`docker-compose`と`make`を利用して開発することができます。\n\n### 設定ファイル\n\n設定ファイルは`cmd/rikka`以下に作成します。\n`config.yaml`、`config.docker.yaml`は`.gitignore`で指定されているため、`config.yaml.example`を元に作成して下さい。\n\n```\n# 設定ファイルの例\ncmd/rikka/config.yaml.example\n\n# make run(ローカル実行時)に使用します\ncmd/rikka/config.yaml\n\n# make run-docker(docker実行時)に使用します\ncmd/rikka/config.docker.yaml\n```\n\n### Docker での開発\n\n#### 初回\n\n`.env` をコピーし `.env.dev` を作成します\n\n```\ncp .env .env.dev\n```\n\ndocker を起動しデータベースを初期化します\n\n```\nmake up\nmake mariadb-reset-db\n```\n\n### テスト環境の作成\n\n`scripts/test_seed.sql` が実施されデータが投入された状態で起動します\n\n```\ncp scripts/docker-compose.override.yml .\nmake up\n```\n\n### compose.yml\n\n| service | image           | 用途        | 永続化                    |\n|---------|-----------------|-----------|------------------------|\n| rikka   | golang:1.16     | API       | なし                     |\n| mariadb | mariadb:10.5.10 | データベース    | mariadb:/var/lib/mysql |\n| redis   | redis:6.2.4     | session 用 | なし                     |\n| go      | golang:1.16     | 開発時実行用    | go-pkg:/go/pkg         |\n\n### Makefile\n\n以下のコマンドが使えます。\n\n```\n# ローカルでgo run実行\nmake run\n\n# docker composeでgo run実行（非推奨）\nmake run-docker\n\n# docker compose ps\nmake ps\n\n# api, mariadb, redisを起動\nmake up\n\n# api, mariadb, redis, goのコンテナとネットワークを削除\nmake down\n\n# go build\nmake build\n\n# go test\nmake test\n\n# go generate\nmake generate\n\n# mariadbにmysqlコマンドでログイン\nmake mariadb\n\n# データベースのリセット(drop -\u003e create)\nmake mariadb-reset-db\n\n# redis-cliを起動\nmake redis-cli\n\n# 自己署名証明書の作成\nmake self-signed-cert-and-key\n```\n\n## deploy\n\n### Docker でのデプロイ\n\n`.env` をコピーし `.env.prod` を作成します\n\n```\ncp .env .env.prod\n```\n\ndocker を起動しデータベースを初期化します\n\n```\ndocker compose -f compose.yml -f compose.prod.yml --env-file .env.prod up -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fictsc%2Fictsc-rikka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fictsc%2Fictsc-rikka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fictsc%2Fictsc-rikka/lists"}