How to build juju for centOS

fengxia fxia1 at lenovo.com
Wed May 10 12:06:44 UTC 2017


That's good to know. Let me try out Andrew's instructions.


On 05/10/2017 07:59 AM, John Meinel wrote:
> Also, while agents can be built for CentOS we don't support 
> Controllers on CentOS at this point. So bootstrap I believe only 
> supports Ubuntu.
>
> John
> =:->
>
> On May 10, 2017 11:44, "Andrew Wilkins" <andrew.wilkins at canonical.com 
> <mailto:andrew.wilkins at canonical.com>> wrote:
>
>     On Wed, May 10, 2017 at 3:08 PM fengxia <fxia1 at lenovo.com
>     <mailto:fxia1 at lenovo.com>> wrote:
>
>         I have followed dev instruction and can build Juju binaries
>         for Ubuntu. The dev machine is also Ubuntu.
>
>         $go install -v github.com/juju/juju/
>         <http://github.com/juju/juju/>…
>
>         Using the same binaries will not however bootstrap with
>         "--config default-series=centos", nor "add-machine --series
>         centos". Both failed at "no tools founds".
>
>         How to build an agent for centos?
>
>     For a start, you should use "centos7", not "centos". "juju
>     add-machine --series=centos" *should* give you an immediate error
>     indicating that that's not a valid series, and ideally inform you
>     of the closest match(es); I'll file a bug to get that fixed.
>     Do you need to build from source? If you're using a released
>     version of Juju, then the agents are available on
>     streams.canonical.com <http://streams.canonical.com>.
>
>     For dev builds, we don't have a nice, supported solution. The
>     supported solution is to create agent tarballs and generate
>     simplestreams metadata. I wrote a plugin a while ago that you can
>     use to build and upload agent tarballs to the controller directly,
>     but you shouldn't use it in production systems:
>
>     $ go get github.com/axw/juju-tools <http://github.com/axw/juju-tools>
>     $ juju tools build 2.2-beta4.1-centos7-amd64
>     building: juju-2.2-beta4.1-centos7-amd64.tgz
>     $ juju tools upload -m controller juju-2.2-beta4.1-centos7-amd64.tgz
>     uploading "juju-2.2-beta4.1-centos7-amd64.tgz"
>     $ juju add-machine --series=centos7
>
>     Cheers,
>     Andrew
>
>         -- 
>         Feng xia
>         Engineer
>         Lenovo USA
>
>         Phone:5088011794 <tel:%28508%29%20801-1794>
>         fxia1 at lenovo.com <mailto:fxia1 at lenovo.com>
>           	
>         Lenovo.com
>         Twitter | Facebook | Instagram | Blogs | Forums
>
>         --
>         Juju mailing list
>         Juju at lists.ubuntu.com <mailto:Juju at lists.ubuntu.com>
>         Modify settings or unsubscribe at:
>         https://lists.ubuntu.com/mailman/listinfo/juju
>         <https://lists.ubuntu.com/mailman/listinfo/juju>
>
>
>     --
>     Juju mailing list
>     Juju at lists.ubuntu.com <mailto:Juju at lists.ubuntu.com>
>     Modify settings or unsubscribe at:
>     https://lists.ubuntu.com/mailman/listinfo/juju
>     <https://lists.ubuntu.com/mailman/listinfo/juju>
>

-- 
Feng xia
Engineer
Lenovo USA

Phone: 5088011794
fxia1 at lenovo.com
  	
Lenovo.com
Twitter | Facebook | Instagram | Blogs | Forums

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170510/2d69e02a/attachment.html>


More information about the Juju mailing list