-
Notifications
You must be signed in to change notification settings - Fork 29
juju git charm
juju-git-charm is a Juju plugin that enables a charm author to utilize the git version control system to install and keep up-to-date Juju Charms.
The most likely scenario where juju-git-charm is useful is during development of a Juju Charm, where the developer wishes to code on their host machine, deploy to a git repository (even allow others to contribute to the charm), and pull it down to the Juju environment.
Describes the Juju plugin.
Lists the available options.
Installs the charm from the git repo.
Arguments:
[name of charm - required] [git repository - required] [Ubuntu Release Name - required] [Git Folder - optional]
Example:
juju git-charm --install metis [email protected]:StroblIndustries/Metis.git precise juju-charms/metis
This will:
-
Create the folder juju-git-charms in
~/
and metis folder within~/juju-git-charms
-
Creates a config file called .metis in
~/juju-git-charms
with ubuntuReleaseName=precise and gitFolder=juju-charms/metis -
Initialize git in the folder, add the repo as the origin remote, pull down the code.
-
Make sure the
~/charms/precise/metis
folder exists -
Copies the contents of the
juju-charms/metis
folder into~/charms/precise/metis
.
Updates the charm.
Arguments:
[name of charm - required]
Example:
juju git-charm metis
This will:
-
Read the config from ~/juju-git-charm/.metis
-
Go to ~/juju-git-charm/metis directory, update the repo via "git pull origin master"
-
Copy the contents of juju-charms/metis into the re-created ~/charms/precise/metis folder.