{"componentChunkName":"component---src-templates-microservices-js","path":"/en/microservices/AddDSStoGISCloudSuite/","result":{"data":{"markdownRemark":{"html":"<h2 id=\"add-dss-to-gis-cloud-suite\"><a href=\"#add-dss-to-gis-cloud-suite\" 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>Add DSS to GIS Cloud Suite</h2>\n<p>After building the DSS, you can add the DSS to GIS Cloud Suite, to unified manage and maintaining with other services. This page is going to introduce how to add the DSS to GIS Cloud Suite. The registry address, namespace, and image name below are examples, please replace them according to your actual environment.</p>\n<h3 id=\"build-the-jar\"><a href=\"#build-the-jar\" 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>Build the JAR</h3>\n<p>Building the ‘DSS_Extend’ directory to a JAR file by Eclipse, and put the JAR in Package\\lib directory.</p>\n<h3 id=\"build-and-push-the-image\"><a href=\"#build-and-push-the-image\" 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>Build and Push the Image</h3>\n<p>Build an image in the ‘Package’ directory:</p>\n<div class=\"gatsby-highlight\" data-language=\"sh\"><pre class=\"gatsby-code-sh\"><code class=\"gatsby-code-sh\">docker build --no-cache -f Dockerfile -t registry.cn-beijing.aliyuncs.com/usersnamespace/iserver_extend_sample:v1 .</code></pre></div>\n<p>Push the image to registry:</p>\n<div class=\"gatsby-highlight\" data-language=\"sh\"><pre class=\"gatsby-code-sh\"><code class=\"gatsby-code-sh\">docker push registry.cn-beijing.aliyuncs.com/usersnamespace/iserver_extend_example:v1</code></pre></div>\n<blockquote>\n<p>Notes:<br>\nThe content <code class=\"gatsby-code-text\">registry.cn-beijing.aliyuncs.com/usersnamespace/iserver_extend_sample:v1</code> in the command need to be replaced by your actual <code class=\"gatsby-code-text\">registry address/namespace/image name:tag</code>.</p>\n</blockquote>\n<h3 id=\"register-dss\"><a href=\"#register-dss\" 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>Register DSS</h3>\n<ol>\n<li>Logs in to GIS Cloud Suite.</li>\n<li>Clicks on <strong>Service Management > Extensions</strong> on the left navigation bar.</li>\n<li>\n<p>Clicks on <strong>ADD Extension</strong> and fills in the following information:</p>\n<ul>\n<li>Extension name: Fills in the name of DSS.</li>\n<li>Image name: Fills in the name of image that built and pushed before. The image name in the example is “registry.cn-beijing.aliyuncs.com/usersnamespace/iserver_extend_sample:v1”.</li>\n</ul>\n</li>\n<li>Clicks on <strong>Add</strong> to finish registering.</li>\n</ol>\n<h3 id=\"publish-dss\"><a href=\"#publish-dss\" 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 DSS</h3>\n<ol>\n<li>Clicks on <strong>Service Management > Service Instance</strong>.</li>\n<li>\n<p>Clicks on <strong>Publish Service</strong>, open <strong>Advanced options</strong> and fills in the configuration information, for example:</p>\n<div class=\"gatsby-highlight\" data-language=\"xml\"><pre class=\"gatsby-code-xml\"><code class=\"gatsby-code-xml\"><span class=\"token prolog\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?></span>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>application</span><span class=\"token punctuation\">></span></span>\n       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>interfaces</span><span class=\"token punctuation\">></span></span>\n                <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>interface</span> <span class=\"token attr-name\">name</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>sample<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">class</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>com.supermap.services.rest.JaxrsServletForJersey<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n                       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>config</span> <span class=\"token attr-name\">class</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>com.supermap.services.rest.JaxrsConfigForJersey<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n                               <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>accessControlAllowOrigin</span><span class=\"token punctuation\">></span></span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>accessControlAllowOrigin</span><span class=\"token punctuation\">></span></span>\n                       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>config</span><span class=\"token punctuation\">></span></span>\n                 <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>interface</span><span class=\"token punctuation\">></span></span>\n       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>interfaces</span><span class=\"token punctuation\">></span></span>\n       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>components</span><span class=\"token punctuation\">></span></span>\n               <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>component</span> <span class=\"token attr-name\">name</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>sampleComponent<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">class</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>com.supermap.sample.SampleComponentImpl<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">providers</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>sampleProvider<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">interfaceNames</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>sample<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n               <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>component</span><span class=\"token punctuation\">></span></span>\n       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>components</span><span class=\"token punctuation\">></span></span>\n       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>providers</span><span class=\"token punctuation\">></span></span>\n               <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>provider</span> <span class=\"token attr-name\">name</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>sampleProvider<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">class</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>com.supermap.sample.SampleProviderImpl<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n                       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>config</span> <span class=\"token attr-name\">class</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>com.supermap.sample.SampleProviderSetting<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n                               <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>message</span><span class=\"token punctuation\">></span></span>iServer Extend Sample Test!<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>message</span><span class=\"token punctuation\">></span></span>\n                       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>config</span><span class=\"token punctuation\">></span></span>\n               <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>provider</span><span class=\"token punctuation\">></span></span>\n       <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>providers</span><span class=\"token punctuation\">></span></span>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>application</span><span class=\"token punctuation\">></span></span></code></pre></div>\n<p>After filling the configuration information, clicks on <strong>Next</strong>.</p>\n<blockquote>\n<p>Notes:<br>\nThe detailed introduction of how to customize the configuration please refer to SuperMap iServer documentation<a href=\"https://help.supermap.com/iServer/zh/tutorial/DevelopGuide/Extend_iServer/Extend_iServer/\" target=\"_blank\">Developmemnt Guid > Extend iServer</a>.</p>\n</blockquote>\n</li>\n<li>Clicks on <strong>Next</strong> in the steps of <strong>Configuration the data</strong>, <strong>Select service type</strong>, and <strong>Configuration service</strong>.</li>\n<li>\n<p>In the step of <strong>Specify the service node</strong>, select <strong>Create a new node</strong>, and fills in the following information:</p>\n<ul>\n<li>Name: The name of service node.</li>\n<li>Node Type: Select the name of node type which is the same as the name of DSS. When the DSS registered successfully, the system will create a new type of node, the name of the node type is the same as the name of your DSS. That is, the name of DSS you filled was “Traffic Route”, select “Traffic Route node” here.</li>\n</ul>\n<p>Clicks on <strong>Publish</strong> when finished.</p>\n</li>\n<li>The DSS will integrate into service instance list if published successfully, you can manage and maintaining the DSS with others service instance.</li>\n</ol>","frontmatter":{"title":"GIS Cloud Suite","next":null,"prev":null},"fields":{"path":"content/microservices/AddDSStoGISCloudSuite.en.md","slug":"/en/microservices/AddDSStoGISCloudSuite/","langKey":"en"}}},"pageContext":{"slug":"/en/microservices/AddDSStoGISCloudSuite/"}}}