Amazines Free Article Archive
www.amazines.com - Wednesday, April 24, 2024
Read about the most recent changes and happenings at Amazines.com
Log into your account or register as a new author. Start submitting your articles right now!
Search our database for articles.
Subscribe to receive articles emailed straight to your email account. You may choose multiple categories.
View our newest articles submitted by our authors.
View our most top rated articles rated by our visitors.
* Please note that this is NOT the ARTICLE manager
Add a new EZINE, or manage your EZINE submission.
Add fresh, free web content to your site such as newest articles, web tools, and quotes with a single piece of code!
Home What's New? Submit/Manage Articles Latest Posts Top Rated Article Search
Google
Subscriptions Manage Ezines
CATEGORIES
 Article Archive
 Advertising (133573)
 Advice (161671)
 Affiliate Programs (34799)
 Art and Culture (73855)
 Automotive (145712)
 Blogs (75614)
 Boating (9851)
 Books (17223)
 Buddhism (4130)
 Business (1330639)
 Business News (426446)
 Business Opportunities (366518)
 Camping (10973)
 Career (72795)
 Christianity (15848)
 Collecting (11638)
 Communication (115089)
 Computers (241953)
 Construction (38962)
 Consumer (49953)
 Cooking (17080)
 Copywriting (6733)
 Crafts (18203)
 Cuisine (7549)
 Current Affairs (20319)
 Dating (45908)
 EBooks (19703)
 E-Commerce (48258)
 Education (185521)
 Electronics (83524)
 Email (6438)
 Entertainment (159855)
 Environment (28973)
 Ezine (3040)
 Ezine Publishing (5453)
 Ezine Sites (1551)
 Family & Parenting (111007)
 Fashion & Cosmetics (196605)
 Female Entrepreneurs (11853)
 Feng Shui (134)
 Finance & Investment (310615)
 Fitness (106469)
 Food & Beverages (63045)
 Free Web Resources (7941)
 Gambling (30227)
 Gardening (25202)
 Government (10519)
 Health (630137)
 Hinduism (2206)
 Hobbies (44083)
 Home Business (91657)
 Home Improvement (251211)
 Home Repair (46244)
 Humor (4723)
 Import - Export (5459)
 Insurance (45104)
 Interior Design (29616)
 International Property (3488)
 Internet (191031)
 Internet Marketing (146687)
 Investment (22861)
 Islam (1161)
 Judaism (1352)
 Law (80507)
 Link Popularity (4596)
 Manufacturing (20914)
 Marketing (99316)
 MLM (14140)
 Motivation (18233)
 Music (27000)
 New to the Internet (9496)
 Non-Profit Organizations (4048)
 Online Shopping (129734)
 Organizing (7813)
 Party Ideas (11855)
 Pets (38165)
 Poetry (2229)
 Press Release (12689)
 Public Speaking (5643)
 Publishing (7566)
 Quotes (2407)
 Real Estate (126700)
 Recreation & Leisure (95495)
 Relationships (87674)
 Research (16182)
 Sales (80350)
 Science & Technology (110291)
 Search Engines (23514)
 Self Improvement (153300)
 Seniors (6220)
 Sexuality (36010)
 Small Business (49312)
 Software (83034)
 Spiritual (23517)
 Sports (116155)
 Tax (7663)
 Telecommuting (34070)
 Travel & Tourism (308305)
 UK Property Investment (3123)
 Video Games (13382)
 Web Traffic (11790)
 Website Design (56919)
 Website Promotion (36663)
 World News (1000+)
 Writing (35843)
Author Spotlight
DESIGNPLUZ DIGITALAGENCY

Designpluz has steadily matured from a passionate graphics design start-up, into a full service digi...more
ELLIOT CHANG

Financial analyst and author writing on economy and business. ...more
TAL BARNEA

Tal is an electrical engineer with over 25 years of expertise with hardware, software, mechanical an...more
MANMOHAN SINGH

Digital marketing professional with 8 years of experience. A good listner, Stratgist and fun loving ...more
LEMUEL ASIBAL

Lemuel Asibal is a web content writer who also ventures on writing articles and blog posts about any...more


Best Automated software deployment by Leroy Deploy





Article Author Biography
Best Automated software deployment by
Article Posted: 10/20/2013
Article Views: 248
Articles Written: 2
Word Count: 747
Article Votes: 0
AddThis Social Bookmark Button

Best Automated software deployment


 
Software,Computers
Automated software deployment is the fundamental concept that Leroy was designed around achieving. In order to have a successful automated deployment, we must model the deployment into the following required steps:

Deployment syntax and basic property checks in the deployment engine. Ensuring configurations are sane in that properties are defined in all environments that defined in any given one, or declared global and that all properties that are used are defined. Pre-deployment checks to check for common failures such as: Proper available disk space. Proper available memory Any paths defined, exist. Any URLS defined, respond. Any databases defined, can be authenticated against with configured credentials. Any integration points are properly responding. All required software or components that need to be pre-installed, are installed and at the right versions. Ensuring that the version of the deployment, artifacts and configurations have previously been deployed to a: Continuous deployment environment Development integration environment so developers can test integration points with their new code. QA environment so QA testing has occurred on a given build. Staging environment that matches the architecture of production to test that the build works in the same environment and can pass the same tests as QA Post deployment checks that test to ensure the application has been deployed.

