Cloud Foundry: Design and Architecture
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
The content has been bookmarked!
There was an error bookmarking this content! Please retry.
Posted by Abel Avram on Oct 15, 2009
psake is a build automation tool integrated with PowerShell (PS). Version 2.01 works with PowerShell 2.0. Ayende Rahien is using it to build Rhino Tools.
James Kovacs, the project owner, explains what is the improvement brought by psake:
It avoids the angle-bracket tax associated with executable XML by leveraging the PowerShell syntax in your build scripts. psake has a syntax inspired by rake (aka make in Ruby) and bake (aka make in Boo), but is easier to script because it leverages your existent command-line knowledge.
Beside making it compatible with PS 2.0, in version 2.01 psake has been rewritten as a PS module. The main benefits would be:
- Build scripts don't need to know where psake is installed, they just call Invoke-psake and it works.
- Encapsulation. Global variables are no longer required since they can be private to a module unless explicitly exported.
- Modules can be unloaded if needed which removes all the code and variables from memory.
Other enhancements in 2.01 are:
- Coding style is different.
- Try/Catch is used instead of the "Trap" statement.
- Got rid of the "exec" function.
- You can now define "Pre" and "Post" actions for a task.
- You can define how the task name will be formatted.
- You can define a "TaskSetup" function that will be executed before every task (took that from NUnit).
- You can define a "TaskTearDown" function that will be executed after every task (took that from NUnit too).
- Create a global variable called "psake_buildSucceeded" that will be set to true if the build succeeds - scripts can check this.
- Also added a "$noexit" switch to Run-Psake so that the function will not use the exit() function so that you can test a build script at the command line without PS closing down (the default behavior when the build fails is to call exit(1) so that the calling code can determine if the build failed or not).
- The psake-buildTester.ps1 had to be changed slightly in order for it to call the Invoke-psake function.
- Added more examples in the .\examples folder for POST conditions, PRE and POST Actions, etc.
Ayende Rahien wrote about using psake to build his Rhino Tools. The project initially used a NAnt-based built tool which turned out to be too complex, tending to create “zones of ‘there be dragons’, where only the initiated go, and even they go with trepidation.” After evaluating the possibility to use Rake or Bake, Rahien turned toward psake which did the job in 50 lines.
psake can be downloaded from GitHub under the MIT License.
Automating Error Reporting for .NET Applications
Visual Studio vNext: ALM features for Agile Planning, Team Collaboration
Troubleshoot Java/.NET performance while getting full visibility in production
In today’s hyper-competitive world, later may be too late to adopt Agile development and this Roadmap for Success will help you get started. Download "Agile Development: A Manager's Roadmap for Success" now!
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
Andrew Watson talks about the work of the OMG, where CORBA is alive and well (hint: in your car), UML and UML Profiles vs. custom Modeling languages, DDS and other middleware, and much more.
Sohil Shah discusses creating iPhone and Android enterprise mobile applications based on cloud services using the open source platform OpenMobster.
Paul Sanford presents the transformations supported by data throughout its life cycle, and how that can be better done with Splunk, an engine for monitoring and analyzing machine-generated data.
A common “best practice” for unit tests is to only write a one assertion in each test. I intend to question this advice by showing that multiple assertions per test are both necessary and beneficial.
John Rauser presents the architectural and technological evolution of Amazon retail websites starting with 1994 and ending with adopting Amazon Web Services.
Michael Stal discusses system architecture quality, how to avoid architectural erosion, how to deal with refactoring, and design principles for architecture evolution.
Every developer has had to integrate with another system, API or component. Tis article provides strategies to handle the change and for he separating system boundaries.
No comments
Watch Thread Reply