{"id":11032,"date":"2020-06-26T17:19:03","date_gmt":"2020-06-26T08:19:03","guid":{"rendered":"https:\/\/itport.cloud\/?p=11032"},"modified":"2020-06-29T10:41:59","modified_gmt":"2020-06-29T01:41:59","slug":"post-11032","status":"publish","type":"post","link":"https:\/\/itport.cloud\/?p=11032","title":{"rendered":"(\u7b2c2\u56de)\u3010Oracle Cloud\u3011OKE + FSS\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u306a\u74b0\u5883\u3067ASP.NET Core Web\u30a2\u30d7\u30ea\u3092\u7a3c\u50cd\u3059\u308b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"e79baee6aca1-1\">\u76ee\u6b21<\/h2>\n\n\n\n<p><a href=\"#010\">\u524d\u56de\u306e\u632f\u308a\u8fd4\u308a<\/a><br><a href=\"#020\">\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b<\/a><br><a href=\"#030\">\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3059\u308b<\/a><br><a href=\"#040\">OCI\u30ec\u30b8\u30b9\u30c8\u30ea\u306e\u8a2d\u5b9a<\/a><br><a href=\"#050\">\u4f5c\u696d\u7528\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u6e96\u5099<\/a><br><a href=\"#060\">Docker\u30a4\u30e1\u30fc\u30b8\u3092OCIR\u3078Push<\/a><br><a href=\"#070\">\u4eca\u56de\u306e\u307e\u3068\u3081<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"010\">\u524d\u56de\u306e\u632f\u308a\u8fd4\u308a<\/h2>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-rich is-provider-it-port\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Fb0kGy9ClL\"><a href=\"https:\/\/itport.cloud\/?p=10969\">(\u7b2c1\u56de)\u3010Oracle Cloud\u3011OKE + FSS\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u306a\u74b0\u5883\u3067ASP.NET Core Web\u30a2\u30d7\u30ea\u3092\u7a3c\u50cd\u3059\u308b<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"https:\/\/itport.cloud\/?p=10969&#038;embed=true#?secret=Fb0kGy9ClL\" data-secret=\"Fb0kGy9ClL\" width=\"600\" height=\"338\" title=\"&#8220;(\u7b2c1\u56de)\u3010Oracle Cloud\u3011OKE + FSS\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u306a\u74b0\u5883\u3067ASP.NET Core Web\u30a2\u30d7\u30ea\u3092\u7a3c\u50cd\u3059\u308b&#8221; &#8212; IT PORT\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u524d\u56de\u306f\u7a3c\u50cd\u3055\u305b\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3001ASP.NET Core Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 (MVC)\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306fOCI\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u3092\u767b\u9332\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\uff08\u5b8c\u4e86\uff09<\/li><li><u class=\"remove-format\">\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u30dd\u30ea\u30b7\u30fc\u3092\u8a2d\u5b9a\u3059\u308b<\/u>\u3000<strong>\u2190\u4eca\u56de<\/strong><\/li><li><u class=\"remove-format\">OCI\u30ec\u30b8\u30b9\u30c8\u30ea\u306bDocker\u30a4\u30e1\u30fc\u30b8\u3092\u767b\u9332\u3059\u308b<\/u>\u3000<strong>\u2190\u4eca\u56de<\/strong><\/li><li>File Storage Service\u3092\u8a2d\u5b9a\u3059\u308b<\/li><li>OKE\u3092\u8a2d\u5b9a\u3059\u308b<\/li><li>\u7a3c\u50cd\uff01\u5b8c\u6210\uff01<br><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"020\">\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n\n\n\n<p>OKE\u7528\u306b\u307e\u305a\u306f\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3057\u307e\u3059\u3002<br><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-09_07h31_07.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"496\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-09_07h31_07-1024x496.png\" alt=\"\" class=\"wp-image-11275\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-09_07h31_07-1024x496.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-09_07h31_07-300x145.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-09_07h31_07-768x372.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-09_07h31_07-450x218.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-09_07h31_07-900x436.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-09_07h31_07.png 1154w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u7d9a\u3044\u3066\u3001\u4f5c\u6210\u3057\u305fOKE\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u300c\u8a8d\u8a3c\u30c8\u30fc\u30af\u30f3\u300d\u3092\u751f\u6210\u3057\u307e\u3059\u3002OKE\u304cOCIR\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u306f\u8a8d\u8a3c\u30c8\u30fc\u30af\u30f3\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h07_05.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"253\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h07_05-1024x253.png\" alt=\"\" class=\"wp-image-11057\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h07_05-1024x253.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h07_05-300x74.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h07_05-768x190.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h07_05-450x111.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h07_05-900x222.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h07_05.png 1389w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>\u30c8\u30fc\u30af\u30f3\u306e\u751f\u6210\uff11<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u751f\u6210\u3057\u307e\u3057\u305f\u3089\u30c8\u30fc\u30af\u30f3\u306e\u5185\u5bb9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30c8\u30fc\u30af\u30f3\u306e\u5185\u5bb9\u306f1\u5ea6\u3057\u304b\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u307e\u3059\u3002\uff08\u3082\u3057\u5fd8\u308c\u305f\u5834\u5408\u306f\u30c8\u30fc\u30af\u30f3\u3092\u65b0\u3057\u304f\u751f\u6210\u3057\u306a\u304a\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff09<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h08_29.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"252\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h08_29-1024x252.png\" alt=\"\" class=\"wp-image-11058\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h08_29-1024x252.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h08_29-300x74.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h08_29-768x189.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h08_29-450x111.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h08_29-900x221.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_19h08_29.png 1391w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>\u30c8\u30fc\u30af\u30f3\u306e\u751f\u6210\uff12<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"030\">\u30dd\u30ea\u30b7\u30fc\u3092\u8a2d\u5b9a<\/h2>\n\n\n\n<p>OKE\u3068OCIR\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u30dd\u30ea\u30b7\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u524d\u63d0\u3068\u3057\u3066\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u540d\u306f\u300citport\u300d\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u300citport-user\u300d\u3001\u30b0\u30eb\u30fc\u30d7\u540d\u306f\u300citport-group\u300d\u3068\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\nAllow service OKE to manage all-resources in tenancy\nAllow group itport-group to manage repos in tenancy\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\nAllow group itport-group to manage cluster-family in compartment itport\nAllow group itport-group to manage virtual-network-family in compartment itport\nAllow group itport-group to manage instance-family in compartment itport\nAllow group itport-group to inspect compartments in compartment itport\n<\/pre><\/div>\n\n\n<p>\u203b \u4e0a\u8a18\u306e\u30dd\u30ea\u30b7\u30fc\u306f\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u5185\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406\u6a29\u9650\u306a\u3069\u3092\u4e0e\u3048\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u81ea\u8eab\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u30dd\u30ea\u30b7\u30fc\u3092\u8abf\u6574\u304f\u3060\u3055\u3044\u3002<br>\u30dd\u30ea\u30b7\u30fc\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306f<a rel=\"noreferrer noopener\" aria-label=\"\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/docs.cloud.oracle.com\/ja-jp\/iaas\/Content\/Identity\/Reference\/policyreference.htm\" target=\"_blank\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"040\">OCI\u30ec\u30b8\u30b9\u30c8\u30ea\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u524d\u56de\u4f5c\u6210\u3057\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Docker\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066OCIR\u306b\u767b\u9332\u3059\u308b\u305f\u3081\u4f5c\u696d\u74b0\u5883\u3092\u4f5c\u308a\u307e\u3059\u3002<br>\u307e\u305a\u306f\u3001OCI\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30a2\u30af\u30bb\u30b9\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3092\u9078\u629e\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h19_15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"215\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h19_15-1024x215.png\" alt=\"\" class=\"wp-image-11150\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h19_15-1024x215.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h19_15-300x63.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h19_15-768x161.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h19_15-450x95.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h19_15-900x189.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h19_15.png 1913w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"050\">\u4f5c\u696d\u7528\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u6e96\u5099<\/h2>\n\n\n\n<p>OCI\u306eCompute\u3067\u4f5c\u696d\u7528\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br>OCI\u3067\u306fCompute\u3092\u4f5c\u6210\u6642\u306b\u81ea\u5206\u3067\u30ad\u30fc\u30da\u30a2\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5099\u5fd8\u9332\u3082\u517c\u306d\u3066SSH\u7528\u30ad\u30fc\u30da\u30a2\u4f5c\u6210\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u624b\u5143\u306e\u7aef\u672b\u304cWindows\u306e\u5834\u5408\u3001Windows Subsystem for Linux \u3092\u5229\u7528\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\nssh-keygen -t rsa -N \"\" -b 2048 -C \"<key_name>\" -f <path\/root_name>\n<\/pre><\/div>\n\n\n<p>\u3067\u306f \u30a4\u30e1\u30fc\u30b8\u3092Oracle Linux 7.7 \u306b\u3057\u3066Compute\u3092\u8d77\u52d5\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_16h37_46.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"614\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_16h37_46-1024x614.png\" alt=\"\" class=\"wp-image-11048\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_16h37_46-1024x614.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_16h37_46-300x180.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_16h37_46-768x461.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_16h37_46-450x270.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_16h37_46-900x540.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-03_16h37_46.png 1290w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>\u30b3\u30f3\u30d4\u30e5\u30fc\u30c8\u30fb\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u6210<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u4f5c\u6210\u3055\u308c\u305f\u3089\u3001SSH\u3067\u63a5\u7d9a\u3057\u3066\u3001\u5fc5\u8981\u306a\u7269\u3092\u3069\u3093\u3069\u3093\u5165\u308c\u3066\u3044\u304d\u307e\u3059\u3002<br>\u307e\u305a\u306fdotnet-sdk-3.1\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\uff082020\u5e743\u6708\u6642\u70b9\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u306a\u308a\u307e\u3059\uff09<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\n  sudo rpm -Uvh https:\/\/packages.microsoft.com\/config\/rhel\/7\/packages-microsoft-prod.rpm\n  sudo yum install dotnet-sdk-3.1\n<\/pre><\/div>\n\n\n<p>dotnet-sdk\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u52d5\u304f\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<br>\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3054\u3068\u30bd\u30fc\u30b9\u3092\u30b5\u30fc\u30d0\u30fc\u3078\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u30fc\uff08.cspoj\u304c\u3042\u308b\u968e\u5c64\uff09\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\ndotnet run\n<\/pre><\/div>\n\n\n<p>\u554f\u984c\u306a\u304f\u5b9f\u884c\u3067\u304d\u307e\u3057\u305f\u3002dotnet run\u306f\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002Ctrl + c \u3067\u5b9f\u884c\u304c\u7d42\u4e86\u3055\u308c\u307e\u3059\u3002<br>\u6b21\u306bDocker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u9032\u307f\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\n# docker-ce\nsudo yum-config-manager --add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo\nsudo yum install docker-ce -y\nsudo systemctl enable docker\nsudo systemctl start docker\nsudo usermod -aG docker opc\n<\/pre><\/div>\n\n\n<p>Docker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u30d3\u30eb\u30c9\u3057\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Dockerfile\u304c\u3042\u308b\u5834\u6240\u307e\u3067\u79fb\u52d5\u3057\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\uff08Dockerfile\u306e\u5834\u6240\u306f\u524d\u56de\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u304f\u3060\u3055\u3044\uff09<br><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\ndocker build -t file_upload_web_app .\n<\/pre><\/div>\n\n\n<p>\u30d3\u30eb\u30c9\u304c\u6210\u529f\u3057\u305f\u3089\u6b21\u306fkubectl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\n# kubectl\ncurl -LO https:\/\/storage.googleapis.com\/kubernetes-release\/release\/`curl -s https:\/\/storage.googleapis.com\/kubernetes-release\/release\/stable.txt`\/bin\/linux\/amd64\/kubectl\nchmod +x .\/kubectl\nsudo mv .\/kubectl \/usr\/local\/bin\/kubectl\nmkdir ~\/.kube\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"060\">Docker\u30a4\u30e1\u30fc\u30b8\u3092OCIR\u3078Push<\/h2>\n\n\n\n<p>\u30d3\u30eb\u30c9\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u3092OCIR\u3078Push\u3057\u307e\u3059\u3002\u30ec\u30b8\u30b9\u30c8\u30ea\u306b\u767b\u9332\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u306f\u5f8c\u3005OKE\u3067\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; notranslate\" title=\"\">\n# OCIR\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\ndocker login nrt.ocir.io\n\n#\u30d3\u30eb\u30c9\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u306eID\u3092\u78ba\u8a8d\u3057\u307e\u3059\ndocker images\n\n#\u30a4\u30e1\u30fc\u30b8\u306b\u30bf\u30b0\u3092\u4ed8\u3051\u307e\u3059\ndocker tag &lt;IMAGE ID> nrt.ocir.io\/&lt;tenancy-namespace>\/file_upload_web_app:v01\n\n#\u30a4\u30e1\u30fc\u30b8\u3092OCIR\u3078Push\u3057\u307e\u3059\ndocker push nrt.ocir.io\/&lt;tenancy-namespace>\/file_upload_web_app:v01\n<\/pre><\/div>\n\n\n<p>OCI\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u306eOCIR\u30b5\u30fc\u30d3\u30b9\u306e\u753b\u9762\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u304c\u53cd\u6620\u3055\u308c\u3066\u304a\u308a\u307e\u3057\u305f\u3002<br><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h56_11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"226\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h56_11-1024x226.png\" alt=\"\" class=\"wp-image-11152\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h56_11-1024x226.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h56_11-300x66.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h56_11-768x169.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h56_11-450x99.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h56_11-900x199.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2020\/04\/2020-04-06_12h56_11.png 1913w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>OCI\u30b3\u30f3\u30bd\u30fc\u30eb OCIR\u753b\u9762<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"070\">\u4eca\u56de\u306e\u307e\u3068\u3081<\/h2>\n\n\n\n<p>ASP.NET Core\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Docker\u306e\u30a4\u30e1\u30fc\u30b8\u306b\u3057\u3001OCIR\u306bPush\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u51fa\u6765\u307e\u3057\u305f\u3002<br>docker build \u30b3\u30de\u30f3\u30c9\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u306f\u3001dotnet-sdk\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u9055\u3044\u3084\u3001\u30d3\u30eb\u30c9\u5b9f\u884c\u6642\u306e\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u8aa4\u3063\u3066\u304a\u308a\u3001Dockerfile\u5185\u306b\u8a18\u8f09\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u304c\u901a\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3054\u81ea\u8eab\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><li><a href=\"https:\/\/itport.cloud\/?p=10969\">(\u7b2c1\u56de)\u3010Oracle Cloud\u3011OKE + FSS\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u306a\u74b0\u5883\u3067ASP.NET Core Web\u30a2\u30d7\u30ea\u3092\u7a3c\u50cd\u3059\u308b<\/a><\/li><li class=\"current\"><a href=\"https:\/\/itport.cloud\/?p=11032\">(\u7b2c2\u56de)\u3010Oracle Cloud\u3011OKE + FSS\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u306a\u74b0\u5883\u3067ASP.NET Core Web\u30a2\u30d7\u30ea\u3092\u7a3c\u50cd\u3059\u308b<\/a><\/li><li><a href=\"https:\/\/itport.cloud\/?p=11154\">(\u7b2c3\u56de)\u3010Oracle Cloud\u3011OKE + FSS\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u306a\u74b0\u5883\u3067ASP.NET Core Web\u30a2\u30d7\u30ea\u3092\u7a3c\u50cd\u3059\u308b<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"\u76ee\u6b21 \u524d\u56de\u306e\u632f\u308a\u8fd4\u308aFSS\u3092\u4f5c\u6210\u3059\u308bOKE\u3092\u8a2d\u5b9a\u3059\u308bkubectl\u3092\u8a2d\u5b9a\u3059\u308bDeployment\u30de\u30cb\u30e5\u30d5\u30a7\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308bService\u30de\u30cb\u30e5\u30d5\u30a7\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308bFSS\u7528\u306e\u30de\u30cb\u30e5\u30d5\u30a7\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308bOKE\u30af\u30e9\u30b9\u30bf\u30fc\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\u3055\u3044\u3054\u306b \u524d\u56de\u306e\u632f\u308a\u8fd4\u308a https:\/\/itport.cloud\/?p=11032 \u4eca\u56de\u304c\uff13\u56de\u76ee\u3068\u3044\u3046\u3053\u3068\u3067\u3001Oracle Cloud\u306eOKE\u3068FSS\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u3092\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u3064\u3044\u306b\u4eca\u56de\u3067\u5b8c\u6210\u3057\u307e\u3059\u3002 \u524d\u56de\u307e\u3067\u306fASP.NET Core MVC\u3067Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057docker build\u3067\u4f5c\u6210\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u3092OCIR\u306bPush\u3057\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u4f5c\u696d\u7528\u306e&hellip;","protected":false},"author":3,"featured_media":11035,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[72],"class_list":{"0":"post-11032","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-oraclecloud","8":"tag-season24"},"_links":{"self":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/11032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11032"}],"version-history":[{"count":71,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/11032\/revisions"}],"predecessor-version":[{"id":11951,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/11032\/revisions\/11951"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/media\/11035"}],"wp:attachment":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}