Skip to content

Commit 097ffca

Browse files
committed
Revert "Try again with AOT to see if it speeds things up"
It does seem to improve startup time, but I don't think it belongs in this PR This reverts commit 51094e5.
1 parent 51094e5 commit 097ffca

File tree

3 files changed

+2
-25
lines changed

3 files changed

+2
-25
lines changed

.github/workflows/gradle-build-native-feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
- name: Build a native docker image
4242
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
4343
with:
44-
arguments: optimizedDockerBuildNative
44+
arguments: dockerBuildNative

.github/workflows/gradle-deploy-native-develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
run: |-
5757
gcloud --quiet auth configure-docker
5858
- name: Build a native docker image
59-
run: ./gradlew optimizedDockerBuildNative
59+
run: ./gradlew dockerBuildNative
6060
env:
6161
VITE_APP_API_URL: https://checkins-develop-native-832140020593.us-central1.run.app
6262
- name: Push the Docker image to Google Container Registry

server/build.gradle

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ plugins {
44
id 'maven-publish'
55
id("com.gradleup.shadow") version "8.3.1"
66
id("io.micronaut.application") version "4.4.0"
7-
id("io.micronaut.aot") version "4.4.0"
87
id "jacoco"
98
id("org.openrewrite.rewrite") version "latest.release"
109
}
@@ -27,20 +26,6 @@ micronaut {
2726
incremental(true)
2827
annotations("com.objectcomputing.checkins.*")
2928
}
30-
aot {
31-
// Please review carefully the optimizations enabled below
32-
// Check https://micronaut-projects.github.io/micronaut-aot/latest/guide/ for more details
33-
optimizeServiceLoading = false
34-
convertYamlToJava = false
35-
precomputeOperations = true
36-
cacheEnvironment = true
37-
optimizeClassLoading = true
38-
deduceEnvironment = true
39-
optimizeNetty = true
40-
replaceLogbackXml = true
41-
configurationProperties.put("micronaut.security.jwks.enabled","false")
42-
configurationProperties.put("micronaut.security.openid-configuration.enabled","false")
43-
}
4429
}
4530

4631
dockerBuildNative {
@@ -51,14 +36,6 @@ dockerBuildNative {
5136
images = ["checkins:latest"] + imageNameFromGithub
5237
}
5338

54-
optimizedDockerBuildNative {
55-
def imageNameFromGithub = []
56-
if (System.getenv('PROJECT_ID') != null && System.getenv('SERVICE_NAME') && System.getenv('GITHUB_SHA')) {
57-
imageNameFromGithub = ["gcr.io/${System.getenv('PROJECT_ID')}/${System.getenv('SERVICE_NAME')}:${System.getenv("GITHUB_SHA")}".toString()]
58-
}
59-
images = ["checkins:latest"] + imageNameFromGithub
60-
}
61-
6239
graalvmNative {
6340
toolchainDetection = false
6441
binaries {

0 commit comments

Comments
 (0)