Skip to content

Commit ab42c90

Browse files
authored
Legger inn fp-inntektsmelding backend. (#1443)
1 parent 254181a commit ab42c90

File tree

6 files changed

+113
-46
lines changed

6 files changed

+113
-46
lines changed

lokal-utvikling/setup-lokal-utvikling.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ settPorterSomSkalErstattes () {
4040
replace_port_array=("8080")
4141
with_port_array=("8050")
4242
;;
43+
fpinntektsmelding)
44+
replace_port_array=("8080")
45+
with_port_array=("8040")
46+
;;
4347
*)
4448
replace_port_array=("")
4549
with_port_array=("")

resources/pipeline/compose.yml

Lines changed: 91 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
container_name: audit.nais
1616
mem_limit: 16mb
1717
ports:
18-
- 127.0.0.1:6514:6514
18+
- "127.0.0.1:6514:6514"
1919
oracle:
2020
image: $ORACLE_IMAGE
2121
container_name: oracle
@@ -48,7 +48,7 @@ services:
4848
volumes:
4949
- ./postgres-init:/docker-entrypoint-initdb.d/
5050
ports:
51-
- 127.0.0.1:5432:5432
51+
- "127.0.0.1:5432:5432"
5252
healthcheck:
5353
test: [ "CMD-SHELL", "while ! /usr/bin/pg_isready -U admin -t 1; do sleep 1; done" ]
5454
interval: 2s
@@ -78,13 +78,13 @@ services:
7878
volumes:
7979
- *sertifikat-volum
8080
ports:
81-
- 127.0.0.1:8060:8060
82-
- 127.0.0.1:8063:8063
83-
- 127.0.0.1:8636:8636
84-
- 127.0.0.1:9093:9093
85-
- 127.0.0.1:9092:9092
86-
- 127.0.0.1:1337:1337
87-
- 127.0.0.1:8389:8389
81+
- "127.0.0.1:8060:8060"
82+
- "127.0.0.1:8063:8063"
83+
- "127.0.0.1:8636:8636"
84+
- "127.0.0.1:9093:9093"
85+
- "127.0.0.1:9092:9092"
86+
- "127.0.0.1:1337:1337"
87+
- "127.0.0.1:8389:8389"
8888
healthcheck:
8989
test: ["CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8060/rest/isReady"]
9090
interval: 5s
@@ -113,7 +113,7 @@ services:
113113
volumes:
114114
- *sertifikat-volum
115115
ports:
116-
- 127.0.0.1:8050:8080
116+
- "127.0.0.1:8050:8080"
117117
healthcheck:
118118
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fptilgang/internal/health/isReady" ]
119119
interval: 5s
@@ -135,7 +135,7 @@ services:
135135
volumes:
136136
- *sertifikat-volum
137137
ports:
138-
- 127.0.0.1:8015:8080
138+
- "127.0.0.1:8015:8080"
139139
healthcheck:
140140
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fpabakus/internal/health/isReady" ]
141141
interval: 5s
@@ -159,7 +159,7 @@ services:
159159
volumes:
160160
- *sertifikat-volum
161161
ports:
162-
- 127.0.0.1:8016:8080
162+
- "127.0.0.1:8016:8080"
163163
healthcheck:
164164
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fpkalkulus/internal/health/isReady" ]
165165
interval: 5s
@@ -188,7 +188,7 @@ services:
188188
volumes:
189189
- *sertifikat-volum
190190
ports:
191-
- 127.0.0.1:8080:8080
191+
- "127.0.0.1:8080:8080"
192192
healthcheck:
193193
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fpsak/internal/health/isReady" ]
194194
interval: 10s
@@ -253,7 +253,7 @@ services:
253253
env_file:
254254
- *common-properties
255255
ports:
256-
- 127.0.0.1:9090:9090
256+
- "127.0.0.1:9090:9090"
257257
depends_on:
258258
wonderwall-fpfrontend:
259259
condition: service_started
@@ -278,7 +278,7 @@ services:
278278
--session.refresh=true
279279
--log-level=debug
280280
ports:
281-
- 127.0.0.1:9000:9000
281+
- "127.0.0.1:9000:9000"
282282
env_file:
283283
- *common-properties
284284
fpfordel:
@@ -295,7 +295,7 @@ services:
295295
- *sertifikat-volum
296296
- ./tokenx:/tokenx
297297
ports:
298-
- 127.0.0.1:8090:8080
298+
- "127.0.0.1:8090:8080"
299299
healthcheck:
300300
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fpfordel/internal/health/isReady" ]
301301
interval: 15s
@@ -326,7 +326,7 @@ services:
326326
volumes:
327327
- *sertifikat-volum
328328
ports:
329-
- 127.0.0.1:8010:8080
329+
- "127.0.0.1:8010:8080"
330330
healthcheck:
331331
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fpformidling/internal/health/isReady" ]
332332
interval: 5s
@@ -349,7 +349,7 @@ services:
349349
volumes:
350350
- *sertifikat-volum
351351
ports:
352-
- 127.0.0.1:8291:8080
352+
- "127.0.0.1:8291:8080"
353353
healthcheck:
354354
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/actuator/info" ]
355355
interval: 5s
@@ -366,7 +366,7 @@ services:
366366
volumes:
367367
- *sertifikat-volum
368368
ports:
369-
- 127.0.0.1:8070:8080
369+
- "127.0.0.1:8070:8080"
370370
healthcheck:
371371
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fpoppdrag/internal/health/isReady" ]
372372
interval: 5s
@@ -400,7 +400,7 @@ services:
400400
volumes:
401401
- *sertifikat-volum
402402
ports:
403-
- 127.0.0.1:8030:8080
403+
- "127.0.0.1:8030:8080"
404404
healthcheck:
405405
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fptilbake/internal/health/isReady" ]
406406
interval: 5s
@@ -426,7 +426,7 @@ services:
426426
volumes:
427427
- *sertifikat-volum
428428
ports:
429-
- 127.0.0.1:8075:8080
429+
- "127.0.0.1:8075:8080"
430430
healthcheck:
431431
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fprisk/internal/health/isReady" ]
432432
interval: 5s
@@ -448,7 +448,7 @@ services:
448448
volumes:
449449
- *sertifikat-volum
450450
ports:
451-
- 127.0.0.1:8065:8080
451+
- "127.0.0.1:8065:8080"
452452
healthcheck:
453453
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/fpabonnent/internal/health/isReady" ]
454454
interval: 5s
@@ -474,7 +474,7 @@ services:
474474
volumes:
475475
- *sertifikat-volum
476476
ports:
477-
- 127.0.0.1:8071:8080
477+
- "127.0.0.1:8071:8080"
478478
healthcheck:
479479
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/fplos/internal/health/isReady"]
480480
interval: 5s
@@ -514,7 +514,7 @@ services:
514514
volumes:
515515
- *sertifikat-volum
516516
ports:
517-
- 127.0.0.1:8889:8080
517+
- "127.0.0.1:8889:8080"
518518
healthcheck:
519519
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/internal/health/isReady" ]
520520
interval: 15s
@@ -558,7 +558,7 @@ services:
558558
- *sertifikat-volum
559559
- ./tokenx:/tokenx
560560
ports:
561-
- 127.0.0.1:9001:9001
561+
- "127.0.0.1:9001:9001"
562562
healthcheck:
563563
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:9001/api/actuator" ]
564564
interval: 5s
@@ -567,6 +567,46 @@ services:
567567
depends_on:
568568
- vtp
569569
- fpfordel
570+
fpinntektsmelding:
571+
<<: *default-konfigurasjon
572+
image: $FPINNTEKTSMELDING_IMAGE
573+
container_name: fpinntektsmelding
574+
mem_limit: 512mb
575+
environment:
576+
FPDOKGEN_URL: http://fpdokgen:8080
577+
ARBEIDSGIVER_NOTIFIKASJON_URL: http://fager-api:8080/api/graphql
578+
ARBEIDSGIVER_NOTIFIKASJON_SCOPES: api://vtp.teamforeldrepenger.vtp/.default
579+
ALTINN_URL: http://vtp:8060/rest/altinn-rettigheter-proxy/ekstern/altinn/api/serviceowner/reportees
580+
env_file:
581+
- *common-properties
582+
- fpinntektsmelding_datasource.env
583+
volumes:
584+
- *sertifikat-volum
585+
ports:
586+
- "127.0.0.1:8040:8080"
587+
healthcheck:
588+
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:8080/internal/health/isReady" ]
589+
interval: 15s
590+
timeout: 10s
591+
retries: 10
592+
depends_on:
593+
postgres:
594+
condition: service_healthy
595+
vtp:
596+
condition: service_healthy
597+
fager-api:
598+
condition: service_healthy
599+
600+
fager-api:
601+
image: ghcr.io/navikt/arbeidsgiver-notifikasjon-produsent-api/fake-produsent-api:latest
602+
ports:
603+
- "127.0.0.1:8072:8080"
604+
environment:
605+
ALWAYS_SUCCESSFUL_RESPONSE: true
606+
healthcheck:
607+
test: [ "CMD", "curl", "-f", "http://localhost:8072/rest/isReady" ]
608+
interval: 30s
609+
timeout: 5s
570610

