Updating bundles and publishing them.
Jorge O. Castro
jorge at ubuntu.com
Tue Apr 5 16:07:29 UTC 2016
Hello everyone,
I took to updating the wiki bundles for the 2.0 release and thought I
would share my notes on publishing bundles with the fancy new
publishing process. Here is a list of all the bundles in the store,
recommend you sort it by # of deployments.
https://jujucharms.com/q/?type=bundle
If you are looking for something to do, a bunch of these could use
with updating to the latest charm revisions, converting to the new
bundle format, and so on. It's a great way to learn how the charm
store now works and help someone else out in one go. Here's how I
updated mediawiki-scalable to a new "wiki-scalable":
charm get mediawiki-scalable
Then update the bundle, `charm proof .` will check the bundle for you
so you don't waste time deploying something broken. Publish your charm
somewhere in VCS, eg. https://github.com/juju-solutions/wiki-scalable
Publish the charm in the store, from the bundle's directory:
juju deploy . # test your work first!
charm login
charm push . bundle/wiki-scalable
Set some of the new metadata, note that we're setting these keys to a
specific revision, 0:
charm set cs:~jorge/bundle/wiki-scalable-0
bugs-url=https://github.com/juju-solutions/wiki-scalable/issues
charm set cs:~jorge/bundle/wiki-scalable-0
homepage=https://github.com/juju-solutions/wiki-scalable/
And now publish, then set the permissions for the world to see it:
charm publish cs:~jorge/bundle/wiki-scalable-0
charm grant cs:~jorge/bundle/wiki-scalable everyone
And that's it. If you want your bundle to be officially recommended
then you need to submit it to the new review queue process, which
Marco is currently working on and will mail the list this week with
updates to that. Shout out to Jay Wren for fixing the issues we found
as we tested publish.
--
Jorge Castro
Canonical Ltd.
http://jujucharms.com/ - The fastest way to model your service
More information about the Juju
mailing list