hmLoadTopic({
hmKeywords:"",
hmTitle:"Docker",
hmDescription:"Docker version is similar to Linux version.   There are two configuration files, appsettings.json and config.db.  config.db is a sql database file that stores all the data fr",
hmPrevLink:"ws_mac.html",
hmNextLink:"lk_linkarws-operations.html",
hmParentLink:"ws_installation.html",
hmBreadCrumbs:"<a href=\"ws_installation.html\">Installation<\/a>",
hmTitlePath:"Installation > Docker",
hmHeader:"<h1 class=\"p_Heading1\" style=\"page-break-after: avoid;\"><span class=\"f_Heading1\">Docker<\/span><\/h1>\n\r",
hmBody:"<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">Docker version is similar to Linux version. <\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">There are two configuration files, <span style=\"font-style: italic;\">appsettings.json<\/span> and <span style=\"font-style: italic;\">config.db<\/span>.<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\"><span style=\"font-style: italic;\">config.db<\/span> is a sql database file that stores all the data from the generated API, including definitions for the ApiResources, Clients, Identity Resources, ApiKeys, &nbsp;Custom EndPoints, etc. All data from this file can be managed from LinkarWS Manager.<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">appsettings.json is the LinkarWS general settings file. Contains several sections for the web server configuration (Kestrel node) and the configuration of the LinkarWS application (Linkar node). All parameters from this file can be managed from LinkarWS Manager.<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_HeadingHowTo_atoc_\" style=\"page-break-after: avoid;\"><img id=\"TOGGLE0186A1_ICON\" class=\"dropdown-toggle-icon\" style=\"margin:0;width:1.0000rem;height:1.0000rem;border:none\" src=\".\/images\/tog_plus.gif\"\/><span class=\"f_HeadingHowTo_atoc_\" style=\"font-size: 1.00rem; font-family: Arial,Helvetica,sans-serif;\"><a id=\"TOGGLE0186A1_LINK\" class=\"dropdown-toggle\" style=\"font-style: normal; font-weight: normal; color: #000000; letter-spacing: -0.0625rem; background-color: transparent; text-decoration: none;\" href=\"javascript:void(0)\" data-type=\"dropdown\" data-state=\"0\" data-icon=\"TOGGLE0186A1_ICON\" data-src0=\".\/images\/tog_plus.gif\" data-src1=\".\/images\/tog_minus.gif\">Installation<\/a><\/span><\/p>\n\r<div id=\"TOGGLE0186A1\" class=\"dropdown-toggle-body\" style=\"text-align: left; padding: 0 0 0 0; margin: 0 0 0 2.0000rem;display:none\"><table style=\"border:none; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; padding:0; border:none\"><p class=\"p_Normal\">To install LinkarWS Docker version, the first step is downloading the container image to the user\'s Dockers system:<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; docker pull kosday\/linkarws:x.y.z<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-align: center;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">Where x.y.z stand for the corresponding LinkarWS version tag. For example:<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; docker pull kosday\/linkarws:1.0.1<\/span><\/p>\n\r<div class=\"p_Normal\" style=\"text-align: center;\"><div style=\"margin:0 auto 0 auto;width:80%;max-width:3792px;height:auto;\"><img style=\"width:100%;height:auto;border:none\" src=\".\/images\/blank.png\"\/><\/div><\/div>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_HeadingHowTo_atoc_\" style=\"page-break-after: avoid;\"><img id=\"TOGGLE0186A2_ICON\" class=\"dropdown-toggle-icon\" style=\"margin:0;width:1.0000rem;height:1.0000rem;border:none\" src=\".\/images\/tog_plus.gif\"\/><span class=\"f_HeadingHowTo_atoc_\" style=\"font-size: 1.00rem; font-family: Arial,Helvetica,sans-serif;\"><a id=\"TOGGLE0186A2_LINK\" class=\"dropdown-toggle\" style=\"font-style: normal; font-weight: normal; color: #000000; letter-spacing: -0.0625rem; background-color: transparent; text-decoration: none;\" href=\"javascript:void(0)\" data-type=\"dropdown\" data-state=\"0\" data-icon=\"TOGGLE0186A2_ICON\" data-src0=\".\/images\/tog_plus.gif\" data-src1=\".\/images\/tog_minus.gif\">Preparing the execution<\/a><\/span><\/p>\n\r<div id=\"TOGGLE0186A2\" class=\"dropdown-toggle-body\" style=\"text-align: left; padding: 0 0 0 0; margin: 0 0 0 2.0000rem;display:none\"><table style=\"border:none; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; padding:0; border:none\"><p class=\"p_Normal\" style=\"text-align: justify;\">LinkarWS Docker version it\'s a compiled application for Linux installed in the container\'s folder <span style=\"font-style: italic;\">\/usr\/linkarWS<\/span>.<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">Run the application for the first time with the following command:<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; docker run \/it kosday\/linkarws:x.y.z -p 32000:12000<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">Where “x”, “y” and “z” stand for the numbers corresponding to the program version you want to execute.<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">This first execution uses a basic appsettings.json file only with the http access enabled and the following url:<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; http:\/\/*:12000<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">config.db database file is empty at first. To access LinkarWS Manager, enter the following link in a web browser external to the docker:<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\"> &nbsp;  <span style=\"font-style: italic;\"> http:\/\/[IP]:32000<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">[IP] is the IP address or hostname of the machine where the docker is running.<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">Once having configuration files with data, these can be referenced internally through docker execution via -v arguments. For example, if we had these files in <span style=\"font-style: italic;\">\/usr\/docker.data<\/span> folder, the way of running the docker would be:<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; sudo docker run –it kosday\/linkarws:x.y.z -p 32000:12000\\<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-v \/usr\/docker.data\/appsettings.json:\/usr\/linkarWS\/appsettings.json\\<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-v \/usr\/docker.data\/config.db:\/usr\/linkarWS\/config.db<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">In the same way we could include Swagger json files. These are located in <span style=\"font-style: italic;\"> \/usr\/linkarWS\/wwwroot\/swagger\/docs <\/span>folder.<\/p>\n\r<p class=\"p_Normal\" style=\"text-align: justify;\">&nbsp;<\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r"
})
