{"id":16808969,"url":"https://github.com/timakin/miyuki","last_synced_at":"2025-09-10T01:32:25.538Z","repository":{"id":68621655,"uuid":"96618984","full_name":"timakin/miyuki","owner":"timakin","description":"Miyuki bot on GKE","archived":false,"fork":false,"pushed_at":"2017-07-10T22:11:41.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T19:20:28.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/timakin.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":"2017-07-08T12:54:43.000Z","updated_at":"2017-08-09T17:24:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"f64d19e7-3c77-4940-b29b-c79cc835c8e4","html_url":"https://github.com/timakin/miyuki","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fmiyuki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fmiyuki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fmiyuki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fmiyuki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timakin","download_url":"https://codeload.github.com/timakin/miyuki/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244012920,"owners_count":20383689,"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":[],"created_at":"2024-10-13T10:00:29.307Z","updated_at":"2025-03-17T09:44:05.870Z","avatar_url":"https://github.com/timakin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miyuki\nMiyuki bot on GKE\n\n# local\n\n```\n$ go build -o app\n$ ./app\n```\n\n# Setup\n1. download gcloud command\n2. add a hubot configuration to you slack\n\n```\n# Setup a project configuration\n$ gcloud auth login\n$ gcloud components update kubectl\n$ gcloud config set project $PROJECT_ID\n$ gcloud config set compute/region us-west1\n$ gcloud config set compute/zone us-west1-b\n$ gcloud container clusters create miyuki-cluster \\\n      --machine-type f1-micro \\\n      --disk-size=30 \\\n      --num-nodes=3\n$ kubectl get nodes\n$ gcloud container clusters resize miyuki-cluster --size=1\n$ gcloud container clusters get-credentials miyuki-cluster\n$ gcloud container clusters describe miyuki-cluster\n\n# CloudBuild\n$ gcloud container builds submit --config cloudbuild.yaml .\n\n# Deployment\n$ kubectl run pod-miyuki \\\n      --image=gcr.io/$PROJECT_ID/miyuki:latest \\\n      --env=\"BOT_ID=miyuki\" \\\n      --env=\"BOT_TOKEN=$MIYUKI_HUBOT_TOKEN\" \\\n      --env=\"CHANNEL_ID=$MIYUKI_CHANNEL_ID\" \\\n      --port=8080 \\\n      --restart='Always'\n$ kubectl get deployments\n$ kubectl get pods\n$ kubectl exec -it $MIYUKI_POD_NAME /bin/bash\n$ kubectl get service\n$ kubectl expose deployment pod-miyuki --type=\"LoadBalancer\"\n$ kubectl get service\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fmiyuki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimakin%2Fmiyuki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fmiyuki/lists"}