From users-return-82-archive-asf-public=cust-asf.ponee.io@unomi.apache.org Sat Nov 17 17:37:02 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B23AF180658 for ; Sat, 17 Nov 2018 17:37:01 +0100 (CET) Received: (qmail 94307 invoked by uid 500); 17 Nov 2018 16:37:00 -0000 Mailing-List: contact users-help@unomi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@unomi.apache.org Delivered-To: mailing list users@unomi.apache.org Received: (qmail 94297 invoked by uid 99); 17 Nov 2018 16:37:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2018 16:37:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7B880180A3E for ; Sat, 17 Nov 2018 16:37:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.541 X-Spam-Level: X-Spam-Status: No, score=0.541 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-1.459, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=mikeghen-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id dVWFTBsPgiZu for ; Sat, 17 Nov 2018 16:36:58 +0000 (UTC) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 099BE61AF8 for ; Sat, 17 Nov 2018 16:36:57 +0000 (UTC) Received: by mail-pl1-f176.google.com with SMTP id b5so6177230plr.4 for ; Sat, 17 Nov 2018 08:36:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mikeghen-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=EKjX1B0xB2Cfwt0xTAtAzEZeeFLidNmHK4LWVxPgDdY=; b=m/YeNPQNs+3TKNOCABx8EvrXf09p7kvGHQr9bPlc/c3meKYcTA6sZyxDLxa38zWBXu NF8/GG+TVCF8bp3h/OrJ+U67dR6B/fe2FZOk4d9AtDSjfZ/MUBLz0LUDHHmc/Lgce+rE HUAhenCL14Iv3zuuQuIz6Nb0v2BpWHUPGiSENpwpioeJw7rxIWe5h9WHCnwfgQ6JbHDQ C/xEOyC9YQ12imQ39LG77xuJPnb3QyvM13plGRAgUikMKzgM2mP+a4tf0lcUGw7ldAJB pqHBGAXyeaWf27zyQ5/ObIq3h53ZF0MrOFdsn6AEkhXih2esiJM8t0+DxMh7gpWLwsUn X6/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=EKjX1B0xB2Cfwt0xTAtAzEZeeFLidNmHK4LWVxPgDdY=; b=P+TFGtyU0oBiFOX3g8ATLSdvYdQXp8phLRPMYy1ft0xhymu8cY6g8OKrH4Tz642KEM yGokNkKCNC4O4w7WaN2RrAcgw9cSvGrzBkU6FXTOe5uUdlROECV6I7LDUnZIRfE+eCjJ xNQSw4GS8Z5DzTkoVZUb67VTDqYpAL0NOnLk2f2YAAMxiZVkZRiPvJbw2HOXkbKzhxlH Gh3jzeY9XT4xrqziGyH/z/7tE6t8AmsQX7aRUc4ncFRyK8zPApsWqEmZbiM04YtfSRuk wufSRe0b+OK+LHI2/nsyuj4/hvnDqPqey/KWr5DJeJFXgigyEsYeVT3fb2GWwF1DTs0W 4OfQ== X-Gm-Message-State: AGRZ1gLg0GZst6qpC7Mrk/1fUFNET7OfhGodiVsm1B16hSaAXf+CwWYV 5/O00QqCLdGW31yL/N8LN9TYXx4mjsYUEtLD7UYpEL4VYX0= X-Google-Smtp-Source: AJdET5fdkICRB2XB4eDFO49v6FpWvHwJposORvsOLKW3SZAKg0ywv9033LaT0+O7YAnbm8f2Hsb3w1S8rnk65GtG1e4= X-Received: by 2002:a17:902:64c1:: with SMTP id y1mr6153082pli.64.1542472616658; Sat, 17 Nov 2018 08:36:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Michael Ghen Date: Sat, 17 Nov 2018 11:36:45 -0500 Message-ID: Subject: Re: Running Unomi on Docker To: users@unomi.apache.org Content-Type: multipart/alternative; boundary="0000000000006460e6057adee419" --0000000000006460e6057adee419 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, I believe I resolved my issue by disabling xpack security "xpack.security.enabled=3Dfalse." 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 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 star= t > 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 wa= y > 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=C3=A9 > wrote: > >> Hi Michael, >> >> I blogged about Docker with Apache Karaf: >> >> http://blog.nanthrax.net/?p=3D839 >> >> 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 scri= pt >> > 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 b= e >> > 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=C3=A9 >> jbonofre@apache.org >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> > --0000000000006460e6057adee419 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ok, I believe I resolved my issue by disa= bling xpack=C2=A0security "xpack.security.enabled=3Dfalse." Is th= ere any way to get a better error logging from ES connection failures?

I'd still like to find a b= etter 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 <mike@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:=C2=A0https://stackoverflo= w.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=C2=A0in 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=C3=A9 <jb@nan= thrax.net> wrote:
Hi Micha= el,

I blogged about Docker with Apache Karaf:

http://blog.nanthrax.net/?p=3D839

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 h= ere
> might be able to help me out. I'm having two problems. First, I ca= n't
> seem to get Unomi to start. I have a start_with_ip.sh entry point scri= pt
> 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 Elasticse= arch.
> I'm using docker=C2=A0compose to run a Unomi and Elasticsearch con= tainer so
> my second problem might be docker related.=C2=A0
>
> Repo with the code I'm working on
> here:=C2=A0https://github.com/mikeghen/unomi-docker=
>
> I've put the code into a repo, once I get it working I think it wi= ll be
> a good resource to add. It's basically=C2=A0a requirement for any = system we
> want to use that it can be run on Kubernetes so getting this setup in<= br> > docker will help me get Unomi in production. Please, let me know what<= br> > you think. I'm not sure what else to try to get it running.
>

--
Jean-Baptiste Onofr=C3=A9
jbonofre@apache.or= g
h= ttp://blog.nanthrax.net
Talend - http://www.talend.com
--0000000000006460e6057adee419--