I think you got back to me in another thread. I was able to get this sorted
out, final entry point script:
https://github.com/mikeghen/unomi-docker/blob/master/entrypoint.sh

Also added a wait for ElasticSearch to startup which solved a lot
of problems I was having.

I put out a PR to add a Running Unomi in Docker tutorial to the resources
page BTW: https://github.com/apache/incubator-unomi-site/pull/12

I shared some of the work I've done with Unomi with some of the senior
software engineers on our team and they were impressed with the tool.

On Sat, Dec 1, 2018 at 10:12 AM Serge Huber <shu...@apache.org> wrote:

> Hello Michael,
>
> I thought I had already replied to this question, but you can start
> with the command line parameter :
>
> -Dunomi.autoStart=true
>
> and that way you won't have to wait for the sleep 60 since you won't
> have to issue the unomi:start command anymore.
>
> Regards,
>   Serge...
> On Sat, Nov 17, 2018 at 5:37 PM Michael Ghen <m...@mikeghen.com> wrote:
> >
> > Ok, I believe I resolved my issue by disabling xpack security
> "xpack.security.enabled=false." Is there any way to get a better error
> logging from ES connection failures?
> >
> > I'd still like to find a better way to start Unomi than what I'm doing
> with "sleep 60" if anyone has any ideas.
> >
> > On Sat, Nov 17, 2018 at 9:44 AM Michael Ghen <m...@mikeghen.com> wrote:
> >>
> >> Thanks JB, I looked at that and based my image on your Dockerfile. That
> was really helpful to get the image setup. I can't figure out how to start
> Karaf but I can figure out how to start Unomi. I looked into how to run
> commands on boot, I tried something like this:
> https://stackoverflow.com/questions/26434360/script-karaf-shell-commands
> >>
> >> This is what I have in my startup script, does this look the the right
> way to start and run Unomi in the container:
> >>
> >> #!/bin/sh
> >> $KARAF_HOME/bin/start
> >> sleep 60
> >> $KARAF_HOME/bin/client "unomi:start"
> >> echo "Started Unomi"
> >> tail -f $KARAF_HOME/data/log/karaf.log
> >>
> >>
> >> On Sat, Nov 17, 2018 at 1:20 AM Jean-Baptiste Onofré <j...@nanthrax.net>
> wrote:
> >>>
> >>> Hi Michael,
> >>>
> >>> I blogged about Docker with Apache Karaf:
> >>>
> >>> http://blog.nanthrax.net/?p=839
> >>>
> >>> Regards
> >>> JB
> >>>
> >>> On 17/11/2018 06:18, Michael Ghen wrote:
> >>> > Hi everyone,
> >>> >
> >>> > I looked into running Karaf on Docker and I feel like I was able to
> >>> > figure that out.
> >>> >
> >>> > I can't seem to get Unomi running though so I was hoping someone here
> >>> > might be able to help me out. I'm having two problems. First, I can't
> >>> > seem to get Unomi to start. I have a start_with_ip.sh entry point
> script
> >>> > which I thought would start up Unomi but it seems it's not working.
> >>> > Second, when I manually start Unomi, it can't connect to
> Elasticsearch.
> >>> > I'm using docker compose to run a Unomi and Elasticsearch container
> so
> >>> > my second problem might be docker related.
> >>> >
> >>> > Repo with the code I'm working on
> >>> > here: https://github.com/mikeghen/unomi-docker
> >>> >
> >>> > I've put the code into a repo, once I get it working I think it will
> be
> >>> > a good resource to add. It's basically a requirement for any system
> we
> >>> > want to use that it can be run on Kubernetes so getting this setup in
> >>> > docker will help me get Unomi in production. Please, let me know what
> >>> > you think. I'm not sure what else to try to get it running.
> >>> >
> >>>
> >>> --
> >>> Jean-Baptiste Onofré
> >>> jbono...@apache.org
> >>> http://blog.nanthrax.net
> >>> Talend - http://www.talend.com
>

Reply via email to