Download presentation
Presentation is loading. Please wait.
Published byShavonne Elliott Modified over 8 years ago
1
當 Java 遇上 DevOps 黃忠成
2
Java In Azure Storage Table Storage Services NoSQL base storage Fast and Easy to use Blob Storage Services File Storage (photo, temp files) CDN Database SQL Database (PaaS) MySQL (PaaS/IaaS) Oracle(IaaS) Document DB(JSON base database) Web Hosting (PaaS) Azure App Services(Web App) Tomcat, Jetty, ie…. Services HockeyApp Notification Hub Application insights
3
Visual Studio Team Services & Java Source Control Build System Maven Gradle Ant Can link from other Source Control(GitHub, Subversion) Test System Integrated JUnit Deploy System Dropbox FTP HockeyApp
4
VSTS and DevOps Source CodeBuild Testing Deploy
5
Let’s start
6
You need? A Azure Account a IDE Eclipse IntelliJ IDEA
7
環境的準備 Creating a SQL Database
8
環境的準備 Creating Storage Services
9
以 Eclipse/Maven 建置 Web App The TodoListApp 以 Spring MVC 為基礎 透過 Hibernate 連接資料庫 使用 JUnit 進行單元測試 資料庫 Use SQL Database Use jTDS JDBC Driver 圖形的儲存 Use Blob Services to store photo
10
幾個重點 How To Connect to SQL Database How to store picture into blob
11
環境的準備 在 Azure 中建立一個 Web App 服務 關於 App Services plan 的概念
12
設定 Web App 服務的 Java 環境
13
Azure App Service 的優點 PaaS Staging/Production Deployment slot Monitoring Easy to Scale
14
Deploy to Azure App Services Modify Maven to deploy WebApp via FTP Test
15
Use Plug-In to help us Azure Toolkit for Eclipse Team Explorer Everywhere
16
How easy deploy with Tool? Demo
17
Source Control Create VSTS Account Create VSTS Site Create Project Push your code
18
Continuous integration Create a Build Definition Build when code is commit. Test when Build is Success
19
豐富的 Tasks 支援
20
Continuous Deployment Add Deploy Steps See how Build System working
21
Build&Test&Deploy when code is commit
22
除此之外,還有更多有用的雲端服務 Table Storage What’s Table Storage? Benefits Redis Cache What’s Redis Cache Benefits
23
Mobile Development
24
VSTS and Android VSTS Source Control can push any code, include Android. VSTS support Gradle, it’s Android Studio Build System. VSTS support JUnit, so can run Tests when build is done. VSTS support HockeyApp, can deploy to users when build and test is done.
25
Let’s start with Simple App
26
A Simple Android APP A Simple Calculator Add JUnit Test. Build & Test
27
Continuous integration Push into VSTS Create Build Definition
28
The Deploy? Introducing HockeyApp Platform Creating HockeyApp Account
29
Integrated to VSTS Install from Marketplace.
30
Integrated to VSTS Setup HockeyApp connection Add task into build definition
31
Let’s see it’s work or not.
32
Using Application Insights
33
What’s Application Insights Monitor Application Status Monitor Application Performances Detect Error and Diagnose
34
Creating
35
Setup Web App Enable Application Insights in Web App
36
Setup Web App Remove Azure Library, we are use Maven
37
Add interceptor to Spring MVC
38
The Result
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.