-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
91 lines (78 loc) · 2.63 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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
FROM alpine:3.19.1 as build
ARG DATOMIC_VERSION
## Validations for mandatory build arg
RUN [ ! -z "${DATOMIC_VERSION}" ]
RUN apk add ca-certificates && update-ca-certificates
RUN apk add --no-cache --update \
curl \
unzip
RUN curl -fsSL -o datomic-pro.zip https://datomic-pro-downloads.s3.amazonaws.com/${DATOMIC_VERSION}/datomic-pro-${DATOMIC_VERSION}.zip
RUN unzip -qq ./datomic-pro.zip -d / && true
RUN mv "/datomic-pro-${DATOMIC_VERSION}" /datomic-pro && true
RUN curl -fsSL -o /datomic-pro/lib/logstash-logback-encoder-7.3.jar https://repo1.maven.org/maven2/net/logstash/logback/logstash-logback-encoder/7.3/logstash-logback-encoder-7.3.jar
COPY ./artifacts/logback.xml /datomic-pro/bin/logback.xml
RUN rm -rf ./datomic-pro.zip
FROM eclipse-temurin:22.0.1_8-jre-ubi9-minimal as final
COPY --from=build /datomic-pro /datomic-pro
COPY create_datomic_start_up.clj /datomic-pro/create_datomic_start_up.clj
ENV RUN_MODE ""
ENV PROTOCOL ""
ENV BOOTSTRAP_FILE_NAME "datomic_start_up.sh"
ENV TRANSACTOR_HOST "0.0.0.0"
ENV TRANSACTOR_PORT "4334"
ENV TRANSACTOR_ALT_HOST "127.0.0.1"
ENV TRANSACTOR_HEALTHCHECK_HOST "127.0.0.1"
ENV TRANSACTOR_HEALTHCHECK_PORT "9999"
ENV TRANSACTOR_HEALTHCHECK_CONCURRENCY "6"
ENV TRANSACTOR_HEARTBEAT_INTERVAL_IN_MS "5000"
ENV TRANSACTOR_ENCRYPT_CHANNEL "true"
ENV TRANSACTOR_WRITE_CONCURRENCY "4"
ENV TRANSACTOR_READ_CONCURRENCY "8"
ENV MEMORY_INDEX_THRESHOLD "32m"
ENV MEMORY_INDEX_MAX "512m"
ENV OBJECT_CACHE_MAX "1g"
ENV INDEX_PARALLELISM "1"
ENV XMS "4g"
ENV XMX "4g"
ENV LOG_LEVEL "INFO"
ENV MEMCACHED_HOST ""
ENV MEMCACHED_PORT "11211"
ENV MEMCACHED_CONFIG_TIMEOUT_IN_MS "100"
ENV MEMCACHED_AUTO_DISCOVERY ""
ENV MEMCACHED_USERNAME ""
ENV MEMCACHED_PASSWORD ""
ENV VALCACHE_PATH ""
ENV VALCACHE_MAX_GB ""
# TRANSACTOR SQL Backend
ENV SQL_JDBC_URL ""
ENV SQL_USER ""
ENV SQL_PASSWORD ""
ENV SQL_DRIVER_CLASS ""
# TRANSACTOR DDB-LOCAL Backend
ENV DYNAMO_DB_TABLE ""
ENV LOCAL_DYNAMO_DB_ENDPOINT ""
ENV AWS_ACCESS_KEY_ID="none"
ENV AWS_SECRET_ACCESS_KEY="none"
ENV AWS_DEFAULT_REGION="none"
# TRANSACTOR DDB Backend
ENV AWS_DYNAMO_DB_REGION ""
ENV AWS_TRANSACTOR_ROLE ""
ENV AWS_PEER_ROLE ""
ENV AWS_S3_LOG_BUCKET_ID ""
ENV AWS_CLOUDWATCH_DIMENSION_VALUE ""
ENV PEER_HOST "0.0.0.0"
ENV PEER_PORT "8998"
ENV PEER_ACCESSKEY "myaccesskey"
ENV PEER_SECRET "mysecret"
ENV DATOMIC_DB_NAME ""
ENV PEER_TX_TIMEOUT_IN_MS "10000"
ENV PEER_CONCURRENCY "8"
ENV PEER_READ_CONCURRENCY "8"
ENV BACKUP_S3_BUCKET_URI ""
ENV DATOMIC_DB_URI ""
ENV VERIFY_ALL_SEGMENTS "false"
ENV BACKUP_T_VALUE ""
ENV DATOMIC_CONSOLE_PORT "8888"
ENV TRANSACTOR_ALIAS ""
WORKDIR /datomic-pro
ENTRYPOINT bin/run create_datomic_start_up.clj && ./${BOOTSTRAP_FILE_NAME}