summaryrefslogtreecommitdiff
path: root/morphlib/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Morph build c3874f415dc6448ca28d9a01edab0948baserock/6453f312359f4317803ef7f14b58d21f/d675b946df4f456693ed211dcd2ec95eAdam Coldrick2015-04-158-72/+682
| | | | System branch: master
* Morph build 590a8150f91843c3a291168f2106ddbaAdam Coldrick2015-03-312-2/+3
| | | | System branch: master
* Morph build 6b56bd9eff674d8597e851125d4f92a9Adam Coldrick2015-03-301-4/+1
| | | | System branch: master
* Morph build cb9baa7690444c108b49253df72b50f4Adam Coldrick2015-03-301-1/+1
| | | | System branch: master
* Morph build c2397bf4873742a3ba9202cbdcfffea8Adam Coldrick2015-03-302-13/+74
| | | | System branch: master
* Morph build 271da1e1d62c40748b586dc0345d0f7dAdam Coldrick2015-03-242-71/+13
| | | | System branch: master
* Morph build 491f742c34d4408181f7080fab8ee2deAdam Coldrick2015-03-241-123/+37
| | | | System branch: master
* Morph build 39c8157277944341bd3b0ba101f727ddAdam Coldrick2015-03-231-0/+6
| | | | System branch: master
* Morph build 7dbf53b382754a809aae6bba01661bfdAdam Coldrick2015-03-231-1/+1
| | | | System branch: master
* Morph build a655bff436cd41db9e91ff507da04c3cAdam Coldrick2015-03-231-0/+1
| | | | System branch: master
* Morph build 00642a8aa35f4570a264a264391e9ee4Adam Coldrick2015-03-231-2/+0
| | | | System branch: master
* Morph build 68595a99311848eeb64a95dfa9ebbaf2Adam Coldrick2015-03-231-9/+13
| | | | System branch: master
* Morph build e1dd9e78b7dd4ba4a740b2dbc0a24ae6Adam Coldrick2015-03-231-2/+1
| | | | System branch: master
* Morph build ae37d017f2c449fb800380b45b1fd162Adam Coldrick2015-03-231-0/+1
| | | | System branch: master
* Morph build 47b83c2874204fef864d3cb5c7271bd2Adam Coldrick2015-03-231-2/+2
| | | | System branch: master
* Morph build 730c29f1b65f46159d1ed2803f26034cAdam Coldrick2015-03-231-1/+1
| | | | System branch: master
* Morph build c0e38c20b220482baa34e8a675b5358dAdam Coldrick2015-03-231-1/+1
| | | | System branch: master
* Morph build f28d850939a5433aba33e932e903e80eAdam Coldrick2015-03-231-0/+1
| | | | System branch: master
* Morph build f3baf05a091e4021b4e0e967ef94cc20Adam Coldrick2015-03-231-0/+1
| | | | System branch: master
* Morph build 54d4c730c97e4270add882e69b791f6cAdam Coldrick2015-03-231-1/+2
| | | | System branch: master
* Morph build e2888dfade2d4ef59875d1631b96cd30Adam Coldrick2015-03-231-0/+1
| | | | System branch: master
* Morph build e6aecba63d2c47df9d505dbc46ea47a9Adam Coldrick2015-03-231-1/+1
| | | | System branch: master
* Morph build a242980ab6104675b183c6a926e869c5Adam Coldrick2015-03-231-5/+5
| | | | System branch: master
* Morph build 878a238ebbfc4c2ebe3a27b8b3e44983Adam Coldrick2015-03-231-8/+7
| | | | System branch: master
* Morph build 81aaa7d1f9b043b58194b7babe2b4f84Adam Coldrick2015-03-231-1/+1
| | | | System branch: master
* Morph build 4fa09ba6ffc04dfb86110dea0072d7a3Adam Coldrick2015-03-231-6/+8
| | | | System branch: master
* Morph build a030236ebf7548e99f9c536b9256da2fAdam Coldrick2015-03-231-1/+1
| | | | System branch: master
* Morph build 1a63bb2bf5594d1596993614bbdf8f71Adam Coldrick2015-03-231-15/+70
| | | | System branch: master
* Morph build bac824834a1646e591aaf23425933247Adam Coldrick2015-03-201-20/+37
| | | | System branch: master
* Morph build 11ac5b237b3640718da94ad8e252d330Adam Coldrick2015-03-193-38/+76
| | | | System branch: master
* Morph build 2ee8190abe87461992f5b7ed85fe2ee9Adam Coldrick2015-03-1915-97/+230
| | | | System branch: master
* Fix lines longer than 79 charactersSam Thursfield2014-10-291-2/+2
|
* Merge remote-tracking branch 'origin/sam/build-fix-3'Sam Thursfield2014-10-291-6/+15
|\ | | | | | | | | Reviewed-By: Richard Ipsum <richard.ipsum@codethink.co.uk> Reviewed-By: Richard Maw <richard.maw@codethink.co.uk>
| * Fix distbuild to allow passing a commit instead of a named ref to be builtSam Thursfield2014-10-271-6/+15
|/ | | | | | | | | | | The recent changes to the BuildCommand.build() function caused distbuild to break, because I didn't make the same change to the InitiatorBuildCommand.build() function but did change how it was called. This commit adds the ability to have optional fields in distbuild messages. This is used to add an optional 'original_ref' field, which will get passed to `morph serialise-artifact` by new distbuild controllers, and will be ignored by older ones.
* build: Resolve the ref being built in the user's local definitions.gitSam Thursfield2014-10-242-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Most usefully, this patch means that Morph no longer updates its cached copy of definitions.git every time you run `morph build`. Also, it prevents confusion in the following situation. Imagine I have run: morph checkout baserock:baserock/definitions master I then wait a while, during which time someone pushes to 'master' in the definitions.git repo that I cloned from. Now I run: cd master morph build systems/whatever.morph Which commit does it build, the local head of 'master' or the remote head of 'master'? The answer, both before and after this patch, is that it builds the local version of master. But previously, this only happened because of the magic that we have to detect local changes. With this patch, the local change detection could be disabled and `morph build` would still build what the user had checked out as 'master' locally, not whatever 'master' pointed to in the remote repo.
* build: Restructure how BuildCommand.build() is calledSam Thursfield2014-10-241-3/+5
| | | | | | | | | Rather than take a list of triplets to build, the BuildCommand.build() function now takes a single repo/ref/morph triplet. Iterating through multiple sets of triplets is now done in the build plugin. There are a couple of cosmetic changes to the status output at the start and end of a build as a result.
* Fix synopsis of `morph edit` commandSam Thursfield2014-10-221-1/+1
| | | | | Previously it was incorrect in the `morph help` output and in Morph's man page.
* Fix the `morph list-artifacts` commandSam Thursfield2014-10-101-6/+7
| | | | It was broken by the per-source building changes.
* Allow distbuilds to choose where to put logsRichard Maw2014-10-081-0/+5
|
* Fix issues with distbuild caused by moving to building per-sourceRichard Maw2014-10-082-3/+5
|
* Allow ephemeral ports for distbuild servicesRichard Maw2014-10-021-1/+1
|
* distbuild: allow daemons to bind to ephemeral portsRichard Maw2014-10-011-2/+22
| | | | | | | | | | | | | You can bind to an ephemeral port by passing 0 as the port number. To work out which port you actually got, you need to call getsockname(). To facilitate being able to spawn multiple copies of the daemons for testing environments, you can pass a -file option, which will make the daemon write which port it actually bound to. If this path is a fifo, reading from it in the spawner process will allow synchronisation of only spawning services that require that port to be ready after it is.
* Remove overlap detection logicRichard Maw2014-10-011-32/+0
| | | | | | | I've rarely needed to use it, and on those rare occasions, it would have been easy enough to calculate it. Let's get rid of this step, and save everyone some time in future.
* Remove run-in-artifact subcommandRichard Maw2014-10-011-1/+1
| | | | It's easy enough to deploy the image.
* Merge branch 'baserock/richardmaw-os/tidy-build-logic-v7'Richard Maw2014-09-222-72/+57
|\ | | | | | | | | | | Reviewed-by: Lars Wirzenius (+2 to misc fixups) Reviewed-by: Sam Thursfield (+1 to per-source building) Reviewed-by: Paul Sherwood (+1 to per-source building)
| * Fix show-dependencies plugin to use source deps.Richard Maw2014-09-191-2/+2
| |
| * Build per-source rather than per-artifactRichard Maw2014-09-191-66/+55
| |
| * Remove Morphology.builds_artifactsRichard Maw2014-09-191-4/+0
| | | | | | | | | | This was used before the Artifact splitting code landed to determine which artifacts should be produced.
| * Rename BuildCommand.get_sources to fetch_sourcesRichard Maw2014-09-191-1/+1
| | | | | | | | | | There's other methods called get_sources in other modules, and fetch_sources explains more about what it does in the context.
* | Don't log environment variables with 'PASSWORD' in their name.Sam Thursfield2014-09-191-2/+1
|/ | | | | | | | | | | | | | | | | | | This involved rewriting the util.log_dict_diff() function. It has been renamed to log_environment_changes() to better reflect its purpose. It no longer logs both the old and new values in the event of an environment variable changing. It now just logs the new value. This makes the code simpler and seems like it should not be a big problem. Some projects recommend passing credentials through the environment. OpenStack does this, for example, see: <http://docs.openstack.org/user-guide/content/cli_openrc.html> It's unlikely that users would be happy about applications saving these passwords in log files all over their system. I do not recommend ever storing valuable passwords in the environment.