571611
## SELVBETJENING SPESIFIKK
572612
foreldrepengesoknad-api:
@@ -586,7 +626,7 @@ services:
586626
- *sertifikat-volum
587627
- ./tokenx:/tokenx
588628
ports:
589-
- 127.0.0.1:9002:9002
629+
- "127.0.0.1:9002:9002"
590630
healthcheck:
591631
test: [ "CMD", "wget", "--no-verbose","--tries=1", "--spider", "http://localhost:9002/internal/actuator" ]
592632
interval: 5s
@@ -601,7 +641,7 @@ services:
601641
image: $FORELDREPENGEOVERSIKT_IMAGE
602642
container_name: foreldrepengeoversikt
603643
ports:
604-
- 127.0.0.1:9066:9066
644+
- "127.0.0.1:9066:9066"
605645
env_file:
606646
- *common-properties
607647
environment:
@@ -614,7 +654,7 @@ services:
614654
image: $FORELDREPENGESOKNAD_IMAGE
615655
container_name: foreldrepengesoknad
616656
ports:
617-
- 127.0.0.1:9067:9067
657+
- "127.0.0.1:9067:9067"
618658
env_file:
619659
- *common-properties
620660
environment:
@@ -628,7 +668,7 @@ services:
628668
image: $SVANGERSKAPSPENGESOKNAD_IMAGE
629669
container_name: svangerskapspengesoknad
630670
ports:
631-
- 127.0.0.1:9068:9068
671+
- "127.0.0.1:9068:9068"
632672
env_file:
633673
- *common-properties
634674
environment:
@@ -642,7 +682,7 @@ services:
642682
image: $ENGANGSSTONAD_IMAGE
643683
container_name: engangsstonad
644684
ports:
645-
- 127.0.0.1:9069:9069
685+
- "127.0.0.1:9069:9069"
646686
env_file:
647687
- *common-properties
648688
environment:
@@ -733,15 +773,27 @@ services:
733773
{
734774
"path": "/api",
735775
"scopes": "api://vtp.teamforeldrepenger.fpoversikt/swagger",
736-
"url": "http://fpoversikt:8889",
776+
"url": "http://fpoversikt:8080",
737777
"name": "fp-oversikt"
778+
},
779+
{
780+
"path": "/fpabakus/ekstern/api",
781+
"scopes": "api://vtp.teamforeldrepenger.fpabakus/swagger",
782+
"url": "http://fpabakus:8080",
783+
"name": "fp-abakus ekstern API"
784+
},
785+
{
786+
"path": "/fpinntektsmelding/forvaltning/api",
787+
"scopes": "api://vtp.teamforeldrepenger.fpinntektsmelding/swagger",
788+
"url": "http://fpinntektsmelding:8080",
789+
"name": "fp-inntektsmelding"
738790
}
739791
]
740792
}
741793
env_file:
742794
- *common-properties
743795
ports:
744-
- 127.0.0.1:9190:9190
796+
- "127.0.0.1:9190:9190"
745797
depends_on:
746798
fpswagger-wonderwall:
747799
condition: service_started
@@ -757,18 +809,17 @@ services:
757809
--auto-login=true
758810
--log-level=debug
759811
ports:
760-
- 127.0.0.1:9200:9200
812+
- "127.0.0.1:9200:9200"
761813
env_file:
762814
- *common-properties
763815
depends_on:
764816
fpsak:
765817
condition: service_started
766-
767818
redis:
768819
image: redis:7
769820
container_name: redis
770821
ports:
771-
- 127.0.0.1:6379:6379
822+
- "127.0.0.1:6379:6379"
772823
wonderwall-selvbetjening-sso-server:
773824
<<: *default-konfigurasjon
774825
image: ghcr.io/nais/wonderwall:latest
@@ -788,7 +839,7 @@ services:
788839
--auto-login=true
789840
--log-level=debug
790841
ports:
791-
- 127.0.0.1:9111:9111
842+
- "127.0.0.1:9111:9111"
792843
env_file:
793844
- *common-properties
794845
depends_on:
@@ -812,7 +863,7 @@ services:
812863
--ingress=http://localhost:9100
813864
--upstream-host=foreldrepengeoversikt:9066
814865
ports:
815-
- 127.0.0.1:9100:9100
866+
- "127.0.0.1:9100:9100"
816867
env_file:
817868
- *common-properties
818869
depends_on:
@@ -837,7 +888,7 @@ services:
837888
--bind-address=0.0.0.0:9101
838889
--upstream-host=foreldrepengesoknad:9067
839890
ports:
840-
- 127.0.0.1:9101:9101
891+
- "127.0.0.1:9101:9101"
841892
env_file:
842893
- *common-properties
843894
depends_on:
@@ -862,7 +913,7 @@ services:
862913
--bind-address=0.0.0.0:9102
863914
--upstream-host=svangerskapspengesoknad:9068
864915
ports:
865-
- 127.0.0.1:9102:9102
916+
- "127.0.0.1:9102:9102"
866917
env_file:
867918
- *common-properties
868919
depends_on:
@@ -887,7 +938,7 @@ services:
887938
--bind-address=0.0.0.0:9103
888939
--upstream-host=engangsstonad:9069
889940
ports:
890-
- 127.0.0.1:9103:9103
941+
- "127.0.0.1:9103:9103"
891942
env_file:
892943
- *common-properties
893944
depends_on:

resources/pipeline/fpinfohistorikk_datasource.env

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
APP_NAME=fpinntektsmelding
2+
NAIS_APP_NAME=fpinntektsmelding
3+
4+
DB_JDBC_URL=jdbc:postgresql://postgres:5432/fpinntektsmelding?reWriteBatchedInserts=true
5+
DB_USERNAME=fpinntektsmelding
6+
DB_PASSWORD=fpinntektsmelding

0 commit comments

Comments
 (0)