Here's the PR for this: https://github.com/apache/incubator-unomi-site/pull/12
Let me know if there are any changes that need to be made. On Fri, Nov 23, 2018 at 4:53 PM Michael Ghen <m...@mikeghen.com> wrote: > Good idea! Yes, I can get that added in soon, will do a PR > > On Fri, Nov 23, 2018 at 4:26 PM Serge Huber <shu...@apache.org> wrote: > >> Very nice work Michael, should we add this link to the Unomi website ? >> Do you want to do a PR to put it in the resources section ? >> >> cheers, >> Serge... >> On Fri, Nov 23, 2018 at 8:50 PM Michael Ghen <m...@mikeghen.com> wrote: >> > >> > That seemed to do the trick. Thanks, Serge! >> > >> > Here's the repo in case anyone else is looking to run Unomi on Docker: >> > https://github.com/mikeghen/unomi-docker >> > >> > On Fri, Nov 23, 2018 at 2:30 PM Michael Ghen <m...@mikeghen.com> wrote: >> > >> > > Excellent, this looks like what I was trying to find! >> > > >> > > I'm not sure about the KARAF_HOME message either, I think it's >> because I >> > > set KARAF_HOME in the docker file. >> > > >> > > On Fri, Nov 23, 2018 at 2:28 PM Serge Huber <shu...@apache.org> >> wrote: >> > > >> > >> Hello Michael, >> > >> >> > >> It seems there is an issue with the KARAF_HOME variable, not sure >> what >> > >> is going on there. >> > >> >> > >> For Unomi however, it is possible to have it autoStart by using the >> > >> following setting in the setenv script : >> > >> >> > >> export KARAF_OPTS="-Dunomi.autoStart=true" >> > >> >> > >> This will trigger a start of Unomi as soon as Karaf has finished >> > >> initializing. >> > >> >> > >> Regards, >> > >> Serge... >> > >> On Fri, Nov 23, 2018 at 8:08 PM Michael Ghen <m...@mikeghen.com> >> wrote: >> > >> > >> > >> > Hi, >> > >> > >> > >> > I put together this repo with my docker configuration and a docker >> > >> compose >> > >> > example. >> > >> > >> > >> > I'm having an issue now trying to get this running on Kubernetes >> and was >> > >> > hoping someone can help me. I put this "sleep 60" command in the >> entry >> > >> > point script for my docker file between when I start Karaf and >> when I >> > >> issue >> > >> > the "unomi:start" command. In Kubernetes, it seems like this >> doesn't >> > >> work >> > >> > so I'm trying to find a why to wait for Karaf to finish start up >> before >> > >> > starting unomi. >> > >> > >> > >> > My entry point script looks like: >> > >> > >> > >> > #!/bin/sh >> > >> > sed -i >> > >> >> "s/elasticSearchAddresses=localhost:9300/elasticSearchAddresses=${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/g" >> > >> > >> /opt/apache-unomi/etc/org.apache.unomi.persistence.elasticsearch.cfg >> > >> > $KARAF_HOME/bin/start >> > >> > sleep 60 >> > >> > $KARAF_HOME/bin/client "unomi:start" >> > >> > echo "Started Unomi" >> > >> > tail -f $KARAF_HOME/data/log/karaf.log >> > >> > >> > >> > And in the logs I get this: >> > >> > >> > >> > start: Ignoring predefined value for KARAF_HOME >> > >> > client: Ignoring predefined value for KARAF_HOME >> > >> > *Failed to get the session.* >> > >> > Started Unomi >> > >> > >> > >> > The "Failed to get the session." seems to be the client failing to >> > >> connect >> > >> > to Karaf before it's ready? Is there a better way to start Unomi on >> > >> > container startup? I'm new to Karaf and spent the last week >> pouring over >> > >> > the docs looking for something to help with this. I tried to do an >> if >> > >> > statment with bin/status but that wasn't working out. >> > >> >> > > >> >