{"id":4787,"date":"2019-12-10T09:00:23","date_gmt":"2019-12-10T00:00:23","guid":{"rendered":"https:\/\/www.ecomottblog.com\/?p=4787"},"modified":"2019-12-11T15:58:48","modified_gmt":"2019-12-11T06:58:48","slug":"singularity%e3%81%a8docker%e3%82%a4%e3%83%a1%e3%83%bc%e3%82%b8%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%8a%e6%89%8b%e8%bb%bdmatplotlib%e7%92%b0%e5%a2%83%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/test.ecomottblog.com\/?p=4787","title":{"rendered":"Singularity\u3068Docker\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u304a\u624b\u8efdMatplotlib\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002<\/p>\n<p><strong>&#8220;\u30a8\u30b3\u30e2\u30c3\u30c8 \u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc10\u65e5\u76ee&#8221;<\/strong> \u62c5\u5f53 \u5ca9\u6d25\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u306f\u30b0\u30e9\u30d5\u751f\u6210\u306b\u306f\u307e\u3063\u3066\u307e\u3059\u3002\uff08\u8272\u3093\u306a\u610f\u5473\u3067\uff09<\/p>\n<p>\u4eca\u56de\u306fMatplotlib\u3092\u4f7f\u3063\u305f\u624b\u8efd\u306a\u30b0\u30e9\u30d5\u4f5c\u6210\u74b0\u5883\u3068\u3057\u3066Singularity\u3092\u4f7f\u3046\u3053\u3068\u3092\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<hr \/>\n<h3>Singularity\u3063\u3066\u4f55\uff1f<\/h3>\n<p>\u3053\u3061\u3089\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\uff08\u4eca\u56de\u306e\u8a18\u4e8b\u306fGPU\u95a2\u4fc2\u306a\u3044\u3067\u3059\uff09<\/p>\n<p><a href=\"https:\/\/www.ecomottblog.com\/?p=3903\">\u300eGPU\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u3059\u3050\u306bdocker\u304b\u3089singularity\u306b\u5207\u308a\u66ff\u3048\u308b\u3079\u304d\u3060\u3068\u601d\u3063\u305f\uff18\u3064\u306e\u3053\u3068\u300f<\/a><\/p>\n<hr \/>\n<p>\u306a\u304a\u3001Singularity\u306e\u5c0e\u5165\u306f\u5b8c\u4e86\u3057\u3066\u3044\u308b\u524d\u63d0\u3067\u3059\u3002<br \/>\n\uff08\u4eca\u56de\u306fWindows10\u4e0a\u306eHyper-V\u306bUbuntu19.10\u3092\u69cb\u7bc9\u3057\u3066\u307e\u3059\uff09<\/p>\n<p>Singularity\u306f\u30b3\u30f3\u30c6\u30ca\u4eee\u60f3\u5316\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u304c\u3001\u540c\u3058\u304f\u30b3\u30f3\u30c6\u30ca\u4eee\u60f3\u5316\u3067\u3042\u308bDocker\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u30b3\u30f3\u30d0\u30fc\u30c8\u3057\u3066\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306fDocker\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089pull\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-20-53.png\" alt=\"\" \/><\/p>\n<p>Singularity\u306f\u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u5b9f\u884c\u3067\u304d\u308b\u306e\u3067\u3001\u4e0a\u8a18\u306e\u56f3\u306e\u3088\u3046\u306b\u307e\u308b\u3067<strong>\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\u3088\u3046\u306b\u6271\u3048\u307e\u3059\u3002<\/strong><\/p>\n<p>\u4eca\u56de\u306f\u30b0\u30e9\u30d5\u4f5c\u6210\u74b0\u5883\u306e\u30d9\u30fc\u30b9\u3068\u3057\u3066Docker Hub\u304b\u3089jupyter notebook\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-36-52.png\" alt=\"\" \/><\/p>\n<p>\u30a4\u30e1\u30fc\u30b8\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u305f\u3089<\/p>\n<pre><code>$ .\/datascience-notebook_latest.sif\n<\/code><\/pre>\n<p>\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-37-25.png\" alt=\"\" \/><br \/>\n(\u2026\u4e2d\u7565\u2026)<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-38-13.png\" alt=\"\" \/><\/p>\n<p>\u3053\u306e\u30a4\u30e1\u30fc\u30b8\u306e\u5834\u5408\u3001jupyter notebook\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u666e\u901a\u306b\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-38-47-e1575938741977.png\" alt=\"\" \/><\/p>\n<p>Singularity\u3067\u306f\u5b9f\u884c\u6642\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u81ea\u52d5\u3067\u30de\u30a6\u30f3\u30c8\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3059\u3067\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-42-28.png\" alt=\"\" \/><\/p>\n<p>\u307e\u305a\u306f\u8a66\u3057\u306b\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u307e\u3057\u305f\u3002<br \/>\n\uff08\u5b9f\u884c\u3067\u304d\u3066\u307e\u3059\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-42-54.png\" alt=\"\" \/><\/p>\n<p>\u3053\u308c\u3092\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b.py\u3067\u3001\u30a4\u30e1\u30fc\u30b8\u3092\u5b9f\u884c\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u306fhello.py\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-43-42.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-44-03.png\" alt=\"\" \/><\/p>\n<p>\u898b\u3048\u3066\u307e\u3059\u306d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-45-34.png\" alt=\"\" \/><\/p>\n<pre><code>$ singularity exec .\/datasience-notebook_latest.sif python .\/hello.py\n<\/code><\/pre>\n<p>Singularity\u3067\u5b9f\u884c\u3059\u308b\u5834\u5408\u3001\u901a\u5e38exec\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30e1\u30fc\u30b8\u30d1\u30b9\u3068\u5b9f\u884c\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\u3059\u308c\u3070\u826f\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u304d\u305f\u306e\u3067\u6b21\u306fnotebook\u3067Matplotlib\u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u3092\u66f8\u3044\u3066\u307f\u307e\u3059\u3002(Matplotlib\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u5229\u7528)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-48-30.png\" alt=\"\" \/><\/p>\n<p>\u6700\u5f8c\u306bsavefig\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-52-10.png\" alt=\"\" \/><\/p>\n<p>notebook\u3067\u751f\u6210\u3057\u305f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3066\u304a\u3044\u3066\u3001\u5148\u7a0b\u3068\u540c\u3058\u3088\u3046\u306b.py\u306b\u5909\u63db\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002(\u30d5\u30a1\u30a4\u30eb\u540d\u306fgraph.py)<\/p>\n<pre><code>$ .\/datasience-notebook_latest.sif python .\/graph.py\n<\/code><\/pre>\n<p>\u4eca\u56de\u306e\u30a4\u30e1\u30fc\u30b8\u306e\u5834\u5408\u3001\u30a4\u30e1\u30fc\u30b8\u3092\u76f4\u63a5\u5b9f\u884c\u3059\u308b\u3068\u304d\u306e\u5f15\u6570\u3067\u5b9f\u884c\u3057\u305f\u3044\u30b3\u30de\u30f3\u30c9\u3092\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u6b63\u78ba\u306b\u306frunscript\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u307e\u3059\u304c\u5272\u611b\uff09<\/p>\n<p>\u30b0\u30e9\u30d5\u753b\u50cf\u306egraph.png\u304c\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2019\/12\/2019-12-09-17-56-47.png\" alt=\"\" \/><\/p>\n<p>\u30d3\u30e5\u30fc\u30ef\u30fc\u3067\u3082\u78ba\u8a8d\u3002<\/p>\n<p>Singularity\u304c\u30ed\u30fc\u30ab\u30eb\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u3057\u3066\u304f\u308c\u308b\u304a\u304b\u3052\u3067\u3001\u624b\u8efd\u306b.py\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u6e21\u3059\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>jupyter notebook\u3068\u540c\u3058\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u751f\u6210\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30d0\u30c3\u30c1\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30b0\u30e9\u30d5\u3092\u4f5c\u308a\u3084\u3059\u3044\u74b0\u5883\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002 &#8220;\u30a8\u30b3\u30e2\u30c3\u30c8 \u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc10\u65e5\u76ee&#8221; \u62c5\u5f53 \u5ca9\u6d25\u3067\u3059\u3002 \u6700\u8fd1\u306f\u30b0\u30e9\u30d5\u751f\u6210\u306b\u306f\u307e\u3063\u3066\u307e\u3059\u3002\uff08\u8272\u3093\u306a\u610f\u5473\u3067\uff09 \u4eca\u56de\u306fMatplotlib\u3092\u4f7f\u3063\u305f\u624b\u8efd\u306a\u30b0\u30e9\u30d5\u4f5c\u6210\u74b0\u5883\u3068\u3057\u3066Sing [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":4820,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,43],"tags":[59,50,56,67,47,55,31],"_links":{"self":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4787"}],"collection":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4787"}],"version-history":[{"count":17,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4787\/revisions"}],"predecessor-version":[{"id":4815,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4787\/revisions\/4815"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/media\/4820"}],"wp:attachment":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}