Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to use a persistent datomic db #119

Open
oxalorg opened this issue Nov 20, 2020 · 3 comments
Open

Document how to use a persistent datomic db #119

oxalorg opened this issue Nov 20, 2020 · 3 comments

Comments

@oxalorg
Copy link
Member

oxalorg commented Nov 20, 2020

Using an in-memory database and reloading data on every reset is quite annoying.

I've already figured out one way using docker to spin a persistent datomic instance on the FS, I'm exploring a little more on it and if it works I'll update the docs.

@oxalorg oxalorg changed the title Document how to use datomic with the file system Document how to use a persistent datomic db Nov 20, 2020
@plexus
Copy link
Member

plexus commented Nov 23, 2020

This is probably the easiest option https://github.com/gws/docker-datomic-free-transactor

Although I believe as it stands Cognitect has stopped updating Datomic Free, which is a shame. Instead you're supposed to register for a free trial of Datomic Pro, but that's not a great experience for someone just wanting to contribute to an open source project.

But so far we're not using any new features so we can still use Datomic free for now. Maybe eventually we'll migrate to one of the open source datalog databases. (Crux, Asami, Datahike, Datalevin)

@oxalorg
Copy link
Member Author

oxalorg commented Nov 26, 2020

This too works for me:

docker run -d -e ADMIN_PASSWORD="admin" -e DATOMIC_PASSWORD="datomic" -p 4334-4336:4334-4336 --name datomic-free akiel/datomic-free

@plexus
Copy link
Member

plexus commented Nov 27, 2020

That would be this one: https://github.com/alexanderkiel/datomic-free . Good to know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants