{"id":300,"date":"2021-06-14T00:01:48","date_gmt":"2021-06-13T15:01:48","guid":{"rendered":"https:\/\/blog.u7gi.net\/?p=300"},"modified":"2021-08-07T17:10:44","modified_gmt":"2021-08-07T08:10:44","slug":"gitea%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97","status":"publish","type":"post","link":"https:\/\/u7gi.com\/?p=300","title":{"rendered":"Gitea\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7"},"content":{"rendered":"\n<p>Gitea \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u5099\u5fd8\u9332\u3068\u3057\u3066\u624b\u9806\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002Gitea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u306e\u306f\u3001GitLab\u3092\u5c0e\u5165\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u975e\u529b\u306aPC\u3067\u306f\u91cd\u305f\u304f\u3066\u52d5\u4f5c\u3057\u306a\u304b\u3063\u305f\u305f\u3081\u8efd\u91cf\u306aGit\u30b5\u30fc\u30d0\u3068\u3057\u3066Gitea\u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\u521d\u56de\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306et\u624b\u9806\u306f\u3001\u6b8b\u305b\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u624b\u9806\u3068\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Gitea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u306f\u3001CentOS 7\u3067\u3001\u66f4\u65b0\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ gitea --version\nGitea version 1.9.3 built with GNU Make 3.82, go1.11.5 : bindata, sqlite, sqlite_unlock_notify\n<\/pre><\/div>\n\n\n<p>Gitea\u306e\u30b5\u30a4\u30c8\uff08https:\/\/docs.gitea.io\/\uff09\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u306b\u5f93\u3044\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002\u30d0\u30a4\u30ca\u30ea\u304b\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ .\/gitea-1.9.3-linux-amd64\nFATAL: kernel too old\nAborted\n<\/pre><\/div>\n\n\n<p>OpneVZ\u7cfb\u306eVPS\u30b5\u30fc\u30d0\u3067\u306f\u30ab\u30fc\u30cd\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<h3 class=\"wp-block-heading\">\u30d3\u30eb\u30c9\u524d\u6e96\u5099<\/h3>\n\n\n\n<p>\u5bfe\u5fdc\u6642\u70b9\u3067\u306f\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30d3\u30eb\u30c9\u74b0\u5883\u306e\u6761\u4ef6\u306f\u3001\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\" id=\"block-d8b21dec-d3d6-4c5c-8625-4f76c2e596bc\"><li>go 1.14 \u4ee5\u4e0a<\/li><li>node&nbsp;12.17 \u4ee5\u4e0a<\/li><li>make<\/li><\/ul>\n\n\n\n<p>\u4e0b\u8a18\u306e\u901a\u308a\u3001node \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u4ee5\u5916\u306f\u3001\u6761\u4ef6\u3092\u6e80\u305f\u305b\u3066\u3044\u305f\u306e\u3067\u3001node\u3060\u3051\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ go version\ngo version go1.15.5 linux\/amd64\n$ node --version\nv0.10.21\n$ make --version\nGNU Make 3.82\nBuilt for x86_64-redhat-linux-gnu\nCopyright (C) 2010  Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n<\/pre><\/div>\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<p>node&nbsp;\u306f\u3001&nbsp;nvm&nbsp;\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p>https:\/\/github.com\/nvm-sh\/nvm&nbsp;\u3092\u53c2\u8003\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002\u4e00\u5fdc\u3001nvm\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u3082\u542b\u3081\u3066\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>nvm\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li><\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.38.0\/install.sh | bash\n<\/pre><\/div>\n\n\n<p> 2. nvm\u30b3\u30de\u30f3\u30c9\u306ePATH\u3092\u901a\u3059<\/p>\n\n\n\n<p>.bashrc \u306b\u4e0b\u8a18\u306e\u5185\u5bb9\u3092\u8ffd\u8a18\u3057\u3001\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nexport NVM_DIR=&quot;$HOME\/.nvm&quot;\n&#x5B; -s &quot;$NVM_DIR\/nvm.sh&quot; ] &amp;&amp; \\. &quot;$NVM_DIR\/nvm.sh&quot;  # This loads nvm\n&#x5B; -s &quot;$NVM_DIR\/bash_completion&quot; ] &amp;&amp; \\. &quot;$NVM_DIR\/bash_completion&quot;  # This loads nvm bash_completion\n<\/pre><\/div>\n\n\n<p>\u518d\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u304b\u3001source\u30b3\u30de\u30f3\u30c9(<code>source $HOME\/.bashrc<\/code>)\u3067\u3001PATH\u8a2d\u5b9a\u3092\u53cd\u6620\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>3. LTS\u30d0\u30fc\u30b8\u30e7\u30f3\u306enode\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ nvm install --lts\n$ nvm alias default &quot;lts\/*&quot;\n$ node --version\nv14.17.0\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Gitea\u306e\u30d3\u30eb\u30c9<\/h3>\n\n\n\n<p>Gitea\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3057\u3001\u30d3\u30eb\u30c9\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ git clone https:\/\/github.com\/go-gitea\/gitea\n$ cd gitea\n$ git checkout -b v1.14.2 v1.14.2\n$ TAGS=&quot;bindata sqlite sqlite_unlock_notify&quot; make build\n<\/pre><\/div>\n\n\n<p>\u30d3\u30eb\u30c9\u4e2d\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066NG\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;--- Last few GCs ---&gt;\n\n&#x5B;19126:0x5e3f270]   853596 ms: Mark-sweep (reduce) 509.4 (513.7) -&gt; 509.0 (515.2) MB, 3292.9 \/ 0.0 ms  (average mu = 0.130, current mu = 0.022) allocation failure scavenge might not succeed\n\n\n&amp;lt;--- JS stacktrace ---&gt;\n\nFATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory\n 1: 0xa222f0 node::Abort() &#x5B;webpack]\n 2: 0x96411f node::FatalError(char const*, char const*) &#x5B;webpack]\n 3: 0xb97f1e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) &#x5B;webpack]\n 4: 0xb98297 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) &#x5B;webpack]\n 5: 0xd52fd5  &#x5B;webpack]\n 6: 0xd83bbe v8::internal::EvacuateNewSpaceVisitor::Visit(v8::internal::HeapObject, int) &#x5B;webpack]\n 7: 0xd8fbf6 v8::internal::FullEvacuator::RawEvacuatePage(v8::internal::MemoryChunk*, long*) &#x5B;webpack]\n 8: 0xd7bd8f v8::internal::Evacuator::EvacuatePage(v8::internal::MemoryChunk*) &#x5B;webpack]\n 9: 0xd7c008 v8::internal::PageEvacuationTask::RunInParallel(v8::internal::ItemParallelJob::Task::Runner) &#x5B;webpack]\n10: 0xd6e8e9 v8::internal::ItemParallelJob::Run() &#x5B;webpack]\n<\/pre><\/div>\n\n\n<p>heap\u306e\u30b5\u30a4\u30ba\u3092\u74b0\u5883\u5909\u6570\u3067\u8a2d\u5b9a\u3057\u3066\u518d\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ export NODE_OPTIONS=&quot;--max-old-space-size=2048&quot;\n$ TAGS=&quot;bindata sqlite sqlite_unlock_notify&quot; make build\n<\/pre><\/div>\n\n\n<p>\u4eca\u56de\u306f\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u305f\u3081\u3001\u30d3\u30eb\u30c9\u304c\u6210\u529f\u3057\u305f\u3089\u3001gitea\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u5dee\u3057\u66ff\u3048\u3066\u7d42\u4e86\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ .\/gitea --version\nGitea version 1.14.2 built with GNU Make 3.82, go1.15.5 : bindata, sqlite, sqlite_unlock_notify\n$ sudo systemctl stop gitea.service\n$ sudo mv \/usr\/locak\/bin\/gitea \/usr\/local\/bin\/gitea.v1.9.3\n$ sudo cp gitea \/usr\/local\/bin\n$ sudo systemctl restart gitea.service\n<\/pre><\/div>\n\n\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u3001Gitea\u306e\u30b5\u30a4\u30c8\u3092\u8868\u793a\u3057\u3066\u3001\u30b5\u30a4\u30c8\u4e00\u756a\u4e0b\u306b\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u8868\u8a18\u304c\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f4\u65b0\u3055\u308c\u3066\u3044\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/u7gi.net\/wp-content\/uploads\/2021\/06\/image.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/u7gi.net\/wp-content\/uploads\/2021\/06\/image.png\" alt=\"\" class=\"wp-image-313\" width=\"529\" height=\"32\" srcset=\"https:\/\/u7gi.com\/wp-content\/uploads\/2021\/06\/image.png 529w, https:\/\/u7gi.com\/wp-content\/uploads\/2021\/06\/image-300x18.png 300w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gitea \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u5099\u5fd8\u9332\u3068\u3057\u3066\u624b\u9806\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002Gitea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u306e\u306f\u3001GitLab\u3092\u5c0e\u5165\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u975e\u529b\u306aPC\u3067\u306f\u91cd\u305f\u304f\u3066\u52d5\u4f5c\u3057\u306a\u304b\u3063\u305f\u305f\u3081\u8efd\u91cf\u306aGit\u30b5\u30fc\u30d0\u3068\u3057\u3066 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-300","post","type-post","status-publish","format-standard","hentry","category-centos"],"_links":{"self":[{"href":"https:\/\/u7gi.com\/index.php?rest_route=\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/u7gi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/u7gi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/u7gi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/u7gi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=300"}],"version-history":[{"count":16,"href":"https:\/\/u7gi.com\/index.php?rest_route=\/wp\/v2\/posts\/300\/revisions"}],"predecessor-version":[{"id":375,"href":"https:\/\/u7gi.com\/index.php?rest_route=\/wp\/v2\/posts\/300\/revisions\/375"}],"wp:attachment":[{"href":"https:\/\/u7gi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/u7gi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/u7gi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}