Datomic Pro Docker container running on Alpine Linux. The base container is JDK-11-alpine by Eclipse Temurin.
This image is available at Docker Hub
./build.sh build
You have to configure Datomic by providing a transactor.properties
file while running the container.
There intentionally is no default config since it depends on the storage backend you intend to use.
Configure the data directory in transactor.properties
and mount it into the container.
Logging has been setup to log to stdout by default. You can change this behaviour by modifying
/opt/datomic/bin/logback.xml
An example for running this container:
GIT_SHA=$(git rev-parse HEAD) ## git SHA of this repo
DATOMIC_VERSION=$(cat DATOMIC_VERSION) ## file with Datomic version
JVM_OPTS="-Xms1g -Xmx2g"
docker run -v $(pwd)/transactor.properties:/etc/datomic/transactor.properties \
-v $(pwd)/data:/data \
vouchio/datomic-pro-alpine:$DATOMIC_VERSION-$GIT_SHA \
sh -c "/opt/datomic/bin/transactor $JVM_OPTS /etc/datomic/transactor.properties"