-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.includedcc
65 lines (49 loc) · 1.8 KB
/
Dockerfile.includedcc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ------ Environment variables ------
# The following env variables will be overwritten by values in the
# S3 secrets/app.env files at the time of deployment:
# Set the max memory for the JVM server process
# JVM_MAX_HEAP_SIZE
# Whether to load the full base FHIR model during server init
# SEED_CONF_RESOURCES
# Whether to validate resources against FHIR spec AND base profiles
# REQUEST_VALIDATION
# Whether server should respect forwarded headers
# RESPECT_FWD_HEADERS
# FHIR base url
# FHIR_ENDPOINT
# Postgres configuration
# FHIR_DB_HOST
# FHIR_DB_USERNAME
# FHIR_DB_PASSWORD
# OIDC Configuration
# KEYCLOAK_ISSUER
# ------ Integration Test Server Image ------
FROM 373997854230.dkr.ecr.us-east-1.amazonaws.com/include-smile-cdr:2023.05.R02 as test
#232196027141.dkr.ecr.us-east-1.amazonaws.com/kf-strides-smile-cdr:2023.02.R02 as test
WORKDIR /home/smile/smilecdr
RUN ulimit -n 5000
# Server settings
COPY smilecdr/settings/server-postgres.properties classes/cdr-config-Master.properties
COPY smilecdr/settings/jvm.sh bin/setenv
COPY smilecdr/settings/system-users.json classes/config_seeding/users.json
COPY smilecdr/settings/oidc-servers.json classes/config_seeding/oidc-servers.json
COPY smilecdr/settings/auth.js classes/config_seeding/auth.js
ENV JVM_MAX_HEAP_SIZE -Xmx4g
ENV SEED_CONF_RESOURCES false
ENV REQUEST_VALIDATION false
ENV RESPECT_FWD_HEADERS false
ENV FHIR_ENDPOINT http://localhost:8000
ENV FHIR_DB_HOST localhost
ENV FHIR_DB_PORT 5432
ENV FHIR_DB_NAME cdr
ENV FHIR_AUDIT_DB_NAME audit
ENV FHIR_DB_USERNAME admin
ENV FHIR_DB_PASSWORD password
ENV KEYCLOAK_ISSUER http://keycloak:8080/realms/fhir-dev
# ------ Production Server Image ------
FROM test as production
# JVM max memory - 8GB
ENV JVM_MAX_HEAP_SIZE -Xmx8g
ENV SEED_CONF_RESOURCES true
ENV REQUEST_VALIDATION false
ENV RESPECT_FWD_HEADERS true