pointslope / docker-datomic-example Goto Github PK
View Code? Open in Web Editor NEWA sample Dockerfile and configuration demonstrating the use of the pointslope/datomic-pro-starter base image
A sample Dockerfile and configuration demonstrating the use of the pointslope/datomic-pro-starter base image
Setup seems to be working until the console tries to load up. I'm assuming this is an error with the console itself?
Exception in thread "main" java.lang.IllegalAccessError: tried to access method clojure.lang.RT.classForNameNonLoading(Ljava/lang/String;)Ljava/lang/Class; from class datomic.console.error$loading__5340__auto____1
Hi.
I followed the instructions, and I have made sure to try with a new download key and resent my license key.
Thanks for this, Im trying to get the hang of this docker stuff.
$ docker-compose up
Building datomicdb
Step 1 : FROM pointslope/datomic-pro-starter:0.9.5544
0.9.5544: Pulling from pointslope/datomic-pro-starter
e110a4a17941: Pull complete
5726fbb708f0: Pull complete
87d57f795d92: Pull complete
8cdfc7cd5696: Pull complete
3039f18e5b5b: Pull complete
2cb421c6e133: Pull complete
e0de7f1bfce8: Pull complete
ce8e5cff3d3e: Pull complete
Digest: sha256:bd6d6aeda2cbfc76d6ee94a9db63aabad42b465de92ede155e7c03d4488429fe
Status: Downloaded newer image for pointslope/datomic-pro-starter:0.9.5544
# Executing 3 build triggers...
Step 1 : ADD .credentials /tmp/.credentials
Step 1 : 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
---> Running in 5c8d752bc935
curl: (6) Couldn't resolve host 'my.datomic.com'
ERROR: Service 'datomicdb' failed to build: The command '/bin/sh -c 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' returned a non-zero code: 6
Can someone drop a hint as to how I should paste my license key into dev-transactor.properties? Datomic sends license keys as a txt file in email. The string includes a key-like prefix "license-key=" and then key content as well as what looks like some escaped line breaks.
license-key=license-key=...
I've tried both of these things, none of them, and many combinations in between but still I'm getting the same error.
Edit: Running the datomic-pro-starter container without docker-compose seems to work.
Error while calling docker-compose-up because datamic-console/Dockerfile is referencing the wrong image.
Instead of FROM pointslope/docker-datomic-console:0.9.5394 should be FROM pointslope/datomic-console:0.9.5394
$ docker-compose up
Building console
Step 1 : FROM pointslope/docker-datomic-console:0.9.5385-alpine
Pulling repository docker.io/pointslope/docker-datomic-console
ERROR: Service 'console' failed to build: Error: image pointslope/docker-datomic-console:0.9.5385-alpine not found
Any ideas..? Everything else looks like it built ok.
Hi,
I am following the instructions exactly (including adding the license key as stated), but I cannot get the db to work. Is there any way to tell what's wrong? Thanks.
Attaching to dockerdatomicexample_datomicdb_1, dockerdatomicexample_waiter_1, dockerdatomicexample_console_1
datomicdb_1 | Launching with Java options -server -Xms1g -Xmx1g -XX:+UseG1GC -XX:MaxGCPauseMillis=50
console_1 | Console started on port: 9000
console_1 | dev = datomic:dev://datomicdb:4334
console_1 | Open http://localhost:9000/browse in your browser (Chrome recommended)
waiter_1 | waiting for TCP connection to 172.17.0.2
waiter_1 | 172.17.0.2
waiter_1 | 172.17.0.2
waiter_1 | 172.17.0.2
waiter_1 | 172.17.0.2
waiter_1 | 172.17.0.2
waiter_1 | 172.17.0.2
waiter_1 | 172.17.0.2
waiter_1 | 172.17.0.2:4336
waiter_1 | 4336
waiter_1 | 4334
waiter_1 | 4334
Press ENTER or type command to continue
waiter_1 | 4335
waiter_1 | 4335
waiter_1 | 4336
waiter_1 | 4336
waiter_1 | 4334
waiter_1 | 4334
waiter_1 | 4336
waiter_1 | 4334
waiter_1 | 4334
waiter_1 | 4335
datomicdb_1 | Critical failure, cannot continue: Error starting transactor
datomicdb_1 | java.lang.RuntimeException: Unable to load license key*
datomicdb_1 | at datomic.transactor_ext$start_pro$fn__19600.invoke(transactor_ext.clj:42)
datomicdb_1 | at datomic.transactor_ext$start_pro.invoke(transactor_ext.clj:42)
datomicdb_1 | at clojure.lang.Var.invoke(Var.java:379)
datomicdb_1 | at datomic.transactor$run_STAR_.invoke(transactor.clj:289)
datomicdb_1 | at datomic.transactor$run$fn__19720.invoke(transactor.clj:338)
datomicdb_1 | at clojure.core$binding_conveyor_fn$fn__4444.invoke(core.clj:1916)
datomicdb_1 | at clojure.lang.AFn.call(AFn.java:18)
datomicdb_1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
datomicdb_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
datomicdb_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
datomicdb_1 | at java.lang.Thread.run(Thread.java:745)
dockerdatomicexample_datomicdb_1 exited with code 255
Hi there!
Seems like I have both docker images started by docker-compose run
.
I've changes the transactor properties to point to DynamoDB, and added my AWS credentials as ENV lines in the 2 Dockerfile
s like this:
FROM pointslope/datomic-pro-starter:0.9.5344
ENV AWS_ACCESS_KEY_ID [SEMI SECRET ACCESS KEY]
ENV AWS_SECRET_KEY [SUPER SECRET SECRET KEY]
CMD ["config/transactor-ensured.properties"]
ADD restore-db.sh /usr/local/bin/restore-db
The console container starts up nicely, but the transactor can't find it's credentials:
Starting datomic:ddb://eu-central-1/data/<DB-NAME> ...
datomicdb_1 | System started datomic:ddb://eu-central-1/data/<DB-NAME>
datomicdb_1 | Critical failure, cannot continue: Lifecycle thread failed
datomicdb_1 | java.util.concurrent.ExecutionException: com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the chain
[...]
Do you have an example of a Dockerfile where you connect to DynamoDB?
Thanks in advance (and sorry if there was somewhere else I should've posted my question)!
Best,
Henrik
I have cloned the project as of 9f586fb and added my credentials to both .credentials
files, however, I get the below output when running docker-compose up
. I am able to wget
datomic using the same credentials that I have in my .credentials
files.
Building datomicdb
Step 1 : FROM pointslope/datomic-pro-starter:0.9.5385-alpine
# Executing 3 build triggers...
Step 1 : ADD .credentials /tmp/.credentials
Step 1 : 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
---> Running in 25dee18fabce
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (35) Unknown SSL protocol error in connection to deploy-a0dbc565-faf2-4760-9b7e-29a8e45f428e.s3.amazonaws.com:443
ERROR: Service 'datomicdb' failed to build: The command '/bin/sh -c 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' returned a non-zero code: 35
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.