forked from pointslope/docker-datomic-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 949 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 949 Bytes
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
FROM clojure:lein-2.6.1-alpine
MAINTAINER Optimis Services, Inc. "ops@optimiscorp.com"
ENV DATOMIC_VERSION 0.9.5703
ENV DATOMIC_HOME /opt/datomic-pro-$DATOMIC_VERSION
RUN apk add --no-cache unzip curl
# Datomic Pro Starter as easy as 1-2-3
# 1. Create a .credentials file containing user:pass
# for downloading from my.datomic.com
ONBUILD ADD .credentials /tmp/.credentials
# 2. Make sure to have a config/ folder in the same folder as your
# Dockerfile containing the transactor property file you wish to use
ONBUILD RUN curl -u $(cat /tmp/.credentials) -SL https://my.datomic.com/repo/com/datomic/datomic-pro/$DATOMIC_VERSION/datomic-pro-$DATOMIC_VERSION.zip -o /tmp/datomic.zip \
&& unzip /tmp/datomic.zip -d /opt \
&& rm -f /tmp/datomic.zip
WORKDIR $DATOMIC_HOME
# 3. Provide a CMD with an alias to the database
# and the database uri
# e.g. CMD ["dev", "datomic:dev://db:4334/"]
ENTRYPOINT ["bin/console", "-p", "9000"]
EXPOSE 9000