-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
25 lines (20 loc) · 1.24 KB
/
Dockerfile
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
FROM openjdk:8-jdk-alpine
ARG JAR_FILE=core-connector/target/*.jar
COPY ${JAR_FILE} app.jar
ENV MLCONN_OUTBOUND_ENDPOINT=http://simulator:3004
ENV DFSP_NAME="DFSP CO. LTD."
ENV DFSP_HOST="https://localhost/api"
ENV DFSP_USERNAME=username
ENV DFSP_PASSWORD=password
ENV DFSP_AUTH_CLIENT_ID=clientId
ENV DFSP_AUTH_CLIENT_SECRET=clientSecret
ENV DFSP_AUTH_GRANT_TYPE=grantType
ENV DFSP_AUTH_SCOPE=scope
ENV DFSP_AUTH_ENCRYPTED_PASS=false
ENV DFSP_AUTH_TENANT_ID=tenantId
ENV DFSP_AUTH_CHANNEL_ID=channelId
ENV DFSP_AUTH_API_KEY=apiKey
ENV DFSP_API_VERSION=v1
ENV DFSP_ROUNDINGVALUE="100"
ENTRYPOINT ["java", "-Dml-conn.outbound.host=${MLCONN_OUTBOUND_ENDPOINT}", "-Ddfsp.name=${DFSP_NAME}", "-Ddfsp.host=${DFSP_HOST}", "-Ddfsp.username=${DFSP_USERNAME}", "-Ddfsp.password=${DFSP_PASSWORD}", "-Ddfsp.scope=${DFSP_AUTH_SCOPE}", "-Ddfsp.client-id=${DFSP_AUTH_CLIENT_ID}", "-Ddfsp.client-secret=${DFSP_AUTH_CLIENT_SECRET}", "-Ddfsp.grant-type=${DFSP_AUTH_GRANT_TYPE}", "-Ddfsp.is-password-encrypted=${DFSP_AUTH_ENCRYPTED_PASS}", "-Ddfsp.tenant-id=${DFSP_AUTH_TENANT_ID}", "-Ddfsp.channel-id=${DFSP_AUTH_CHANNEL_ID}", "-Ddfsp.api-key=${DFSP_AUTH_API_KEY}", "-Ddfsp.api-version=${DFSP_API_VERSION}", "-Ddfsp.roundingvalue=${DFSP_ROUNDINGVALUE}", "-jar", "/app.jar"]
EXPOSE 3003