Lab 03 Finish and Deploy an Application. Lab 3-1: Add DELETE to the Spring Boot REST Application

Similar documents
Lesson 7: Recipe Display Application Setup Workspace

Continuous Integration (CI) with Jenkins

Oracle Code Day Hands On Labs (HOL) (Install, Repository, Local Deploy, DevCS, OACCS)

Deploy Oracle Spatial and Graph Map Visualization Component to Oracle Cloud

0. Introduction On-demand. Manual Backups Full Backup Custom Backup Store Your Data Only Exclude Folders.

1. Verticurl App Account Creation Configuration Setup in Verticurl App Content Library Folder Creation... 3

Azure Archival Installation Guide

Oracle Code Day Hands On Labs HOL

Developing Solutions for Google Cloud Platform (CPD200) Course Agenda

Continuous Integration, Continuous Deployment and Continuous Testing by HP Codar using ALM and Jenkins

Sample Spark Web-App. Overview. Prerequisites

TECHNICAL NOTES. Configuring BrightAuthor for BSNEE

Oracle Cloud Developing for Oracle Application Container Cloud Service

Lab 5: Working with REST APIs

Lab 5: Working with REST APIs

OAM 2FA Value-Added Module (VAM) Deployment Guide

Google Cloud Platform for Systems Operations Professionals (CPO200) Course Agenda

DevOps examples on NonStop Tools Overview. Cor Geboers, ATC Consultant

Infinity Management Guide

Healthcare Database Connector

How to Automate in EPM Cloud with the EPM Automate Utility By John Taylor. November 8 th, 2017

Publishing and Subscribing to Cloud Applications with Data Integration Hub

Demo KACE K1000 System Management Appliance

(Cloud9) and to the Remote Repository (GitHub)

Guide - Deploying for Production. apiman Final

Cloud Computing II. Exercises

PASSPORTAL PLUGIN DOCUMENTATION

Continuous Integration & Code Quality MINDS-ON NUNO 11 APRIL 2017

BUILD AND DEPLOY ORACLE SERVICE BUS PROJECTS FROM ORACLE DEVELOPER CLOUD SERVICE TO ORACLE SOA CLOUD SERVICE USING THE ORACLE SERVICE BUS PLUG-IN

McAfee MER for EPO 3.1 Walkthrough Guide. About this guide This guide provides information on how to use McAfee MER for EPO 3.1.

Tasktop Sync - Cheat Sheet

This tutorial provides a basic understanding of the infrastructure and fundamental concepts of managing an infrastructure using Chef.

Version Control. Version Control

BlueMix Hands-On Workshop Lab A - Building and Deploying BlueMix Applications

CloudHealth. AWS and Azure On-Boarding

Moving data to the cloud using the MoveToCloud script

ForgeRock Access Management Customization and APIs

Info Error Deploying Artifact Failed To Transfer File Return Code Is 401

WebSphere Puts Business In Motion. Put People In Motion With Mobile Apps

Deployment Guide for Nuage Networks VSP

271 Waverley Oaks Rd. Telephone: Suite 206 Waltham, MA USA

Deployment Guide for Nuage Networks VSP

VMware vrealize Code Stream Reference Architecture. 12 APRIL 2018 vrealize Code Stream 2.4

Web Sites in Production

SUREedge MIGRATOR INSTALLATION GUIDE FOR HYPERV

SUREedge MIGRATOR INSTALLATION GUIDE FOR NUTANIX ACROPOLIS

Genesys Administrator Extension Help. Profile Menu

Course AZ-100T01-A: Manage Subscriptions and Resources

Azure Developer Immersion Getting Started

Quick Start Guide v3. Nuage Networks 755 Ravendale Drive Mountain View, CA 94043

Using the SQL CI TeamCity plugin in SQL Automation Pack

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright. Jenkins

MuleSoft.U Development Fundamentals (Mule 4) Setup Instructions

BUILD AND DEPLOY SOA PROJECTS FROM DEVELOPER CLOUD SERVICE TO ORACLE SOA CLOUD SERVICE

VMware vrealize Code Stream Reference Architecture. 16 MAY 2017 vrealize Code Stream 2.3

vrealize Code Stream Trigger for Gerrit

DevNet Workshop-Hands-on with CloudCenter and Jenkins

Lab 3. On-Premises Deployments (Optional)

File Uploader Application

