{"id":2855,"date":"2016-01-15T10:19:08","date_gmt":"2016-01-15T02:19:08","guid":{"rendered":"http:\/\/ellery.no-ip.info\/wp\/thinkingmore\/?p=2855"},"modified":"2016-01-15T10:19:08","modified_gmt":"2016-01-15T02:19:08","slug":"gitlab-ci-multi-runner-%e5%9c%a8-archlinux-%e4%b8%8a%e7%9a%84%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2016\/01\/gitlab-ci-multi-runner-%e5%9c%a8-archlinux-%e4%b8%8a%e7%9a%84%e8%a8%ad%e5%ae%9a\/","title":{"rendered":"gitlab-ci-multi-runner \u5728 archlinux \u4e0a\u7684\u8a2d\u5b9a"},"content":{"rendered":"<p>gitlab-ce \u5230 8.0 \u4ee5\u5f8c\uff0c\u5c31\u628a gitlab-ci \u6574\u9032\u53bb\u4e86\uff0c\u8981\u7528 gitlab-ci \uff0c\u9700\u8981\u5b89\u88dd gitlab-ci-multi-runner\u3002<\/p>\n<p>archlinux AUR \u88e1\u5df2\u7d93\u6709\u4eba\u5305\u9032\u53bb\u4e86\uff1a<\/p>\n<ol>\n<li>\u7528 yaourt -S gitlab-ci-multi-runner \u5b89\u88dd\u3002<\/li>\n<li>\u7528 sudo systemctl enable gitlab-ci-multi-runner \u555f\u7528<\/li>\n<li>\u57f7\u884c gitlab-ci-multi-runner register \u9032\u884c\u8a2d\u5b9a\uff0c\u8a2d\u5b9a\u6642\u6703\u554f\uff1a\n<ol>\n<li>gitlab-ci coordinator URL \uff1a\u8acb\u5230 gitlab \u5c08\u6848\u8a2d\u5b9a\u88e1\u7684 runner \u756b\u9762\u53d6\u5f97<\/li>\n<li>gitlab-ci token for this runner\uff1a\u8ddf\u4e0a\u9762\u4e00\u6a23\uff0c\u5230 gitlab \u5c08\u6848\u8a2d\u5b9a\u88e1\u7684 runner \u756b\u9762\u53d6\u5f97<\/li>\n<li>gitlab-ci description for this runner: \u96a8\u4fbf\u586b\uff0c\u80fd\u8a8d\u5f97\u5c31\u597d<\/li>\n<li>gitlab-ci tags for this runner\uff1a\u96a8\u4fbf\u586b\uff0c\u4e0d\u586b\u5c31\u6309 enter<\/li>\n<li>executor\uff1a\u9019\u908a\u5c31\u770b\u9700\u6c42\uff0c\u6211\u662f\u586b\u4e86 docker<\/li>\n<li>Docker image\uff1a\u61c9\u8a72\u662f\u9078\u4e86 docker \u7684\u95dc\u4fc2\uff0c\u9019\u908a\u9700\u8981\u586b\uff0c\u4e3b\u8981\u662f\u554f\u8981\u4ee5\u54ea\u500b image \u70ba\u57fa\u5e95\uff0cruby \u53ef\u4ee5\u586b ruby:2.1\uff0cpython \u53ef\u4ee5\u586b python:2.7\uff0c\u65e5\u5f8c\u6709\u7528\u5230\u518d\u53bb\u627e\u3002<\/li>\n<li>\u5176\u4ed6\uff1a\u554f mysql, postgresql, redis, mongodb \u8981\u7528\u54ea\u500b\u7248\u672c\u3002<\/li>\n<\/ol>\n<\/li>\n<li>\u8a2d\u5b9a\u5b8c\uff0cgitlab-ci-multi-runner \u670d\u52d9\u6703\u81ea\u52d5\u8f09\u5165\u65b0\u8a2d\u5b9a\uff0c\u4e0d\u653e\u5fc3\u7684\u8a71\uff0c\u7528 sudo systemctl restart gitlab-ci-multi-runner \u91cd\u65b0\u555f\u52d5\u3002<\/li>\n<\/ol>\n<p>\u5230 gitlab \u5c08\u6848\u8a2d\u5b9a\u88e1\u7684 runner \u756b\u9762\u53bb\u770b\uff0c\u61c9\u8a72\u5c31\u6703\u770b\u5230\u525b\u525b\u65b0\u589e\u7684 runner\u3002<\/p>\n<p>\u4f7f\u7528\u4e0a\u53ef\u4ee5\u53c3\u8003\u9019\u7bc7 <a href=\"http:\/\/doc.gitlab.com\/ce\/ci\/quick_start\/README.html\" target=\"_blank\">gitlab ci quickstart<\/a> \u4f86\u505a\uff0c\u5927\u81f4\u5c31\u662f\u5728\u5c08\u6848\u88e1\u65b0\u589e <a href=\"http:\/\/doc.gitlab.com\/ce\/ci\/yaml\/README.html\" target=\"_blank\">.gitlab-ci.yml<\/a> \uff0c\u88cf\u9762\u586b\u597d\u8981\u57f7\u884c\u7684\u6b65\u9a5f\uff0c\u52a0\u5165 repository\u3001\u63d0\u4ea4\u3001push\uff0c\u4e4b\u5f8c\u6bcf\u6b21 push \u6642\uff0c\u5c31\u6703\u57f7\u884c .gitlab-ci.yml \u88e1\u7684\u6b65\u9a5f\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>gitlab-ce \u5230 8.0 \u4ee5\u5f8c\uff0c\u5c31\u628a gitlab-ci \u6574\u9032\u53bb\u4e86\uff0c\u8981\u7528 gitlab-ci \uff0c\u9700\u8981\u5b89\u88dd gitlab-ci-multi-runner\u3002 archlinux AUR \u88e1\u5df2\u7d93\u6709\u4eba\u5305\u9032\u53bb\u4e86\uff1a \u7528 yaourt -S gitlab-ci-multi-runner \u5b89\u88dd\u3002 \u7528 sudo systemctl enable gitlab-ci-multi-runner \u555f\u7528 \u57f7\u884c gitlab-ci-multi-runner register \u9032\u884c\u8a2d\u5b9a\uff0c\u8a2d\u5b9a\u6642\u6703\u554f\uff1a gitlab-ci coordinator URL \uff1a\u8acb\u5230 gitlab \u5c08\u6848\u8a2d\u5b9a\u88e1\u7684 runner \u756b\u9762\u53d6\u5f97 gitlab-ci token for this runner\uff1a\u8ddf\u4e0a\u9762\u4e00\u6a23\uff0c\u5230 gitlab \u5c08\u6848\u8a2d\u5b9a\u88e1\u7684 runner \u756b\u9762\u53d6\u5f97 gitlab-ci description for this runner: \u96a8\u4fbf\u586b\uff0c\u80fd\u8a8d\u5f97\u5c31\u597d gitlab-ci tags for this runner\uff1a\u96a8\u4fbf\u586b\uff0c\u4e0d\u586b\u5c31\u6309 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2016\/01\/gitlab-ci-multi-runner-%e5%9c%a8-archlinux-%e4%b8%8a%e7%9a%84%e8%a8%ad%e5%ae%9a\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;gitlab-ci-multi-runner \u5728 archlinux \u4e0a\u7684\u8a2d\u5b9a&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[133,134,62],"class_list":["post-2855","post","type-post","status-publish","format-standard","hentry","category-idea","tag-gitlab-ce","tag-gitlab-ci","tag-note"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":false,"jetpack_shortlink":"https:\/\/wp.me\/p2MOxp-K3","_links":{"self":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/2855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/comments?post=2855"}],"version-history":[{"count":1,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/2855\/revisions"}],"predecessor-version":[{"id":2856,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/2855\/revisions\/2856"}],"wp:attachment":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/media?parent=2855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/categories?post=2855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/tags?post=2855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}