Accessing files between conatiners.

Stuart Bishop stuart.bishop at canonical.com
Mon Aug 17 07:30:05 UTC 2015


On 14 August 2015 at 15:47, Sunitha Radharapu <sradhara at in.ibm.com> wrote:

> Hi Andrew,
>
> IBM MobileFirst Server product have an option to connect to Remote
> database(DB2), But to install MobileFirst Server with remote database I
> need a to get an IBM db2 jar file form DB2 database which is present in
> another container.
>
>
> If DB2 and MobileFirst Server are in same container, I  am assigning DB2
> path as below in MobileFirst server install response file.
>
> <data key='user.database.db2.driver' value='
> */opt/ibm/db2/V10.5/java/db2jcc.jar*'/>.
>
> But if DB2 is in different container how should I access this *db2jcc.jar*
>  file?
>
> Thanks,
> Sunitha.
>

If it cannot be placed at a public URL, then the DB2 service needs to
provide a mechanism to distribute the db2jcc.jar file.

If the MobileFirst charm is able to open a database connection to DB2, then
you may be able to use the DB2 database connection to retrieve the file
from the remote container.

Alternatively, the ssh protocol is available on all containers. If you can
set up suitable access, then the MobileFirst charm could scp the jar file
from the DB2 service. If you don't mind Python code, contrib.unison in the
charm-helpers project might be helpful. It sets up ssh authorization in a
peer relation, but perhaps could be adapted to set up ssh authorization
between your two services.


-- 
Stuart Bishop <stuart.bishop at canonical.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20150817/982bde41/attachment.html>


More information about the Juju mailing list