Skip to content

Commit

Permalink
Move /clouds/ under native-image
Browse files Browse the repository at this point in the history
  • Loading branch information
olyagpl committed Dec 19, 2024
1 parent 77c034b commit 3a84e77
Show file tree
Hide file tree
Showing 110 changed files with 65 additions and 57 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/clouds-native-aws-fargate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: clouds/native-aws-fargate
on:
push:
paths:
- 'clouds/native-aws-fargate/**'
- 'native-image/clouds/native-aws-fargate/**'
- '.github/workflows/clouds-native-aws-fargate.yml'
pull_request:
paths:
- 'clouds/native-aws-fargate/**'
- 'native-image/clouds/native-aws-fargate/**'
- '.github/workflows/clouds-native-aws-fargate.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -27,5 +27,5 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run 'clouds/native-aws-fargate'
run: |
cd clouds/native-aws-fargate
cd native-image/clouds/native-aws-fargate
./mvnw package -Dpackaging=docker-native
8 changes: 4 additions & 4 deletions .github/workflows/clouds-native-aws-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: clouds/native-aws-lambda
on:
push:
paths:
- 'clouds/native-aws-lambda/**'
- 'native-image/clouds/native-aws-lambda/**'
- '.github/workflows/clouds-native-aws-lambda.yml'
pull_request:
paths:
- 'clouds/native-aws-lambda/**'
- 'native-image/clouds/native-aws-lambda/**'
- '.github/workflows/clouds-native-aws-lambda.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -27,9 +27,9 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run 'clouds/native-aws-lambda java'
run: |
cd clouds/native-aws-lambda
cd native-image/clouds/native-aws-lambda
./mvnw package
- name: Run 'clouds/native-aws-lambda native image'
run: |
cd clouds/native-aws-lambda
cd native-image/clouds/native-aws-lambda
./mvnw package -Dpackaging=docker-native
6 changes: 3 additions & 3 deletions .github/workflows/clouds-native-google-cloud-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: clouds/native-google-cloud-run
on:
push:
paths:
- 'clouds/native-google-cloud-run/**'
- 'native-image/clouds/native-google-cloud-run/**'
- '.github/workflows/clouds-native-google-cloud-run.yml'
pull_request:
paths:
- 'clouds/native-google-cloud-run/**'
- 'native-image/clouds/native-google-cloud-run/**'
- '.github/workflows/clouds-native-google-cloud-run.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -27,5 +27,5 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run 'clouds/native-google-cloud-run'
run: |
cd clouds/native-google-cloud-run
cd native-image/clouds/native-google-cloud-run
./mvnw package -Dpackaging=docker-native
8 changes: 6 additions & 2 deletions .github/workflows/clouds-native-oci-cloud-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: clouds/native-oci-cloud-shell
on:
push:
paths:
- 'clouds/native-oci-cloud-shell/**'
- 'native-image/clouds/native-oci-cloud-shell/**'
- '.github/workflows/clouds-native-oci-cloud-shell.yml'
pull_request:
paths:
- 'native-image/clouds/native-oci-cloud-shell/**'
- '.github/workflows/clouds-native-oci-cloud-shell.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -25,7 +29,7 @@ jobs:
native-image-job-reports: 'true'
- name: Run 'clouds/native-oci-cloud-shell'
run: |
cd clouds/native-oci-cloud-shell
cd native-image/clouds/native-oci-cloud-shell
mvn --no-transfer-progress clean package
java -jar target/my-app-1.0-SNAPSHOT.jar
mvn --no-transfer-progress clean -Pnative -DskipTests package
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/clouds-native-oci-container-instances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: clouds/native-oci-container-instances
on:
push:
paths:
- 'clouds/native-oci-container-instances/**'
- 'native-image/clouds/native-oci-container-instances/**'
- '.github/workflows/clouds-native-oci-container-instances.yml'
pull_request:
paths:
- 'clouds/native-oci-container-instances/**'
- 'native-image/clouds/native-oci-container-instances/**'
- '.github/workflows/clouds-native-oci-container-instances.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -27,5 +27,5 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run 'clouds/native-oci-container-instances'
run: |
cd clouds/native-oci-container-instances
cd native-image/clouds/native-oci-container-instances
./mvnw package -Dpackaging=docker-native
6 changes: 3 additions & 3 deletions .github/workflows/clouds-native-oci-generative-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: clouds/native-oci-generative-ai
on:
push:
paths:
- 'clouds/native-oci-generative-ai/**'
- 'native-image/clouds/native-oci-generative-ai/**'
- '.github/workflows/clouds-native-oci-generative-ai.yml'
pull_request:
paths:
- 'clouds/native-oci-generative-ai/**'
- 'native-image/clouds/native-oci-generative-ai/**'
- '.github/workflows/clouds-native-oci-generative-ai.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -27,5 +27,5 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run 'native-oci-generative-ai'
run: |
cd clouds/native-oci-generative-ai
cd native-image/clouds/native-oci-generative-ai
mvn --batch-mode clean package -Pnative
82 changes: 43 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,72 +26,76 @@ You can find demos, along with how-to guides for GraalJS, GraalPy, and GraalWasm

