Welcome!

IBM Cloud Authors: Pat Romanski, Liz McMillan, Yeshim Deniz, Carmen Gonzalez, Elizabeth White

Related Topics: IBM Cloud, Microservices Expo, Linux Containers, Containers Expo Blog, @CloudExpo, @DevOpsSummit

IBM Cloud: Blog Feed Post

Docker Container Delivery | @DevOpsSummit #DevOps #Docker #Containers #Microservices

In the past, application deployment meant moving lots of components

Docker Container Delivery vs. Traditional App Delivery in XL Deploy
By Benoit Moussaud

In the past, application deployment meant moving lots of components - provided by developers to lots of servers, databases etc. managed by Operation. With Docker and containers, we often hear statements like: "That all goes away now - developers simply have to delver a ready-to-go Docker image, and we're done! No more need for app deployment tools like XL Deploy!

Having worked with many users moving towards container based deployments, it turns out that that statement simply isn't true: while Docker and containers can certainly make some aspect of packaging and deployment easier, many challenges remain that tools like XL Deploy can help with.

Here's how:

The packaging of an traditional application depends how it has been written : operating system (Linux, Windows), language (Java, C#, Ruby Python, JS..), its behaviors (Frontend, Backend, Web, Processing), using or not database (SQL, NoSql)... It is also true with the associated environment and its infrastructure : Host (Virtual, Cloud), the operating system (Linux, Windows), the middleware (Tomcat, Apache Httpd, IIS, IBM WebSphere, ..), the data (MySQL, MongoDB).

In XL Deploy, we would have the following classic deployment where

  • the PetPortal version 2.0-89 contains : petclinic (jee.War), petclinic-backedn (jee.War), petDatasource (jee.Datasource), sql (sql.SqlFolder), logger (a custom type to configure log4j.properties)
  • the Tomcat-Dev environment contains : tomcat-dev (tomcat.Server), tomcat.vh (tomcat.VirtualHost), sql-dev (sql.MySqlClient), smoke-test (smoketest.Runner).

The Docker's promise is the following : "one single kind of item in the package (docker.Image) will be deployed on a single kind of target (docker.Machine) to become a running Docker container."
What are the modifications If I package and deploy my PetPortal application using Docker ?

  • in the package, instead of having 2 ‘jee.War' file (petclinic, petclinic-backend), I would have 2 ‘docker.Image' based on a `tomcat:8.0` from the Docker hub and that contains the war file and its configuration but I would keep my ‘smoke test' and my ‘sql' folder. Moreover, I would need to package the property file externally to my image (a image is like a commit, do not modify it ! )
  • in the environment, I would replace the ‘tomcat.Server' and the ‘tomcat.VirtualHost' by a single ‘docker-machine' only and I would keep my ‘sql-dev' MySql SQL client, test-runner-1 (smoketest.Runner).

Finally few things has changed but the deployment task generated by XL Deploy is a bit different to use the ‘docker' commands:

  1. No more ‘war copy' steps but ‘docker pull' steps
  2. No more ‘start tomcat process' steps but ‘docker run' steps


If we detail into the docker run 2 commands generated by XL Deploy and its xld-docker-plugin:

  • for the ‘petclinic-backend' container, the command is simple as we can read in any docker blog post or documentation :   docker run -d -name petclinic-backend petportal/petclinic-backend:1.1-20150909055821
  • for the ‘petclinic' container, the command is a bit complex because we need to configure it - according to the documentation the ‘docker run' command may accept up to 56 parameters,  many of them can be added several times. In our simple case: we need
    • to link it with the petclinic-backend',
    • to manage exposed ports,
    • to mount volumes to apply the configuration,
    • to set environment variables:
  • so the generated command is : docker run -d -p 8888:8080 -link=petclinic-backend:petclinic-backend -v /home/docker/volumes/petportal:/application/properties -e "loglevel=DEBUG" -name petclinic petportal/petclinic:3.1-20150909055821

As the ‘petclinic' container needs to be linked to the ‘petclinic-backend', the xld-docker-plugin takes care to generate the steps in the right order to run first the linked container and then the other container.
Like the other middleware, the main pain point is not to call remote commands but to generate the right commands with the right configuration in the right order.
Two mains direction comes immediately:

  • the container configuration with its more than 50 parameters including the network, os, security settings: TCP port mapping, links with other containers, Memory, Privileges,....cf docker run documentation
  • the volume management, for example: The container configuration is often done by providing a set of files that need to be first uploaded to docker-machine and then mount the volume in the container; Same story when you run the container that manages data (e.g : SQL database)

In the following scenario, the configuration is managed by the ‘config' docker.Folder that contains placeholders in .properties files. When a value is modified,  the folder should be uploaded and the container restarted. The

So it can be difficult to manage the configuration for a given environment, but the application still needs to be deployed on several environment. XL Deploy's dictionaries help you. Moreover moving to Docker imply most of time moving to Microservices architecture that will imply more deployments. See the XL Deploy Docker Microservice Sample Application https://github.com/bmoussaud/xld-micropet-docker

« Does Docker announce the end of XL Deploy ?»  « Of course, not! » « Does XL Deploy help me and my organization to use Docker? »  « Of course! even XL Deploy will help your organization to move gradually to Docker. »

References

The post Docker Container Delivery vs. Traditional App Delivery in XL Deploy appeared first on XebiaLabs.

Related posts:

9 Companies You Wouldn't Expect To Be Using DevOps Docker Orchestration Made Easy Backstage with Andrew Phillips

Read the original blog entry...

More Stories By XebiaLabs Blog

XebiaLabs is the technology leader for automation software for DevOps and Continuous Delivery. It focuses on helping companies accelerate the delivery of new software in the most efficient manner. Its products are simple to use, quick to implement, and provide robust enterprise technology.

@ThingsExpo Stories
Mobile device usage has increased exponentially during the past several years, as consumers rely on handhelds for everything from news and weather to banking and purchases. What can we expect in the next few years? The way in which we interact with our devices will fundamentally change, as businesses leverage Artificial Intelligence. We already see this taking shape as businesses leverage AI for cost savings and customer responsiveness. This trend will continue, as AI is used for more sophistica...
Real IoT production deployments running at scale are collecting sensor data from hundreds / thousands / millions of devices. The goal is to take business-critical actions on the real-time data and find insights from stored datasets. In his session at @ThingsExpo, John Walicki, Watson IoT Developer Advocate at IBM Cloud, will provide a fast-paced developer journey that follows the IoT sensor data from generation, to edge gateway, to edge analytics, to encryption, to the IBM Bluemix cloud, to Wa...
What is the best strategy for selecting the right offshore company for your business? In his session at 21st Cloud Expo, Alan Winters, U.S. Head of Business Development at MobiDev, will discuss the things to look for - positive and negative - in evaluating your options. He will also discuss how to maximize productivity with your offshore developers. Before you start your search, clearly understand your business needs and how that impacts software choices.
SYS-CON Events announced today that Fusic will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Fusic Co. provides mocks as virtual IoT devices. You can customize mocks, and get any amount of data at any time in your test. For more information, visit https://fusic.co.jp/english/.
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...
SYS-CON Events announced today that Enroute Lab will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Enroute Lab is an industrial design, research and development company of unmanned robotic vehicle system. For more information, please visit http://elab.co.jp/.
SYS-CON Events announced today that MIRAI Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MIRAI Inc. are IT consultants from the public sector whose mission is to solve social issues by technology and innovation and to create a meaningful future for people.
SYS-CON Events announced today that Mobile Create USA will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Mobile Create USA Inc. is an MVNO-based business model that uses portable communication devices and cellular-based infrastructure in the development, sales, operation and mobile communications systems incorporating GPS capabi...
SYS-CON Events announced today that Interface Corporation will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Interface Corporation is a company developing, manufacturing and marketing high quality and wide variety of industrial computers and interface modules such as PCIs and PCI express. For more information, visit http://www.i...
SYS-CON Events announced today that Keisoku Research Consultant Co. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Keisoku Research Consultant, Co. offers research and consulting in a wide range of civil engineering-related fields from information construction to preservation of cultural properties. For more information, vi...
There is huge complexity in implementing a successful digital business that requires efficient on-premise and cloud back-end infrastructure, IT and Internet of Things (IoT) data, analytics, Machine Learning, Artificial Intelligence (AI) and Digital Applications. In the data center alone, there are physical and virtual infrastructures, multiple operating systems, multiple applications and new and emerging business and technological paradigms such as cloud computing and XaaS. And then there are pe...
SYS-CON Events announced today that SIGMA Corporation will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. uLaser flow inspection device from the Japanese top share to Global Standard! Then, make the best use of data to flip to next page. For more information, visit http://www.sigma-k.co.jp/en/.
SYS-CON Events announced today that B2Cloud will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. B2Cloud specializes in IoT devices for preventive and predictive maintenance in any kind of equipment retrieving data like Energy consumption, working time, temperature, humidity, pressure, etc.
Agile has finally jumped the technology shark, expanding outside the software world. Enterprises are now increasingly adopting Agile practices across their organizations in order to successfully navigate the disruptive waters that threaten to drown them. In our quest for establishing change as a core competency in our organizations, this business-centric notion of Agile is an essential component of Agile Digital Transformation. In the years since the publication of the Agile Manifesto, the conn...
While some developers care passionately about how data centers and clouds are architected, for most, it is only the end result that matters. To the majority of companies, technology exists to solve a business problem, and only delivers value when it is solving that problem. 2017 brings the mainstream adoption of containers for production workloads. In his session at 21st Cloud Expo, Ben McCormack, VP of Operations at Evernote, will discuss how data centers of the future will be managed, how th...
SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp em...
SYS-CON Events announced today that Nihon Micron will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Nihon Micron Co., Ltd. strives for technological innovation to establish high-density, high-precision processing technology for providing printed circuit board and metal mount RFID tags used for communication devices. For more inf...
SYS-CON Events announced today that Suzuki Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Suzuki Inc. is a semiconductor-related business, including sales of consuming parts, parts repair, and maintenance for semiconductor manufacturing machines, etc. It is also a health care business providing experimental research for...
SYS-CON Events announced today that Ryobi Systems will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ryobi Systems Co., Ltd., as an information service company, specialized in business support for local governments and medical industry. We are challenging to achive the precision farming with AI. For more information, visit http:...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Daiya Industry specializes in orthotic support systems and assistive devices with pneumatic artificial muscles in order to contribute to an extended healthy life expectancy. For more information, please visit https://www.daiyak...