First commit. Taken from open source branch of internal sample-tracking application.
This commit is contained in:
29
deploy/datomic/Dockerfile
Normal file
29
deploy/datomic/Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM naartjie/alpine-lein
|
||||
|
||||
# Based on pointslope/datomic-pro-starter
|
||||
# https://hub.docker.com/r/pointslope/datomic-pro-starter/dockerfile
|
||||
|
||||
MAINTAINER Mike Travers "mtravers@parkerici.org"
|
||||
|
||||
# Set the version to the one you're downloading.
|
||||
ENV DATOMIC_VERSION=1.0.6202
|
||||
ENV DATOMIC_HOME /opt/datomic-pro-$DATOMIC_VERSION
|
||||
ENV DATOMIC_DATA $DATOMIC_HOME/data
|
||||
|
||||
RUN apk add --no-cache unzip curl
|
||||
|
||||
# Datomic Pro Starter as easy as 1-2-3
|
||||
# 1. Download a release from my.datomic.com and put it in the releases folder
|
||||
ADD releases/datomic-pro-1.0.6202.zip /tmp/datomic.zip
|
||||
|
||||
RUN unzip /tmp/datomic.zip -d /opt \
|
||||
&& rm -f /tmp/datomic.zip
|
||||
|
||||
WORKDIR $DATOMIC_HOME
|
||||
RUN echo DATOMIC HOME: $DATOMIC_HOME
|
||||
|
||||
# 3. Provide a CMD argument with the relative path to the
|
||||
# transactor.properties file it will supplement the ENTRYPOINT
|
||||
VOLUME $DATOMIC_DATA
|
||||
|
||||
EXPOSE 4334 4335 4336
|
||||
4
deploy/datomic/create_test_db.clj
Normal file
4
deploy/datomic/create_test_db.clj
Normal file
@@ -0,0 +1,4 @@
|
||||
;;; Run by CI to create a local database
|
||||
|
||||
(require 'datomic.api)
|
||||
(datomic.api/create-database "datomic:dev://localhost:4334/ereq-test")
|
||||
22
deploy/datomic/dev-transactor.properties.template
Normal file
22
deploy/datomic/dev-transactor.properties.template
Normal file
@@ -0,0 +1,22 @@
|
||||
# transactor properties for local dev instances (and CI)
|
||||
|
||||
###################################################################
|
||||
|
||||
protocol=dev
|
||||
host=localhost
|
||||
port=4334
|
||||
|
||||
###################################################################
|
||||
# See https://docs.datomic.com/on-prem/storage.html
|
||||
|
||||
license-key=${DATOMIC_LICENSE_KEY}
|
||||
|
||||
|
||||
###################################################################
|
||||
# See https://docs.datomic.com/on-prem/capacity.html
|
||||
|
||||
|
||||
## Recommended settings for -Xmx1g usage, e.g. dev laptops.
|
||||
memory-index-threshold=32m
|
||||
memory-index-max=256m
|
||||
object-cache-max=128m
|
||||
Reference in New Issue
Block a user