Hi Dinuka,

These libraries are already within Airavata repo, so do not commit them, but 
rather fix the ide-integration to copy them into the right place on-demand. See:

https://github.com/apache/airavata-php-gateway/tree/master/app/libraries 
<https://github.com/apache/airavata-php-gateway/tree/master/app/libraries> 

 
https://github.com/apache/airavata/tree/master/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib
 
<https://github.com/apache/airavata/tree/master/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib>

The first link is indeed copied from generated thrift libraries from Airavata, 
so copying them back will make it redundant. 

Suresh

> On Jan 5, 2023, at 8:00 AM, Dinuka De Silva <l.dinukadesi...@gmail.com> wrote:
> 
> Hi,
> 
> I found one workaround. 
> 
> Instead of copying everything from airavata-php-gateway, I copied only 
> "airavata-php-gateway/app/libraries/Airavata" to 
> "airavata/modules/ide-integration/src/main/containers/pga/airavata-php-gateway/app/libraries"
>  and then it works even though I'm not certain of the exact issue.
> 
> However, now I could get the latest pga code to work within airavata 
> repository, should I commit this code? I assume it's not meant to commit but 
> if I do whoever wants to set up this wouldn't have to go through what I did.
> 
> Thanks & Regards,
> Dinuka
> 
> On Wed, Jan 4, 2023 at 10:59 PM Dinuka De Silva <l.dinukadesi...@gmail.com 
> <mailto:l.dinukadesi...@gmail.com>> wrote:
> Hi,
> 
> I'm trying to set up the latest code from airavata-php-portal [1] on my local 
> machine. I need that for creating and testing some HTCondor compute 
> resources. Here's how I tried.
> 
> I copied the latest source from airavata-php-portal to 
> "airavata/modules/ide-integration/src/main/containers/pga" path in the 
> airavata repository and ran "docker compose up" on the same directory. And I 
> end up with the following errors on the command line.
> 
> (base) dinukadesilva@Dinukas-MacBook-Pro pga % docker compose up
> [+] Running 1/0
>  ⠿ Container pga-pga-1  Created                                               
>                                                                               
>            0.0s
> Attaching to pga-pga-1
> pga-pga-1  | 
> pga-pga-1  |                                                               
>                   
> pga-pga-1  |   [UnexpectedValueException]  
> 
> pga-pga-1 exited with code 1
> (base) dinukadesilva@Dinukas-MacBook-Pro pga % 
> 
> 
> But, if I do the same steps without copying the latest airavata-php-portal, 
> it works fine, and pga portal up and runs perfectly. 
> 
> Thanks & Regards,
> Dinuka
> 
> [1] https://github.com/apache/airavata-php-gateway 
> <https://github.com/apache/airavata-php-gateway>

Reply via email to