Java Magazine, Mar/Apr 2018
ORACLE COM JAVAMAGAZINE MARCH APRIL 2018 40 microservices and containers the given parameterized version based on the newly created image Listing 3 Creating a new service indented lines are continuations of the previous line curl ski X POST H Authorization Bearer BEARER https CLOUDIP api v2 services data @ WORKSPACE new service json The command uses a JSON file as input and is available online After the service is created I need to create a new deployment from the service The deployment is a running instance of the service The command for creating a new deployment on the Oracle Cloud service is shown in Listing 4 Listing 4 Creating a new deployment indented lines are continuations of the previous line curl ski X POST H Authorization Bearer BEARER https CLOUDIP api v2 deployments data @ WORKSPACE create deployment json The command again uses a generic JSON file as input After the pipeline is completely processed you can find the complete pipeline file here the container based on the new version of the Docker image runs and can be inspected in the cloud console see Figure 5 dont be surprised by the names I like cats The change is now live and available in the cloud Now you have to check the public web page to determine whether the new content is really available Figure 6 shows that it is working correctly Conclusion This completes the journey of bringing code changes into production based on tools such as Jenkins and Docker while emphasizing DevOps concepts and tools This article shows how
You must have JavaScript enabled to view digital editions.