Skip to content

Commit 39e7f18

Browse files
authored
feature/synt_aap (#4237)
New Java implementation of old synthdata-arena-aap.
1 parent ceb1db7 commit 39e7f18

59 files changed

Lines changed: 3715 additions & 53 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: synt-aap
2+
3+
on:
4+
push:
5+
paths:
6+
- .github/workflows/synt.synt-aap.yml
7+
- synt/synt-aap/**
8+
- libs/testing/**
9+
- libs/texas/**
10+
- plugins/**
11+
12+
jobs:
13+
workflow:
14+
uses: ./.github/workflows/common.workflow.backend.yml
15+
with:
16+
working-directory: "synt/synt-aap"
17+
deploy-tag: "#deploy-synt-aap"
18+
permissions:
19+
contents: read
20+
id-token: write
21+
secrets: inherit

libs/texas/gradlew

100644100755
File mode changed.

libs/vault/gradlew

100644100755
File mode changed.

synt/synt-aap/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
HELP.md
2+
.gradle
3+
build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**/build/
6+
!**/src/test/**/build/
7+
src/main/resources/models/*.onnx
8+
python/
9+
10+
### IntelliJ IDEA ###
11+
.idea
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### VS Code ###
20+
.vscode/

synt/synt-aap/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM europe-north1-docker.pkg.dev/cgr-nav/pull-through/nav.no/jre:openjdk-21
2+
3+
LABEL maintainer="Team Dolly"
4+
EXPOSE 8080
5+
6+
COPY build/libs/app.jar /my/app.jar
7+
WORKDIR /my
8+
ENTRYPOINT ["java", "-Duser.timezone=Europe/Oslo", "-jar", "app.jar"]

synt/synt-aap/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Spring Boot-utgave av [synt-aap](https://github.com/navikt/testnorge-syntetiseringspakker/tree/master/apps/arena/synt_aap) fra [testnorge-syntetiseringspakker](https://github.com/navikt/testnorge-syntetiseringspakker/tree/master).
2+
3+
En enkel wrapper rundt konvertert ONNX-modell.
4+
5+
## Lokal kjøring
6+
* [Generelt.](../../docs/modules/ROOT/pages/local/local_general.adoc)
7+
* [Modeller.](../../docs/modules/ROOT/pages/local/local_models.adoc)

synt/synt-aap/build.gradle

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
plugins {
2+
id "dolly-synt"
3+
}
4+
5+
dependencies {
6+
implementation "no.nav.testnav.libs:testing"
7+
implementation "no.nav.testnav.libs:texas"
8+
implementation "com.microsoft.onnxruntime:onnxruntime:1.20.0"
9+
10+
implementation "org.springdoc:springdoc-openapi-starter-webflux-ui:$versions.springdoc"
11+
12+
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
13+
implementation "org.springframework.boot:spring-boot-starter-security"
14+
15+
testImplementation "org.testcontainers:junit-jupiter"
16+
}
17+
18+
sonarqube {
19+
properties {
20+
property "sonar.projectKey", "testnav-synt-aap"
21+
property "sonar.projectName", "testnav-synt-aap"
22+
}
23+
}

synt/synt-aap/config.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
apiVersion: "nais.io/v1alpha1"
2+
kind: "Application"
3+
metadata:
4+
name: synthdata-arena-aap
5+
namespace: dolly
6+
labels:
7+
team: dolly
8+
annotations:
9+
nais.io/run-as-user: "65532" # The nonroot user.
10+
spec:
11+
image: {{image}}
12+
liveness:
13+
path: "/internal/health/liveness"
14+
port: 8080
15+
initialDelay: 30
16+
readiness:
17+
path: "/internal/health/readiness"
18+
port: 8080
19+
initialDelay: 30
20+
prometheus:
21+
enabled: true
22+
path: "/internal/metrics"
23+
replicas:
24+
min: 1
25+
max: 1
26+
resources:
27+
requests:
28+
cpu: 300m
29+
memory: 1024Mi
30+
limits:
31+
memory: 3072Mi
32+
azure:
33+
application:
34+
allowAllUsers: true
35+
enabled: true
36+
tenant: nav.no
37+
accessPolicy:
38+
inbound:
39+
rules:
40+
- application: synthdata-arena-vedtakshistorikk
41+
- application: testnav-oversikt-frontend
42+
- application: team-dolly-lokal-app
43+
outbound:
44+
rules:
45+
- application: logging
46+
namespace: nais-system
47+
env:
48+
- name: SPRING_PROFILES_ACTIVE
49+
value: prod
50+
gcp:
51+
buckets:
52+
- name: synthdata-aap-model-bucket
53+
ingresses:
54+
- "https://synthdata-arena-aap.intern.dev.nav.no"
55+
47.8 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)