<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 23, 2017 at 3:24 PM, Victor Silva <span dir="ltr">&lt;<a href="mailto:vfbsilva@gmail.com" target="_blank">vfbsilva@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Folks I&#39;m trying to deploy aerogear on Kubernetes. I&#39;m using the wildfly image from: <a href="https://hub.docker.com/r/aerogear/unifiedpush-wildfly/" target="_blank">https://hub.docker.com/r/aerog<wbr>ear/unifiedpush-wildfly/</a> <br><br>As I have my databases outside of Kubernetes I&#39;ve built  the image as described here:<br><p><code>docker build -t aerogear/unifiedpush-wildfly .<br></code></p><p><code><br></code></p><p>With the following dockerfile:<code><br><a href="https://hub.docker.com/r/aerogear/unifiedpush-wildfly/%7E/dockerfile/" target="_blank">https://hub.docker.com/r/aerog<wbr>ear/unifiedpush-wildfly/~/<wbr>dockerfile/</a><br><br></code>Unfortunately the dockerfile seems to point to an invalid tarball:<br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205hljs-keyword">RUN</span><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash"> curl -L -o /opt/aerogear-unifiedpush-serv<wbr>er-<span class="gmail-m_446073525527783849gmail-m_-5442371271211702205hljs-variable">$UPSVER</span>-dist.tar.gz <a href="https://github.com/aerogear/aerogear-unifiedpush-server/releases/download/" target="_blank">https://github.com/aerogear/ae<wbr>rogear-unifiedpush-server/rele<wbr>ases/download/</a><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205hljs-variable">$UPSVER</span>/aerogear<wbr>-unifiedpush-server-<span class="gmail-m_446073525527783849gmail-m_-5442371271211702205hljs-variable">$UPSVER</span>-<wbr>dist.tar.gz<br><br>So I went to:<br><a href="https://github.com/aerogear/aerogear-unifiedpush-server/releases/" target="_blank">https://github.com/aerogear/ae<wbr>rogear-unifiedpush-server/rele<wbr>ases/</a><br>And got:<br><a href="https://github.com/aerogear/aerogear-unifiedpush-server/releases/download/1.2.0-beta.1/aerogear-unifiedpush-server-1.2.0-beta.1-dist.tar.gz" target="_blank">https://github.com/aerogear/ae<wbr>rogear-unifiedpush-server/rele<wbr>ases/download/1.2.0-beta.1/<wbr>aerogear-unifiedpush-server-1.<wbr>2.0-beta.1-dist.tar.gz</a><br><br>Then tried to deploy the wars getting a ton of errors: <a href="https://pastebin.com/G89f3EpM" target="_blank">https://pastebin.com/G89f3EpM</a><br><br>It
 seems that among other problems a mysql is being deployed on my server 
which makes no sense as I&#39;ve provided the variables in standalone.xml:<br><br></span></span></p><blockquote><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">&lt;connection-url&gt;jdbc:mysql://$<wbr>{env.UNIFIEDPUSH_PORT_3306_TCP<wbr>_ADDR}:${env.UNIFIEDPUSH_PORT_<wbr>3306_TCP_PORT}/${env.UNIFIEDPU<wbr>SH_ENV_MYSQL_DATABASE}?<wbr>useUnicode=true&amp;amp;characterE<wbr>ncoding=UTF-8&lt;/connection-url&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">                       &lt;user-name&gt;${env.UNIFIEDPUSH_E<wbr>NV_MYSQL_USER}&lt;/user-name&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">                       &lt;password&gt;${env.UNIFIEDPUSH_EN<wbr>V_MYSQL_PASSWORD}&lt;/password&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">                     &lt;connection-url&gt;jdbc:mysql://$<wbr>{env.KEYCLOAK_PORT_3306_TCP_AD<wbr>DR}:${env.KEYCLOAK_PORT_3306_<wbr>TCP_PORT}/${env.KEYCLOAK_ENV_<wbr>MYSQL_DATABASE}?useUnicode=<wbr>true&amp;amp;characterEncoding=<wbr>UTF-8&lt;/connection-url&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">                       &lt;user-name&gt;${env.KEYCLOAK_ENV_<wbr>MYSQL_USER}&lt;/user-name&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">                       &lt;password&gt;${env.KEYCLOAK_ENV_M<wbr>YSQL_PASSWORD}&lt;/password&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">            &lt;core-environment&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">            &lt;/core-environment&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">            &lt;recovery-environment socket-binding=&quot;txn-recovery-e<wbr>nvironment&quot; status-socket-binding=&quot;txn-sta<wbr>tus-manager&quot;/&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash">        &lt;socket-binding name=&quot;txn-recovery-environment<wbr>&quot; port=&quot;4712&quot;/&gt;</span></span><br><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash"></span></span></blockquote><p><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash"><br>I&#39;m not sure if the case is related to:</span></span></p><p><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205Dockerfile__dockerfile___3nY5q"><span class="gmail-m_446073525527783849gmail-m_-5442371271211702205bash"><a href="https://issues.jboss.org/projects/AGPUSH/issues/AGPUSH-2117?filter=allopenissues" target="_blank">https://issues.jboss.org/proje<wbr>cts/AGPUSH/issues/AGPUSH-2117?<wbr>filter=allopenissues</a><br></span></span></p><br>Anyone had success deploying in kubernetes?<br><br></div></blockquote><div><br></div><div>The Dockerfile points to a valid tarball; the Dockerfile also copies resources from the local directory into the image in order to setup the mysql connections.</div><div><br></div><div>You can *NOT*  get a working image by copying the Dockerfile on dockerhub to your machine and running `docker build` because you are missing the local files.  If you want to build a dockerfile you can either make your own dockerfile that extends the UPS docker image, or you can clone <a href="https://github.com/jboss-dockerfiles/aerogear">https://github.com/jboss-dockerfiles/aerogear</a>, edit the files as you see fit, and then build from that.</div><div><br></div><div>I don&#39;t think you need to though.  All you need to do is set the environment variables in the standalone.xml file you sent when you perform your docker run.  </div><div><br></div><div>Source : I am running UPS in a Kubernetes POD right now.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><span id="gmail-m_446073525527783849gmail-m_-5442371271211702205expressomail-body-signature"></span></div>
<br>______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
<br></blockquote></div><br></div></div>