<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Ok, that makes sense. What about the database? Can my app and Keycloak still share the same PostgreSQL gear?</div>
<div class=""><br class="">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Mar 11, 2016, at 06:57, Stian Thorgersen &lt;<a href="mailto:sthorger@redhat.com" class="">sthorger@redhat.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Keycloak isn't an add-on cartridge, it's a standalone cartridge and can't be added onto an existing WildFly application. You need to create a separate Keycloak application.</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On 10 March 2016 at 20:38, Rens Verhage <span dir="ltr" class="">
&lt;<a href="mailto:Rens.Verhage@topicus.nl" target="_blank" class="">Rens.Verhage@topicus.nl</a>&gt;</span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">Maybe I haven’t fully grasped the concepts behind OpenShift. I’d like to run my application in the OpenShift cloud and secure it with Keycloak. My application is already running, using 2 gears. 1 gear has the web-app
 running in WildFly 10, the 2nd gear hosts the PostgreSQL database.
<div class=""><br class="">
</div>
<div class="">I tried adding Keycloak by adding a cartridge to my application like this using&nbsp;<a href="https://github.com/keycloak/openshift-keycloak-cartridge" target="_blank" class="">https://github.com/keycloak/openshift-keycloak-cartridge</a>:</div>
<div class=""><br class="">
</div>
<div class="">rhc add-cartridge&nbsp;<a href="http://cartreflect-claytondev.rhcloud.com/github/keycloak/openshift-keycloak-cartridge" target="_blank" class="">http://cartreflect-claytondev.rhcloud.com/github/keycloak/openshift-keycloak-cartridge</a></div>
<div class=""><br class="">
</div>
<div class="">This results in the following error:</div>
<div class=""><br class="">
</div>
<div class="">The cartridge '<a href="http://cartreflect-claytondev.rhcloud.com/github/keycloak/openshift-keycloak-cartridge'" target="_blank" class="">http://cartreflect-claytondev.rhcloud.com/github/keycloak/openshift-keycloak-cartridge'</a> will be downloaded
 and installed<br class="">
Adding <a href="http://cartreflect-claytondev.rhcloud.com/github/keycloak/openshift-keycloak-cartridge" target="_blank" class="">
http://cartreflect-claytondev.rhcloud.com/github/keycloak/openshift-keycloak-cartridge</a> to application ‘my_app' ... jboss-wildfly-10 already exists in your&nbsp;application</div>
<div class=""><br class="">
</div>
<div class="">It seems logical to me to run my application in WildFly on one gear and Keycloak, also on WildFly, on a second gear. What is best practice to add Keycloak to an existing OpenShift application, also running on WildFly? Should I deploy Keycloak
 in the same WildFly instance?</div>
<div class=""><br class="">
</div>
<div class="">I know the next question is off topic in this list, but I’ll ask it anyway. If I cannot deploy two cartridges based on the same ‘base cartridge’ within the same app, how does OpenShift scale up my application? Isn’t that the same thing?</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class="">Rens Verhage</div>
<div class=""><br class="">
</div>
</div>
<br class="">
_______________________________________________<br class="">
keycloak-user mailing list<br class="">
<a href="mailto:keycloak-user@lists.jboss.org" class="">keycloak-user@lists.jboss.org</a><br class="">
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>