<html><body><div style="font-family: Arial; font-size: 12pt; color: #000000"><div>Your welcome. I really like what I'm seeing. <br><br>I figured out the process. Pull request is complete.</div><div><br></div><div>Patrick</div><div><span name="x"></span><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Marek Posolda" <mposolda@redhat.com><br><b>To: </b>"Patrick V. Madden" <pmadden@tomsawyer.com>, keycloak-user@lists.jboss.org<br><b>Sent: </b>Wednesday, May 28, 2014 3:56:16 PM<br><b>Subject: </b>Re: [keycloak-user] Request to add bindIp setting to pom files referencgin embedmongo-maven-plugin<br><div><br></div><div class="moz-cite-prefix">Thanks for the proposal! Btv. since you already nail it down, would you mind to contribute directly and send a pull request for this change?<br> <br> Marek<br> <br> On 28.5.2014 21:36, Patrick V. Madden wrote:<br></div><blockquote cite="mid:1474709012.108287.1401305810058.JavaMail.zimbra@tomsawyer.com"><div style="font-family: Arial; font-size: 12pt; color: #000000" data-mce-style="font-family: Arial; font-size: 12pt; color: #000000;"><div>Hi,</div><div><br></div><div>I recently added building Keycloak as a Jenkins job that runs on a Windows build machine. I noticed that each time a build is done, we get four Firewall popups requesting to grant access to something related to mongo embedded plugin. I did not see this on my MacBook Pro local build so its a Windows only issue. The problem is it creates a new application name each time it is run so simply adding the access restriction to Windows firewall once doesn't do the trick.</div><div><br></div><div>I tracked it down to pom files that reference the embedmongo-maven-plugin needing to add a <bindIp>127.0.0.1</bindIp> to the plugin configuration.</div><div><br></div><div>There are four pom files that need to be modified:</div><div>audit/mongo/pom.xml</div><div>export-import/export-import-impl/pom.xml</div><div>model/mongo/pom.xml</div><div>testsuite/integration/pom.xml</div><div><br></div><div>There is a very simple pattern. In each pom there is a properties section for keycloak.model.mongo.*</div><div><br></div><div>I added a property for bindIp as follows:</div><div><br></div><div><p style="margin: 0px;" data-mce-style="margin: 0px;"><properties><br> <keycloak.model.mongo.host>localhost</keycloak.model.mongo.host><br> <keycloak.model.mongo.port>27018</keycloak.model.mongo.port><br> <keycloak.model.mongo.db>keycloak</keycloak.model.mongo.db><br> <keycloak.model.mongo.clearOnStartup>true</keycloak.model.mongo.clearOnStartup><br> <strong><keycloak.model.mongo.bindIp>127.0.0.1</keycloak.model.mongo.bindIp></strong><br> </properties></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Then for surefire I added a system property variable as follows:<br> <br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><systemPropertyVariables><br> <keycloak.model.mongo.host>${keycloak.model.mongo.host}</keycloak.model.mongo.host><br> <keycloak.model.mongo.port>${keycloak.model.mongo.port}</keycloak.model.mongo.port><br> <keycloak.model.mongo.db>${keycloak.model.mongo.db}</keycloak.model.mongo.db><br> <keycloak.model.mongo.clearOnStartup>${keycloak.model.mongo.clearOnStartup}</keycloak.model.mongo.clearOnStartup><br> <strong><keycloak.model.mongo.bindIp>${keycloak.model.mongo.bindIp}</keycloak.model.mongo.bindIp></strong><br> </systemPropertyVariables></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">And lastly for the embedmongo-maven-plugin modify the configration as follows:<br> <br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><configuration><br> <port>${keycloak.model.mongo.port}</port><br> <logging>file</logging><br> <logFile>${project.build.directory}/mongodb.log</logFile><br> <strong><bindIp>${keycloak.model.mongo.bindIp}</bindIp></strong><br> </configuration></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">For the audit file replace model with audit.</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">I'm able to build on Windows now without any popups.</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">This will be greatly appreciated if it can be done!</p></div><div><br></div><div><span></span><div><span style="font-family: Arial; font-size: small;" data-mce-style="font-family: Arial; font-size: small;"><span style="font-family: Arial; font-size:
small;" data-mce-style="font-family: Arial; font-size: small;"><span style="font-family: tahoma, 'new
york', times, serif; " data-mce-style="font-family: tahoma, 'new
york', times, serif;"><strong style="background-color: #fdfdfd;" data-mce-style="background-color: #fdfdfd;">Patrick Madden</strong><span style="background-color:
#fdfdfd;" data-mce-style="background-color: #fdfdfd;"> </span><br style="background-color:
#fdfdfd;" data-mce-style="background-color: #fdfdfd;"> <span style="background-color: #fdfdfd;" data-mce-style="background-color: #fdfdfd;">Principal Design Engineer</span><span style="background-color:
#fdfdfd;" data-mce-style="background-color: #fdfdfd;"> </span><br style="background-color:
#fdfdfd;" data-mce-style="background-color: #fdfdfd;"> <strong style="background-color: #fdfdfd;" data-mce-style="background-color: #fdfdfd;"><span class="Object" id="OBJ_PREFIX_DWT1942_com_zimbra_url" style="color: #336699; cursor: pointer;" data-mce-style="color: #336699; cursor: pointer;"><span class="Object" id="OBJ_PREFIX_DWT1946_com_zimbra_url" style="cursor: pointer;" data-mce-style="cursor: pointer;"><span class="Object" id="OBJ_PREFIX_DWT2020_com_zimbra_url" style="cursor: pointer;" data-mce-style="cursor: pointer;"><span class="Object" id="OBJ_PREFIX_DWT2031_com_zimbra_url" style="cursor: pointer;" data-mce-style="cursor: pointer;"><span class="Object" id="OBJ_PREFIX_DWT65_com_zimbra_url" style="cursor: pointer;" data-mce-style="cursor: pointer;"><a href="http://www.tomsawyer.com/" target="_blank" style="color: #336699;
text-decoration: none; cursor: pointer;" data-mce-href="http://www.tomsawyer.com/" data-mce-style="color: #336699; text-decoration: none; cursor: pointer;">Tom Sawyer Software</a></span></span></span></span></span></strong><br style="background-color: #fdfdfd;" data-mce-style="background-color: #fdfdfd;"> </span></span></span></div><div style="background-color: #fdfdfd;" data-mce-style="background-color: #fdfdfd;"><span style="font-family: tahoma, 'new york', times, serif;" data-mce-style="font-family: tahoma, 'new york', times, serif;">1997 El Dorado Avenue</span></div><div><br></div><div style="background-color: #fdfdfd;" data-mce-style="background-color: #fdfdfd;"><span style="font-family: tahoma, 'new york', times, serif;" data-mce-style="font-family: tahoma, 'new york', times, serif;">Berkeley, CA 94707</span></div><div><br></div><div style="background-color: #fdfdfd;" data-mce-style="background-color: #fdfdfd;"><br></div><div style="background-color: #fdfdfd;" data-mce-style="background-color: #fdfdfd;">E-mail: <span style="color: rgb(51, 102, 153);" data-mce-style="color: #336699;"><a href="mailto:pmadden@tomsawyer.com" target="_blank" data-mce-href="mailto:pmadden@tomsawyer.com"><span style="color: rgb(51, 102, 153);" data-mce-style="color: #336699;">pmadden@<span class="Object" id="OBJ_PREFIX_DWT1945_com_zimbra_email" style="color: #336699; cursor: pointer;" data-mce-style="color: #336699; cursor: pointer;"><span class="Object" id="OBJ_PREFIX_DWT1947_com_zimbra_email" style="cursor: pointer;" data-mce-style="cursor: pointer;"><span class="Object" id="OBJ_PREFIX_DWT2021_com_zimbra_email" style="cursor: pointer;" data-mce-style="cursor: pointer;"><span class="Object" id="OBJ_PREFIX_DWT2032_com_zimbra_email" style="cursor: pointer;" data-mce-style="cursor: pointer;"><span class="Object" id="OBJ_PREFIX_DWT66_com_zimbra_email" style="cursor: pointer;" data-mce-style="cursor: pointer;">tomsawyer.com</span></span></span></span></span></span></a></span> </div><div style="background-color: #fdfdfd;" data-mce-style="background-color: #fdfdfd;"><br></div><div><span style="font-family: Arial; font-size: small;" data-mce-style="font-family: Arial; font-size: small;"><span style="font-family: tahoma, 'new york',
times, serif; " data-mce-style="font-family: tahoma, 'new york',
times, serif;"><br> </span></span></div><span></span><br></div></div><br><fieldset class="mimeAttachmentHeader"></fieldset><br><pre>_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org" target="_blank" data-mce-href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank" data-mce-href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre></blockquote><br></div><div><br></div></div></body></html>