{"componentChunkName":"component---src-templates-microservices-js","path":"/en/microservices/PublishLocalFiles/","result":{"data":{"markdownRemark":{"html":"<h2 id=\"publish-local-files-by-hostpath\"><a href=\"#publish-local-files-by-hostpath\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Publish Local Files by HostPath</h2>\n<p>The content below is going to introduce how to publish local files as GIS services by the way of HostPath. Please follow the steps:</p>\n<ol>\n<li>Create a GIS Cloud Suite site in SuperMap iManager. GIS Could Suite Creation please refer to <a href=\"../../tutorial/CreateGISMicroService/\">Tutorial > Sites Management > GIS Cloud Suite > GIS Cloud Suite Creation</a>.</li>\n<li>\n<p>Find the id of GIS Cloud Suite site. As the screenshot below, the id of the GIS Cloud Suite site is ‘8’.</p>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/fbf747731c7df0063aa9435a97ff269c/76823/giscloudsuiteIDen.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 840px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 75.71428571428572%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAIAAABr+ngCAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACBklEQVQoz11Sy3LTQBDUn4C01mt39r0ryXYoc8iBcODIleLODe5U8QlcIXFiSEV2viJ/RkvrECdTU+v27PR079jZ78ury6vt9vom5fXNbrvb4ePh7+3tuL8bxzkB9uMeeTjc3wPcjYfDn13Wcl5W1aJMWTJWMMZeM/ahLImxV0XBiiJH5jnqi8WibRqcOUN7nRklo7d99NGZtq64EHVd52XZNc17zgHqqiIiKaUQwhjDOZdERmuAzHz8+vbbr/D5x+rLz/jpu2kqXtdsDl9V0AIo54BgBY9zAKCSUViGzTuxPJdnF7Q8xzwSZKyxztWca629923Loeyds9bFrgshaKVhMBO8Cc5opdq2VVIZY2FPKuWcA03NAbc4g/dIJXGJQzZNkymt+2HAMJTQ3XUd1BJGPdFijNba0K/isNYuam3RA42MCxImCqmJ8FVMtmeEa0yEAiowOdXcUvgVhTX5NSxi7SBL6XpSBrf0GCBDqu97GAGA+FR1g/RL6QYyHtvHM0EWpC0Rrp+RQ4ibzWYYBliAfiJPssqmnkSWZCMZd0pGaGOwXXjGoKNyWEtkfEPao3km00zWjp5H+pESPpJtD9uEnJqPZEW2IxNJPjlPbw7BpwoGHW0fyfaRjHVjmdg2dkbyvzLeqedIeDr9arIdzk5tq2kYpmLnUr3YNv5VJ8r9vO0n2/8AJc2+6ZqzQw4AAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"giscloudsuiteIDen\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/fbf747731c7df0063aa9435a97ff269c/1e088/giscloudsuiteIDen.png\"\n        srcset=\"/iManager_K8S/1014/static/fbf747731c7df0063aa9435a97ff269c/65ed1/giscloudsuiteIDen.png 210w,\n/iManager_K8S/1014/static/fbf747731c7df0063aa9435a97ff269c/d10fb/giscloudsuiteIDen.png 420w,\n/iManager_K8S/1014/static/fbf747731c7df0063aa9435a97ff269c/1e088/giscloudsuiteIDen.png 840w,\n/iManager_K8S/1014/static/fbf747731c7df0063aa9435a97ff269c/76823/giscloudsuiteIDen.png 1038w\"\n        sizes=\"(max-width: 840px) 100vw, 840px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n</li>\n<li>\n<p>Check the storage path(gisDataPath) of local files. As the screenshot below, CherryDataset is the directory of local files which needs to be published, the storage path of CherryDataset is ‘/root/zsj/data’.</p>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/ffcdc8965a6b3922f4c84b4d51561dc3/d9489/localfilespath.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 258px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 31.428571428571427%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAYAAADDl76dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABLklEQVQY02VQ207CQBTkWTHuVSAxMYKlhZa29AatoEG8PPqiJvr//zFMdxNj4sPk3GbPmdmBClKIhwZyW0G8bCHeWpfLDdFUUPMUKskhs7XvF4WfVSXkfQ0VZuzXEMct9PUSAxVlUBlJnSf1tWxryLKA2DcQTzxy2EBPFjDDAEbMYc4ZL4izOxgZwlzO/ewq4sJwxQW81lbuoThwWbWGeKTqfA09jaECcsrSq2MUO85q1jsqjFLHU2EKY7lQB1TWdmyS0JF42EMVDVXTblpAz3KSc2+bS1RvnerdF9C6nibOVX/ULTSzI2z6Axu9w05fYRPmyQdsTCSfsNkXzE1Ha7SnI4IWVehjb9dEv9CjBRWOltDjP5gkjDFjDMPc9D0S/2G8cIrU7QrD72df8w9PwVSqFISfR/sAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"localfilespath\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/ffcdc8965a6b3922f4c84b4d51561dc3/d9489/localfilespath.png\"\n        srcset=\"/iManager_K8S/1014/static/ffcdc8965a6b3922f4c84b4d51561dc3/65ed1/localfilespath.png 210w,\n/iManager_K8S/1014/static/ffcdc8965a6b3922f4c84b4d51561dc3/d9489/localfilespath.png 258w\"\n        sizes=\"(max-width: 258px) 100vw, 258px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n</li>\n<li>Download <a href=\"/iManager_K8S/1014/ad47930599470066d694f83c14ef118b/HostPathGISData.rar\">HostPathGISData.rar</a>.</li>\n<li>\n<p>Unzip HostPathGISData.rar and enter the unzipped folder, open the file named pv-values.yaml. Modify the value of id to the id that you found in step 2, and modify the value of gisDataPath to the storage path that you checked in step 3.</p>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/5d0aee5155cc513f4fac6dd5ca199bc6/6e88f/fillinidandpath.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 562px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 23.809523809523807%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAFCAYAAABFA8wzAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABC0lEQVQY023Oy0rDUBSF4bz/c4gzqyhYUDroBZsIRloV29x6yQmlSVuTnBaa6++xDQji4GPttUZbm44NPkY6rjJ8Mml3DQx9QL/fo9Md0Oo80+/1VB8QBAFRFBGuQ8Lwf5rjzrBthyhNGc49DjLBmm6oqxKoleqUtcpff3ujLtFmMw/PddnEEt1eIVYpEydl81WwTUqiOGcXF+zTGqk2GZfIbYZMqnNX9rscuStJE9Asy8J1bD7FmpY55+rF43a04EKfcve64NKw6ZpL1tYe8ThB3L8j2h8EXQfx8NPfEDcmy+sxvleh+b5PIIT6JkEeC7K84pgpKvO8PimKhtqLY0mRN/chO/dmz7Oabzlkcsz+FnlxAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"fillinidandpath\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/5d0aee5155cc513f4fac6dd5ca199bc6/6e88f/fillinidandpath.png\"\n        srcset=\"/iManager_K8S/1014/static/5d0aee5155cc513f4fac6dd5ca199bc6/65ed1/fillinidandpath.png 210w,\n/iManager_K8S/1014/static/5d0aee5155cc513f4fac6dd5ca199bc6/d10fb/fillinidandpath.png 420w,\n/iManager_K8S/1014/static/5d0aee5155cc513f4fac6dd5ca199bc6/6e88f/fillinidandpath.png 562w\"\n        sizes=\"(max-width: 562px) 100vw, 562px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<blockquote>\n<p>Notes:<br>\nThe values of id and gisDataPath in the screenshot are examples, please replace to your actual values.</p>\n</blockquote>\n</li>\n<li>\n<p>Copy and paste the three files ‘pv-values.yaml’, ‘install-pv.sh’, and ‘pv.yaml’ from HostPathGISData folder to the master node of K8s, then execute the following command:</p>\n<div class=\"gatsby-highlight\" data-language=\"sh\"><pre class=\"gatsby-code-sh\"><code class=\"gatsby-code-sh\">chmod +x install-pv.sh &amp;&amp; ./install-pv.sh</code></pre></div>\n</li>\n<li>When finish installing, after all the services started up, visit the management page. Click on <strong>File Manager</strong> on the left navigation bar, you can see the directory and files from gisDataPath in the File Manager.</li>\n<li>\n<p>Publish the files in the File Manager as GIS services. Publish services please refer to <a href=\"../PublishService/\">Service Management > Service Instances > Publish Services</a>.</p>\n<blockquote>\n<p>Notes:<br>\nWe recommended you to use the directory by read only, to avoid data corruption.</p>\n</blockquote>\n</li>\n</ol>","frontmatter":{"title":"GIS Cloud Suite","next":null,"prev":null},"fields":{"path":"content/microservices/PublishLocalFiles.en.md","slug":"/en/microservices/PublishLocalFiles/","langKey":"en"}}},"pageContext":{"slug":"/en/microservices/PublishLocalFiles/"}}}