Re: Accessing files between conatiners.
On 14 August 2015 at 15:47, Sunitha Radharapu sradh...@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.bis...@canonical.com -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Accessing files between conatiners.
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. From: Andrew Wilkins andrew.wilk...@canonical.com To: Sunitha Radharapu/India/IBM@IBMIN, Juju email list juju@lists.ubuntu.com Date: 14-08-2015 08:17 Subject:Re: Accessing files between conatiners. Hi Sunitha, We intend to support shared filesystems in the core of Juju, but this is not currently available. You could use NFS if a shared filesystem is appropriate. Can you describe the problem you're trying to solve by sharing files? There may be a better approach that will work today. Cheers, Andrew On Thu, Aug 13, 2015 at 7:52 PM Sunitha Radharapu sradh...@in.ibm.com wrote: Hi, I have a scenario where my application is connecting to Remote DB. Example: If my DB is running in container 1 and my application is running in container 2 , Is it possible to access the files of container 1(where my DB is installed) from container 2(where my application is installed).? Can you please provide any solution for these kind of scenarios? Thanks, Sunitha. -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Accessing files between conatiners.
Hi, I have a scenario where my application is connecting to Remote DB. Example: If my DB is running in container 1 and my application is running in container 2 , Is it possible to access the files of container 1(where my DB is installed) from container 2(where my application is installed).? Can you please provide any solution for these kind of scenarios? Thanks, Sunitha.-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Accessing files between conatiners.
Hi Sunitha, We intend to support shared filesystems in the core of Juju, but this is not currently available. You could use NFS if a shared filesystem is appropriate. Can you describe the problem you're trying to solve by sharing files? There may be a better approach that will work today. Cheers, Andrew On Thu, Aug 13, 2015 at 7:52 PM Sunitha Radharapu sradh...@in.ibm.com wrote: Hi, I have a scenario where my application is connecting to Remote DB. Example: If my DB is running in container 1 and my application is running in container 2 , Is it possible to access the files of container 1(where my DB is installed) from container 2(where my application is installed).? Can you please provide any solution for these kind of scenarios? Thanks, Sunitha. -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju