{"id":220,"date":"2019-02-03T21:38:17","date_gmt":"2019-02-03T20:38:17","guid":{"rendered":"http:\/\/blog.xoupix.fr\/?p=220"},"modified":"2019-02-03T21:38:19","modified_gmt":"2019-02-03T20:38:19","slug":"ibm-content-search-services-in-a-docker-container-yes","status":"publish","type":"post","link":"https:\/\/blog.xoupix.fr\/index.php\/2019\/02\/03\/ibm-content-search-services-in-a-docker-container-yes\/","title":{"rendered":"IBM Content Search Services in a docker container ? Yes !"},"content":{"rendered":"\n<p>What about configuring and deploying IBM Content Search Services in a docker container ? Let&#8217;s see how to do this !<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">The DockerFile<\/h2>\n\n\n\n<p>I will use the following docker file :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FROM centos:7\n\nADD css \/tmp\/css\nRUN yum install -y telnet net-tools\nRUN \/tmp\/css\/5.5.0.0-P8CSS-LINUX64.bin -i silent -f \/tmp\/css\/css_silent_install.txt\nRUN \/opt\/IBM\/ContentSearchServices\/CSS_Server\/bin\/configTool.sh set -system -configPath \/opt\/IBM\/ContentSearchServices\/CSS_Server\/config -securePort 8199\n\nEXPOSE 8191 8199\nCOPY css_start.sh \/opt\/IBM\/ContentEngine\/start.sh\nRUN chmod 755 \/opt\/IBM\/ContentEngine\/start.sh\nENTRYPOINT [\"\/opt\/IBM\/ContentEngine\/start.sh\"]<\/code><\/pre>\n\n\n\n<p>Detailed command line :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FROM centos:7\n\nADD css \/tmp\/css\nRUN yum install -y telnet net-tools<\/code><\/pre>\n\n\n\n<p>Declaring a new container based on CentOS 7, adding IBM Content Search Services binaries directory in \/tmp\/css, and installing some usefull tools as netstat or telnet.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RUN \/tmp\/css\/5.5.0.0-P8CSS-LINUX64.bin -i silent -f \/tmp\/css\/css_silent_install.txt\nRUN \/opt\/IBM\/ContentSearchServices\/CSS_Server\/bin\/configTool.sh set -system -configPath \/opt\/IBM\/ContentSearchServices\/CSS_Server\/config -securePort 8199<\/code><\/pre>\n\n\n\n<p>Installing IBM Content Search Services in the newly created container, and configuring it to listen on secured port.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>EXPOSE 8191 8199\nCOPY css_start.sh \/opt\/IBM\/ContentEngine\/start.sh\nRUN chmod 755 \/opt\/IBM\/ContentEngine\/start.sh\nENTRYPOINT [\"\/opt\/IBM\/ContentEngine\/start.sh\"]<\/code><\/pre>\n\n\n\n<p>Exposing ports 8191 and 8199, copying the startup script in the container, setting rights, and set the container entry point.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The silent installation file<\/h2>\n\n\n\n<p>Classic installation file, already used in <a href=\"https:\/\/blog.xoupix.fr\/index.php\/2019\/01\/18\/installing-ibm-content-search-services-with-secured-port\/\">https:\/\/blog.xoupix.fr\/index.php\/2019\/01\/18\/installing-ibm-content-search-services-with-secured-port\/.<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># IBM Content Search Services Silent Installer Configuration\n#\nLICENSE_ACCEPTED=true\nUSER_INSTALL_DIR=\/opt\/IBM\/ContentSearchServices\nSERVER_INSTALL_DIR=\/opt\/IBM\/ContentSearchServices\/CSS_Server\nUSER_INPUT_RESULT_SEED=\nUSER_INPUT_RESULT_PORT=8191\nUSER_INPUT_MAX_HEAP_SIZE=4000<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">The startup script<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n\n\/opt\/IBM\/ContentSearchServices\/CSS_Server\/bin\/startup.sh\ntail -f \/dev\/null<\/code><\/pre>\n\n\n\n<p>Executing IBM Content Search Services, and tailing \/dev\/null file to keep the container up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Finally<\/h2>\n\n\n\n<p>Your platform is ready to handle IBM Content Search Services in a docker container, exposing services on ports 8191 and 8199. Don&#8217;t forget to mount your Index Area directories in the docker container, by stopping and starting it again, to keep your files up to date.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What about configuring and deploying IBM Content Search Services in a docker container ? Let&#8217;s see how to do this !<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":2,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions\/223"}],"wp:attachment":[{"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}