Example applications showcasing the capabilities of GraalVM Native Image, including performance optimization and configuration tips.

### Build
#### Build
Demos for building native images, including configurations and setup steps for various use cases.

* hello-world -
* build-java-modules -
* build-shared-library -
* build-static-images -
* build-with-js-embedded -
* list-files -
* native-build-tools -
* [hello-world](native-image/hello-world/) -
* [build-from-jar](native-image/build-from-jar/) -
* [build-java-modules](native-image/build-java-modules/) -
* [build-shared-library](native-image/build-shared-library/) -
* [build-static-images](native-image/build-static-images/) -
* [build-with-js-embedded](native-image/build-with-js-embedded/) -
* [list-files](native-image/list-files/) -
* [native-build-tools](native-image/native-build-tools/) -

### Benchmark
#### Benchmark
Performance measurement demos for Native Image.

* jmh/binary-tree -
* [jmh/binary-tree](native-image/benchmark/jmh/binary-tree/) -

### Clouds
#### Clouds
Demos showcasing the building and deployment of native applications to Oracle Cloud Infrastructure (OCI), AWS, and Google Cloud.

* native-aws-fargate -
* native-aws-lambda -
* native-google-cloud-run -
* native-oci-container-instances -
* native-oci-generative-ai -
* [native-aws-fargate](native-image/clouds/native-aws-fargate/) -
* [native-aws-lambda](native-image/clouds/native-aws-lambda/) -
* [native-google-cloud-run](native-image/clouds/native-google-cloud-run/) -
* [native-oci-cloud-shell](native-image/clouds/native-oci-cloud-shell/) -
* [native-oci-container-instances](native-image/clouds/native-oci-container-instances/) -
* [native-oci-generative-ai](native-image/clouds/native-oci-generative-ai/) -

### Configure
#### Configure

* configure-with-tracing-agent -
* include-metadata -
* include-resources -
* use-system-properties -
* [access-environment-variables](native-image/access-environment-variables/) -
* [configure-with-tracing-agent](native-image/configure-with-tracing-agent/) -
* [include-metadata](native-image/include-metadata/) -
* [include-resources](native-image/include-resources/) -
* [specify-class-init](native-image/specify-class-init/) -
* [use-system-properties](native-image/use-system-properties/) -

### Containerize
#### Containerize
Demos focusing on containerizing native Java applications and following best practices.

* spring-boot-microservice-jibber -
* tiny-java-containers -
* [spring-boot-microservice-jibber](native-image/containerize/spring-boot-microservice-jibber/) -
* [tiny-java-containers](native-image/containerize/tiny-java-containers/) -

### Monitor
#### Monitor
Demos showcasing how to monitor native applications using observability and diagnostics tools.

* add-jfr -
* add-jmx -
* add-logging -
* create-heap-dump -
* emit-build-report -
* [add-jfr](native-image/add-jfr/) -
* [add-jmx](native-image/add-jmx/) -
* [add-logging](native-image/add-logging/) -
* [create-heap-dump](native-image/create-heap-dumps/) -
* [embed-sbom](native-image/embed-sbom/) -

### Microservices
#### Microservices
Demos for building microservices ahead of time using frameworks such as Micronaut and Spring Boot.

* micronaut-hello-rest-gradle -
* micronaut-hello-rest-maven -
* [micronaut-hello-rest-gradle](native-image/microservices/micronaut-hello-rest-gradle) -
* [micronaut-hello-rest-maven](native-image/microservices/micronaut-hello-rest-maven) -

### Optimize
Demos optimizing native application for different criteria (runtime and performance tuning, file size, build time, and more).
#### Optimize
Demos optimizing native applications for different criteria (runtime and performance tuning, file size, build time, and more).

* optimize-memory -
* optimize-with-pgo -
* specify-class-init -
* [emit-build-report](native-image/emit-build-report/) -
* [optimize-memory](native-image/optimize-memory/) -
* [optimize-with-pgo](native-image/optimize-with-pgo/) -

## Compiler Demos

Demos designed to test and showcase the capabilities of the Graal Just-In-Time (JIT) compiler.
These examples focus on evaluating the compiler's performance, including its optimizations for modern Java workloads.

* - java-stream-benchmark
* - [java-stream-benchmark](compiler/java-stream-benchmark/)

## Archived Demos

Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3a84e77

Please sign in to comment.