-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Placeholder app for GCP PSQL (#3641)
Ny app dolly-db som deployes for GCP-databaser.
- Loading branch information
Showing
45 changed files
with
760 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: db-dolly-backend | ||
|
||
on: | ||
push: | ||
paths: | ||
- "apps/dolly-db/db.dolly-backend.yml" | ||
- "apps/dolly-db/src/**" | ||
- ".github/workflows/db.dolly-backend.yml" | ||
|
||
jobs: | ||
workflow: | ||
uses: ./.github/workflows/common.workflow.backend.yml | ||
with: | ||
working-directory: "apps/dolly-db" | ||
nais-manifest: "db.dolly-backend.yml" | ||
deploy-tag: "#db-dolly-backend" | ||
sonar-enabled: false | ||
permissions: | ||
contents: read | ||
id-token: write | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: db-organisasjon-forvalter | ||
|
||
on: | ||
push: | ||
paths: | ||
- "apps/dolly-db/db.organisasjon.forvalter.yml" | ||
- ".github/workflows/db.organisasjon-forvalter.yml" | ||
|
||
jobs: | ||
workflow: | ||
uses: ./.github/workflows/common.workflow.backend.yml | ||
with: | ||
working-directory: "apps/dolly-db" | ||
nais-manifest: "db.organisasjon-forvalter.yml" | ||
deploy-tag: "#db-organisasjon-forvalter" | ||
sonar-enabled: false | ||
permissions: | ||
contents: read | ||
id-token: write | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: db-pdl-forvalter | ||
|
||
on: | ||
push: | ||
paths: | ||
- "apps/dolly-db/db.pdl-forvalter.yml" | ||
- ".github/workflows/db.pdl-forvalter.yml" | ||
|
||
jobs: | ||
workflow: | ||
uses: ./.github/workflows/common.workflow.backend.yml | ||
with: | ||
working-directory: "apps/dolly-db" | ||
nais-manifest: "db.pdl-forvalter.yml" | ||
deploy-tag: "#db-pdl-forvalter" | ||
sonar-enabled: false | ||
permissions: | ||
contents: read | ||
id-token: write | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
apps/dolly-backend/src/main/java/no/nav/dolly/config/LocalConfig.java
This file was deleted.
Oops, something went wrong.
14 changes: 2 additions & 12 deletions
14
apps/dolly-backend/src/main/resources/application-local.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
HELP.md | ||
.gradle | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM ghcr.io/navikt/baseimages/temurin:21 | ||
LABEL maintainer="Team Dolly" | ||
|
||
COPY build/libs/app.jar /app/app.jar | ||
|
||
EXPOSE 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
A dummy application deployed as multiple NAIS apps in order to provide easy access to the NAIS managed databases. | ||
|
||
Originally contains one `RedirectToHealthController`, to provide NAIS with a minimum living application. | ||
|
||
No need to run `DatabaseApplication` locally, but in any case: | ||
* Use Spring profile `local`, for human readable log output. | ||
* Swagger at http://localhost:8080/swagger, such as it is. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
plugins { | ||
id "dolly-apps" | ||
} | ||
|
||
dependencies { | ||
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc" | ||
implementation "org.springframework.boot:spring-boot-starter-web" | ||
|
||
testImplementation "org.testcontainers:junit-jupiter" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: "nais.io/v1alpha1" | ||
kind: "Application" | ||
metadata: | ||
name: "db-dolly-backend" | ||
namespace: "dolly" | ||
labels: | ||
"team": "dolly" | ||
spec: | ||
gcp: | ||
sqlInstances: | ||
- type: POSTGRES_15 | ||
tier: db-custom-2-7680 | ||
databases: | ||
- name: db-dolly-backend | ||
image: "{{image}}" | ||
ingresses: | ||
- "https://dolly-db.intern.dev.nav.no" | ||
liveness: | ||
path: "/internal/health/liveness" | ||
observability: | ||
autoInstrumentation: | ||
enabled: true | ||
runtime: java | ||
prometheus: | ||
enabled: true | ||
path: "/internal/prometheus" | ||
readiness: | ||
path: "/internal/health/readiness" | ||
replicas: | ||
min: 1 | ||
max: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: "nais.io/v1alpha1" | ||
kind: "Application" | ||
metadata: | ||
name: "db-organisasjon-forvalter" | ||
namespace: "dolly" | ||
labels: | ||
"team": "dolly" | ||
spec: | ||
gcp: | ||
sqlInstances: | ||
- type: POSTGRES_15 | ||
tier: db-custom-1-3840 | ||
databases: | ||
- name: db-organisasjon-forvalter | ||
image: "{{image}}" | ||
liveness: | ||
path: "/internal/health/liveness" | ||
observability: | ||
autoInstrumentation: | ||
enabled: true | ||
runtime: java | ||
prometheus: | ||
enabled: true | ||
path: "/internal/prometheus" | ||
readiness: | ||
path: "/internal/health/readiness" | ||
replicas: | ||
min: 1 | ||
max: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: "nais.io/v1alpha1" | ||
kind: "Application" | ||
metadata: | ||
name: "db-pdl-forvalter" | ||
namespace: "dolly" | ||
labels: | ||
"team": "dolly" | ||
spec: | ||
gcp: | ||
sqlInstances: | ||
- type: POSTGRES_15 | ||
tier: db-custom-1-3840 | ||
databases: | ||
- name: db-pdl-forvalter | ||
image: "{{image}}" | ||
liveness: | ||
path: "/internal/health/liveness" | ||
observability: | ||
autoInstrumentation: | ||
enabled: true | ||
runtime: java | ||
prometheus: | ||
enabled: true | ||
path: "/internal/prometheus" | ||
readiness: | ||
path: "/internal/health/readiness" | ||
replicas: | ||
min: 1 | ||
max: 1 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.