Getting Started with the Deployment Console and Deploying the Clients Per PXE Network Booting using their MAC address. Quick Guide

SLI Learning Search Connect For Magento 2

Tripwire App for QRadar Documentation

Managing Installations and Provisioning of OSGi Applications. Carsten Ziegeler

TangeloHub Documentation

App Studio 4.0 Deployment Guide

Live Data Connection to SAP Universes

Version Control System GIT

Jenkins: AMPLab s Friendly Butler. He will build your projects so you don t have to!

Source Control. Deployment. What usync Does. usync Versions

How to Build an Appium Continuous Testing Pipeline

Continuous Integration and Deployment (CI/CD)

Lab 19: Event Handlers for User Entities

Developing Microsoft Azure Solutions (70-532) Syllabus

At Course Completion Prepares you as per certification requirements for AWS Developer Associate.

Symantec Ghost Solution Suite Web Console - Getting Started Guide

Leveraging the OO Jenkins Plugin in DevOps scenarios

Course 20533B: Implementing Microsoft Azure Infrastructure Solutions

Cloud Print Migration Step-by-Step Deployment Guide

AWS Remote Access VPC Bundle

SUG Breakout Session: OSC OnDemand App Development

Snapshot Best Practices: Continuous Integration

DreamFactory Security Guide

SUREedge DR Installation Guide for Windows Hyper-V

Deploy. A step-by-step guide to successfully deploying your new app with the FileMaker Platform

ForgeRock Identity Management Core Concepts IDM-400 Course Description

Understanding Remedyforce Sandboxes

Exercise 1. Bluemix and the Cloud Foundry command-line interface (CLI)

OIG 11G R2 Field Enablement Training

SAFARI Montage v6.5.28

Getting Started with Cisco UCS Director Open Automation

Azure Marketplace Getting Started Tutorial. Community Edition

Using the Bluemix CLI IBM Corporation

Colligo Engage Console. User Guide

JMP to LSAF Add-in. User Guide v1.1

This document details the procedure for installing Layer8 software agents and reporting dashboards.

Carbon Black QRadar App User Guide

Storing and Managing Code with CVS

Immersion Day. Getting Started with Amazon RDS. Rev

SpringSource Tool Suite 2.7.1

Deploy. Your step-by-step guide to successfully deploy an app with FileMaker Platform

Transcription:

Lab 03 Finish and Deploy an Application In this lab, you ll finish your version of the application featured in Lab 1. This includes creating the remaining REST calls. Test your work locally as you develop. When you re finished, you ll explore build and deployment options. Lab 3-1: Add DELETE to the Spring Boot REST Application Your application is nearly complete. All that remains is to write the DELETE method and add CORS support. POST and PUT methods are included in the EmployeeController class. Study these to figure out how to write your DELETE method. 1. Continue your project from Week 2. If you got stuck, you can download the Week 2 solution from the Lesson 2 page. 2. In your IDE, open EmployeeController.java. Create a DELETE method handler for a delete method. This method should: a. Remove the employee whose ID is specified in the URL. For example: http://localhost:8080/employees/100 b. Return an appropriate error message if the employee does not exist. 3. Add CORS support to your application. 4. Test your code locally. Commit your changes when you re satisfied. a. A standalone HTML5 client is provided in the course links if you wish to test the client from the local hard disk.

Lab 3-2: Deploy your Application from the Command Line using the REST API (Optional) In this lab, interact with the Oracle Application Container Cloud Service by creating and deploying an application. The application is provided for you, just follow these steps to deploy it. Download Employee REST Application First, you download the final version of the application you will build in this course. The application is contained in an application archive zip that is ready to deploy. You will deploy the application to Oracle Application Container Cloud Service and examine its features. Oracle REST API and Required Information Oracle Cloud provides a REST API for managing your applications in the cloud. Using the REST API, you can create scripts to upload and deploy your application. Scripts have been provided for you in the curl directory that demonstrate common operations you may perform. Before you begin, you need several pieces of information for your scripts. Username: The user name you use to log into Oracle Cloud Service. Password: The password you need to log into Oracle Cloud Service. Identity Domain: Your identity domain is essentially your account name. It defined a shared cloud service space you share with your team. -2-

