-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (21 loc) · 1.02 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
FROM openjdk:8u212-jre
MAINTAINER "Aldo Funes <[email protected]>"
ENV DATOMIC_VERSION 0.9.5703
RUN wget https://my.datomic.com/downloads/free/${DATOMIC_VERSION} -qO /tmp/datomic.zip \
&& unzip /tmp/datomic.zip \
&& rm /tmp/datomic.zip \
&& mv /datomic-free-${DATOMIC_VERSION} /datomic
WORKDIR /datomic
RUN cp config/samples/free-transactor-template.properties config/transactor.properties
# RUN sed "s/host=localhost/host=0.0.0.0/" -i config/transactor.properties
# RUN sed "s/# storage-access=local/storage-access=remote/" -i config/transactor.properties
# RUN sed "s/# storage-admin-password=/storage-admin-password=admin/" -i config/transactor.properties
# RUN sed "s/# storage-datomic-password=/storage-datomic-password=datomic/" -i config/transactor.properties
RUN mkdir /data
RUN sed "s/# data-dir=data/data-dir=\/data/" -i config/transactor.properties
RUN mkdir /log
RUN sed "s/# log-dir=log/log-dir=\/log/" -i config/transactor.properties
ADD run.sh ./
RUN chmod +x run.sh
EXPOSE 4334 4335 4336 8001
CMD ["./run.sh"]