Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kapua-dev] ip addres in kapua docker containers is hardcoded

Thanks Dejan

I'll try changing the variable you mention, but meanwhile maybe I'll go ahead with the vagrant demo.

I have another question related to the deployment of the broker in vagrant or docker. 
I was looking at the vagrant scripts and I've seen there's a lot of manual jar copying to deploy the broker. Just wondering why you don't just copy the target/dependencies folder as maven should had copied there all required jars? 

I'm also wondering if we could use an approach similar to the one described in the link below to create docker images using maven:

https://binfalse.de/2016/05/31/mvn-automagically-create-a-docker-image/ 


On Tue, Nov 29, 2016 at 12:49 PM, <kapua-dev-request@ecli pse.org> wrote:
Send kapua-dev mailing list submissions to
        kapua-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/kapua-dev
or, via email, send a message with subject or body 'help' to
        kapua-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
        kapua-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of kapua-dev digest..."


Today's Topics:

   1. Re: ip addres in kapua docker containers is hardcoded
      (Dejan Bosanac)
   2. Re: ip addres in kapua docker containers is hardcoded
      (Dejan Bosanac)
   3. Example configuration for a Kura gateway (Pablo Chacin)


----------------------------------------------------------------------

Message: 1
Date: Tue, 29 Nov 2016 10:54:01 +0100
From: Dejan Bosanac <dejanb@xxxxxxxxxxxx>
To: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Subject: Re: [kapua-dev] ip addres in kapua docker containers is
        hardcoded
Message-ID:
        <CAGHUCOnTXxeC6AnskV-_JHwtsH4kR2jqhZBfFCOCVMrqv_RcRQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hi Pablo,

you can change that using environment variable (SQL_SERVICE_HOST). There is
also H2 image that should start the db, but we still have work to do to
populate the db.

All images are built using maven plugin https://github.com/
eclipse/kapua/blob/develop/assembly/pom.xml#L412 and some instructions on
how to run it inside openshift
https://github.com/eclipse/kapua/blob/develop/paas/openshift/openshift-deploy.sh
.

It?s still work in progress, so it?s not fully functional, but it should be
in a couple of days.




On Mon, Nov 28, 2016 at 4:23 PM, Pablo Chacin <pablochacin@xxxxxxxxx> wrote:

> Hi
>
> I just started playing with the kapua docker containers gracefully
> provided by Henryk Konsek and  Dejan Bosanac at dockerhub. I started with
> the kupua broker (https://hub.docker.com/r/hekonsek/kapua-broker/) but
> I'm getting the following error:
>
> Caused by: org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.SocketTimeoutException:
> connect timed out: 192.168.33.10:3306" [90067-192]
>
> The problem is that the address for the sql database seams to be hardcoded
> to the address used in the vagrant demo machine (
> https://github.com/eclipse/kapua/blob/develop/dev-tools/
> src/main/vagrant/demo/demo-Vagrantfile)
>
> Is there a way to change this address? Or even better, are the Dockerfiles
> for these container available somewhere?
>
> Regards
>
> --
>
>
> [image: Pablo Chacin on about.me]
>
> Pablo Chacin
> about.me/pablochacin
>   <http://about.me/pablochacin>
>
> _______________________________________________
> kapua-dev mailing list
> kapua-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/kapua-dev
>
>


--
Regards
--
Dejan Bosanac
about.me/dejanb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/kapua-dev/attachments/20161129/81167b41/attachment.html>

------------------------------

Message: 2
Date: Tue, 29 Nov 2016 11:13:58 +0100
From: Dejan Bosanac <dejanb@xxxxxxxxxxxx>
Cc: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Subject: Re: [kapua-dev] ip addres in kapua docker containers is
        hardcoded
Message-ID:
        <CAGHUCOnN_O3+4BwkZ7wbt_b5yx1dnEoN6GUkEZzDV8oJosv_3Q@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Openshift script has just been moved to

https://github.com/eclipse/kapua/blob/develop/dev-tools/src/main/openshift/openshift-deploy.sh

On Tue, Nov 29, 2016 at 10:54 AM, Dejan Bosanac <dejanb@xxxxxxxxxxxx> wrote:

> Hi Pablo,
>
> you can change that using environment variable (SQL_SERVICE_HOST). There
> is also H2 image that should start the db, but we still have work to do to
> populate the db.
>
> All images are built using maven plugin https://github.com/ecli
> pse/kapua/blob/develop/assembly/pom.xml#L412 and some instructions on how
> to run it inside openshift https://github.com/eclipse/kapua/blob/develop/
> paas/openshift/openshift-deploy.sh.
>
> It?s still work in progress, so it?s not fully functional, but it should
> be in a couple of days.
>
>
>
>
> On Mon, Nov 28, 2016 at 4:23 PM, Pablo Chacin <pablochacin@xxxxxxxxx>
> wrote:
>
>> Hi
>>
>> I just started playing with the kapua docker containers gracefully
>> provided by Henryk Konsek and  Dejan Bosanac at dockerhub. I started with
>> the kupua broker (https://hub.docker.com/r/hekonsek/kapua-broker/) but
>> I'm getting the following error:
>>
>> Caused by: org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net
>> .SocketTimeoutException: connect timed out: 192.168.33.10:3306"
>> [90067-192]
>>
>> The problem is that the address for the sql database seams to be
>> hardcoded to the address used in the vagrant demo machine (
>> https://github.com/eclipse/kapua/blob/develop/dev-tools/src
>> /main/vagrant/demo/demo-Vagrantfile)
>>
>> Is there a way to change this address? Or even better, are the
>> Dockerfiles for these container available somewhere?
>>
>> Regards
>>
>> --
>>
>>
>> [image: Pablo Chacin on about.me]
>>
>> Pablo Chacin
>> about.me/pablochacin
>>   <http://about.me/pablochacin>
>>
>> _______________________________________________
>> kapua-dev mailing list
>> kapua-dev@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/kapua-dev
>>
>>
>
>
> --
> Regards
> --
> Dejan Bosanac
> about.me/dejanb
>



--
Regards
--
Dejan Bosanac
about.me/dejanb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/kapua-dev/attachments/20161129/9fcfec49/attachment.html>

------------------------------

Message: 3
Date: Tue, 29 Nov 2016 12:49:06 +0100
From: Pablo Chacin <pablochacin@xxxxxxxxx>
To: kapua-dev@xxxxxxxxxxx
Subject: [kapua-dev] Example configuration for a Kura gateway
Message-ID:
        <CAOYFv=j10XFnC1TY663oCov_VKJa+8hHNzvaCEsEr9Fe85prsA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi

I have kapua up and running using the vagrant-based demo. I want to test
the connection from a kapua gateway but I get an connection error, I guess
it's due to credential but can't confirm. Is there any example of how to
configure a kura gateway to connect to the kapua?

Thanks in advance

--


[image: Pablo Chacin on about.me]

Pablo Chacin
about.me/pablochacin
  <http://about.me/pablochacin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/kapua-dev/attachments/20161129/d86107ca/attachment.html>

------------------------------

_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kapua-dev


End of kapua-dev Digest, Vol 3, Issue 13
****************************************



--

Back to the top