How to set local charm path in bundle file

Dmitrii Shcherbakov dmitrii.shcherbakov at canonical.com
Thu Aug 3 20:40:18 UTC 2017


Hi Feng,

Just use an absolute path:

https://github.com/juju/docs/pull/1980

Best Regards,
Dmitrii Shcherbakov

Field Software Engineer
IRC (freenode): Dmitrii-Sh

On Thu, Aug 3, 2017 at 11:34 PM, fengxia <fxia1 at lenovo.com> wrote:

> Hi Juju,
>
> Trying to deploy a bundle which consists of local charms.
>
> $JUJU_REPOSITORY=/home/fengxia/workspace/dist
>
> in this folder, all charms are in "trusty/"
>
> Bundle file is located in /home/fengxia/workspace/project/test.yaml:
>
> services:
>   # solution
>   solution:
>     charm: ./trusty/solution
>     num_units: 1
>
> But juju deploy tet.yaml yields an error:
>
> ERROR the provided bundle has the following errors:
> charm path in application "solution" does not exist:
> /home/fengxia/workspace/project/trusty/solution
>
> Looks to me that it ignores the $JUJU_REPOSITORY setting, and looking for
> the charm in local directory instead. I know "./trusty/solution" is
> pointing it this way.
>
> So question now is, what's the right setting in bundle when charms are NOT
> in the same folder as the bundle file?
>
> --
> Feng xia
> Engineer
> Lenovo USA
>
> Phone: 5088011794
> fxia1 at lenovo.com
>
> Lenovo.com
> Twitter | Facebook | Instagram | Blogs | Forums
>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
> an/listinfo/juju
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170803/8bbf1716/attachment.html>


More information about the Juju mailing list