Skip to content

Commit a792fc6

Browse files
committed
new deployment type - no container
1 parent 90f16a3 commit a792fc6

9 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/azure-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# =============================================================================
2-
# Performance Problem Simulator - Java Blessed Image
3-
# GitHub Actions Workflow for Azure App Service Deployment
2+
# Performance Problem Simulator - Java
3+
# GitHub Actions Workflow for Azure App Service (Java SE on Linux)
44
# =============================================================================
55

66
name: Build and Deploy to Azure App Service
@@ -13,7 +13,7 @@ on:
1313

1414
env:
1515
JAVA_VERSION: '21'
16-
AZURE_WEBAPP_NAME: perfsimjava3
16+
AZURE_WEBAPP_NAME: perfsimjava
1717
AZURE_RESOURCE_GROUP: rhamlettRG
1818

1919
permissions:

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# =============================================================================
2-
# Performance Problem Simulator - Java Blessed Image
3-
# Dockerfile for Azure App Service Linux Container
2+
# Performance Problem Simulator - Java
3+
# Dockerfile for local development and testing
44
# =============================================================================
55

6-
# Use Microsoft's official Java 21 runtime image (matches Azure blessed image)
6+
# Use Microsoft's official Java 21 runtime image
77
FROM mcr.microsoft.com/openjdk/jdk:21-ubuntu
88

99
# Set working directory

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Performance Problem Simulator - Java Blessed Image
1+
# Performance Problem Simulator - Java
22

33
A Java 21 Spring Boot application designed to simulate various performance problems for testing Azure App Service diagnostics and monitoring tools.
44

@@ -33,7 +33,7 @@ This application allows you to deliberately trigger different types of performan
3333

3434
## Technology Stack
3535

36-
- **Runtime**: Java 21 (Blessed Image)
36+
- **Runtime**: Java 21 (Built-in Linux Runtime)
3737
- **Framework**: Spring Boot 3.3
3838
- **Build**: Maven
3939
- **WebSocket**: STOMP over SockJS
@@ -42,13 +42,13 @@ This application allows you to deliberately trigger different types of performan
4242

4343
## Deployment
4444

45-
This application is designed to run on Azure App Service using the Java 21 Blessed Image on Linux.
45+
This application is designed to run on Azure App Service using the built-in Java 21 SE runtime on Linux.
4646

4747
### GitHub Actions CI/CD (Recommended)
4848

49-
1. Create an Azure App Service (Linux, Java 21)
50-
2. Download the publish profile from Azure Portal
51-
3. Add it as a GitHub secret named `AZURE_WEBAPP_PUBLISH_PROFILE`
49+
1. Create an Azure App Service (Linux, Java 21 SE built-in runtime)
50+
2. Configure OIDC authentication (see [Azure Deployment Guide](/azure-deployment.html))
51+
3. Add GitHub secrets: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_SUBSCRIPTION_ID`
5252
4. Push to `main` branch - the workflow will build and deploy automatically
5353

5454
### Manual Deployment

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
</dependencies>
101101

102102
<build>
103-
<!-- Output JAR named 'app.jar' for Azure App Service blessed image compatibility -->
103+
<!-- Output JAR named 'app.jar' for Azure App Service deployment -->
104104
<finalName>app</finalName>
105105
<plugins>
106106
<plugin>

src/main/java/com/microsoft/azure/samples/perfsimjava/PerfSimJavaApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class PerfSimJavaApplication {
3939
public static void main(String[] args) {
4040
// Print startup banner
4141
System.out.println("=".repeat(70));
42-
System.out.println(" Performance Problem Simulator - Java Blessed Image (Java|21)");
42+
System.out.println(" Performance Problem Simulator - Java (Java|21)");
4343
System.out.println("=".repeat(70));
4444
System.out.println(" WARNING: This application intentionally causes performance problems!");
4545
System.out.println(" Use only in controlled environments for training purposes.");

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# =============================================================================
2-
# Performance Problem Simulator - Java Blessed Image
2+
# Performance Problem Simulator - Java
33
# Spring Boot Application Properties
44
# =============================================================================
55

src/main/resources/static/js/charts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* =============================================================================
2-
Performance Problem Simulator - Java Blessed Image
2+
Performance Problem Simulator - Java
33
Charts Module (Chart.js Integration) - Updated for new layout
44
============================================================================= */
55

src/main/resources/static/js/dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* =============================================================================
2-
Performance Problem Simulator - Java Blessed Image
2+
Performance Problem Simulator - Java
33
Dashboard Module (UI Logic)
44
============================================================================= */
55

src/main/resources/static/js/socket-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* =============================================================================
2-
Performance Problem Simulator - Java Blessed Image
2+
Performance Problem Simulator - Java
33
WebSocket Client (STOMP over SockJS)
44
============================================================================= */
55

0 commit comments

Comments
 (0)