Java Magazine, Mar/Apr 2018
ORACLE COM JAVAMAGAZINE MARCH APRIL 2018 35 microservices and containers the generated WAR file is deployable packages the WAR file into a Docker image and checks whether the Docker container can be run and thus start the web application If so it transfers the WAR file as well as the Docker image to my companys binary repository manager which is hosted with JFrog Artifactory Artifactory serves as a Docker registry to manage our Docker images The WAR file and Docker image are placed in the repository on Artifactory and I can navigate from Jenkins to Artifactory and back for traceability Listing 1 shows a snippet from a pipeline script I wrote in Groovy that shows how to bring binaries from Jenkins to JFrog Artifactory while adding context information See the Jenkins pipeline for details Listing 1 Excerpt of a pipeline script to move Docker images to JFrog Artifactory and label them with metadata def artDocker Artifactory docker server server host tcp 127001 1234 artDocker addProperty eat pizza addProperty drink beer def dockerInfo artDocker push ARTI3REGISTRY michaelhuettermann alpine tomcat7 version docker local buildInfo append dockerInfo server publishBuildInfo buildInfo In DevOps left shifting and right shifting describe moving activities from the classic software development approaches to earlier in the pipeline left shift or later in the pipeline right shift In my case the left shift means packaging production ready containers early in the process and the right shift is putting Dockerfiles and other configuration items into version control as part of the same baseline business application The Jenkins pipeline is set up with a Jenkins pipeline visualization and creation feature called Jenkins Blue Ocean and its domain specific language DSL This strongly overlaps with
You must have JavaScript enabled to view digital editions.