When building an automated software deployment workflow, we always must follow these rules:

All steps must be repeatable and cause the same result. For example, if we need to remove a folder and all files in it, such a statement must be wrapped around a conditional so we can run it again and it has no effect since the work has been done. For example:

The right way:

if [ -d folder ]; then echo "[INFO] Found folder and deleting" rm -rf folder fi

The wrong way:

rm -rf folder

All steps in a workflow must not have any environment specific logic that prevents it from working in all environments. A simple way to look at an automated software deployment is:

(one)workflow + (one of many)environments = deployment

Meaning, we should be able to run a deployment workflow on any environment. To enforce this idea, Leroy requires that all roles you define in an environment must be declared in all environments.

Any service you start, must be tested to ensure it has started. Any service you stop must be tested to ensure it has stopped. If these tests fail, the deployment must fail.

When possible, create a workflow that pre-stages the artifacts up to all hosts. This is just a speed optimization and an innate feature of Leroy that allows you to pre-stage artifacts to all desired hosts in the environment. It doesn't hurt to copy files and can continuously be done as builds are completed to any environment.

Break your deployment into stacks of versioned components and deploy everything so you have control over your stack. For instance, if you have a JBoss application, do not manually setup jboss on your server then setup an automated deployment of your .war / .ear artifacts. Rather, deploy a version of jboss, your overlays, configurations and your .war in your workflow. This way controlling your version of jboss is much simpler. This stacking concept can be done for any combination of services, configurations and artifacts. With this, one can make a workflow that creates an entire environment of an application, or a workflow that simply updates an existing one, all using common workflows that call each other.

Treat shell scripts or bat scripts like functions where the environment variables you set are inputs and the script operates on those inputs and always returns a 0 or non-zero value back to the shell. For example, when dealing with a windows service the following shell script does quite nicely.

Inputs:

SERVICE_NAME SERVICE_DIR SERVICE_FILE

@echo on set INSTALLUTIL=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe SC QUERY "%SERVICE_NAME%" > NUL IF ERRORLEVEL 1060 ( "%INSTALLUTIL%" /i "%SERVICE_DIR%\%SERVICE_FILE%" ) ELSE ( sc delete "%SERVICE_NAME%" "%INSTALLUTIL%" /i "%SERVICE_DIR%\%SERVICE_FILE%" )

Combining this command with a Leroy post-process script of:

The transacted install has completed

This will require the installutil to produce the output of: The transacted install has completed In order to be success, otherwise, this is failure.

Put it all together and you have a leroy workflow command with:

Installing service: FUNSERVICE ${FUNSERVICE_NAME} ${FUNSERVICE_DIR} ${FUNSERVICE_FILE}

For more info visit here: software deployment

continuous integration

Configuration Management

Related Articles - software deployment, continuous integration,

Email this Article to a Friend!

Receive Articles like this one direct to your email box!
Subscribe for free today!

 Rate This Article  
Completely useless, should be removed from directory.
Minimal useful information.
Decent and informative.
Great article, very informative and helpful.
A 'Must Read'.

 

Do you Agree or Disagree? Have a Comment? POST IT!

 Reader Opinions 
Submit your comments and they will be posted here.
Make this comment or to the Author only:
Name:
Email:
*Your email will NOT be posted. This is for administrative purposes only.
Comments: *Your Comments WILL be posted to the AUTHOR ONLY if you select PRIVATE and to this PUBLIC PAGE if you select PUBLIC, so write accordingly.
 
Please enter the code in the image:



 Author Login 
LOGIN
Register for Author Account

 

Advertiser Login

 

ADVERTISE HERE NOW!
   Limited Time $60 Offer!
   90  Days-1.5 Million Views  

 

Great Paranormal Romance


TIM FAY

After 60-plus years of living, I am just trying to pass down some of the information that I have lea...more
LAURA JEEVES

At LeadGenerators, we specialise in content-led Online Marketing Strategies for our clients in the t...more
ALEX BELSEY

I am the editor of QUAY Magazine, a B2B publication based in the South West of the UK. I am also the...more
GENE MYERS

Author of four books and two screenplays; frequent magazine contributor. I have four other books "in...more
SUSAN FRIESEN

Located in the lower mainland of B.C., Susan Friesen is a visionary brand strategist, entrepreneur, ...more
STEVERT MCKENZIE

Stevert Mckenzie, Travel Enthusiast. ...more
STEPHEN BYE

Steve Bye is currently a fiction writer, who published his first novel, ‘Looking Forward Through the...more
SHALINI MITTAL

A postgraduate in Fashion Technology. Shalini is a writer at heart! Writing for her is an expression...more
ADRIAN JOELE

I have been involved in nutrition and weight management for over 12 years and I like to share my kn...more
JAMES KENNY

James is a Research Enthusiast that focuses on the understanding of how things work and can be impro...more

HomeLinksAbout UsContact UsTerms of UsePrivacy PolicyFAQResources
Copyright © 2024, All rights reserved.
Some pages may contain portions of text relating to certain topics obtained from wikipedia.org under the GNU FDL license