Coder Social home page Coder Social logo

docker-datomic-example's People

Contributors

ddeaguiar avatar justone avatar mtnygard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-datomic-example's Issues

Datomic Console Error

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

Error starting transactor

java.lang.RuntimeException: Unable to load license key*

I get this error when doing docker-compose up I have the creds and the license in the config files. The error details dont say much else.

docker-datomic zsh 2017-07-21 12-24-18

Have you encountered this before?

Download failure my.datomic.com

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

Transactor "Unable to load license keys"

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.

  • Do I need to include the prefix? Such that the properties file has a line that begins with license-key=license-key=...
  • Do I need to remove the line breaks and backslashes in the key content?

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 building console / missing image?

$ 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.

error loading license key

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

DynamoDB AWS credentials?

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 Dockerfiles 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

No visible db in the console.

When I run docker-compose up, the console comes up, but I don't see any connected databases.
E.g.
Screen Shot 2019-05-07 at 9 06 41 PM

There's a chance I just don't know what I'm doing - I've never used the console.

It seems like wait is working:
Screen Shot 2019-05-07 at 9 22 40 PM

Any ideas what I'm doing wrong?
Many thanks!

Curl: Unknown SSL protocol error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.