Storage REST Endpoint: This is the URL you use to send REST commands to the Storage Cloud Service. To get this information: o Log in to your cloud account. o Click on Storage on the cloud service dashboard. This will show you the service details for this service. o A number of data fields are shown, at the end is REST Endpoint. o Save this URL locally. It is your Storage REST Endpoint. It has the following structure: https://identitydomain.storage.oraclecloud.com/v1/storage-identitydomain Where IdentityDomain is replaced with your actual identity domain. Service REST Endpoint: This is the URL you use to send REST commands to the Oracle Application Container Cloud Service. To get this information: o Log in to your cloud account. o Click on Application Container on the cloud service dashboard. This will show you the service details for this service. o Several data fields are shown, at the end is a REST Endpoint. o Save this URL locally. It is your REST Endpoint for this service. It has the following structure: https://apaas.region.oraclecloud.com/ Where Region is replaced with your actual region. REST API Documentation: To find the operations you can perform for each cloud service, visit the documentation pages for each respective service. Both Oracle Application Container Cloud Service and Storage Cloud Service provide details and -3-

examples of the REST operations that are available for the service. Upload Your Application to Storage Cloud Service The steps that follow perform these basic operations: list storage contents, create a storage container, and upload a application archive to a storage container. 1. List the contents of your storage space by creating listall.sh. curl -i -X GET -u user@example.com:password https://identitydomain.storage.oraclecloud.com/v1/storage-identity-domain/ b. Execute the script from a bash shell. You get a list of containers created in your storage space. 2. Create the apps storage container by creating the create.sh script. curl -i -X PUT -u user@example.com:password https://identitydomain.storage.oraclecloud.com/v1/storage-identity-domain/apps b. Execute the script from a bash shell. You get a confirmation message that your container was created. 3. Run the listall.sh script to verity that your container was created. The apps directory should be included in the list. -4-

4. Upload your application file your storage container by creating upload.sh. curl -i -v -X PUT -u user@example.com:password https://identitydomain.storage.oraclecloud.com/v1/storage-identitydomain/apps/employeerestapp-1.0-dist.zip -T /c/labs/springrepo/employeerestapp/target/employeerestapp-1.0- dist.zip b. Execute the script from a bash shell. You get a confirmation message that your application was uploaded. 5. List the contents of your apps container by creating a list.sh script that takes the folder name as a parameter. For example: list.sh apps curl -i -X GET -u user@example.com:password https://idenitydomain.storage.oraclecloud.com/v1/storage-idenity-domain/$1 b. Execute the script from a bash shell. You get a list of files or containers in the apps container. Deploy Your Application Finally, the application needs to be deployed. 6. Deploy the application stored in your storage apps container by creating deploy.sh. -5-

service REST Endpoint. The contents should look similar to curl -i -v -X POST -u user@example.com:password\ -H "X-ID-TENANT-NAME:identity-domain"\ -H "Content-Type: multipart/form-data"\ -F "name=employeerestapp1"\ -F "runtime=java"\ -F "subscription=monthly"\ -F deployment=@deployment.json \ -F "archiveurl=/c/labs/springrepo/employeerestapp/target /EmployeeRESTApp-1.0-dist.zip"\ -F "notes=rest app for testing"\ https://apaas.region.oraclecloud.com/paas/service/apaas/api/v1.1 /apps/identity-domain b. Execute the script from a bash shell. c. Open the service console for Oracle Application Container Cloud. d. Refresh the application list a few times. Your application should appear in the list after a few seconds. The application should fully deploy in a few minutes. Your application now deployed. Lab 3-3: Create an Automated Build Job for your Application (Optional) In this lab, use Oracle Developer Cloud Service to create an automated build of your project. 1. Create a Build Job named SpringBuild. 2. Configure the job to use your Git repository. -6-

3. Add a Maven step to build your application. 4. Configure the job to save your JAR and ZIP archives. 5. Build your application from Developer Cloud Service. Lab 3-4: Create an Automated Deployment for your Application (Optional) In this lab, use Oracle Developer Cloud Service to create an automated deployment configuration for your project. 1. Add a build trigger to your build job to perform a build after a commit is made to your repository. 2. Create a Deploy Configuration named Spring Deploy. 3. Make the configuration automatic based on stable builds. 4. Specify Oracle Application Container Cloud Service as your deployment target. 5. Test your configuration. a. Add a comment to your source code. b. Commit the change to your local repository. c. Push your changes to the cloud. 6. Track the process until your application is deployed. -7-