Code Monkey home page Code Monkey logo

datomic-starter's Introduction

Datomic Starter docker image

This repository contains the source code for a docker image for running Datomic Starter edition. I made this one to easily spin up a dev / test environment, so I can use it to run integration tests using libraries like Test Containers.

This image is based on the clojure official image. It starts both the Datomic's transactor (the one that receives the writes requests and stores them) and the Datomic console, so I can use it to query the database.

After cloning the repo, in the terminal using a machine that has Docker installed, go to the src folder and run the command below, replacing the following parameters:

  • datomic_version - the Datomic version you want to use. It's optional and if not provided, the default value is 1.0.6726

All these information can be obtained in Datomic's account page.

docker build -t my-datomic-starter:0.1 --build-arg datomic_version={{datomic_version}} . 

As an example:

docker build -t my-datomic-starter:0.1 --build-arg datomic_version=1.0.6726 . 

To run, you just need to create the container.

docker run -d -p 8080:8080 -p 4334:4334 my-datomic-starter:0.1

Go to http://localhost:8080/browse and you'll have access to the Datomic console. Also, you can connect to the containter to get access to the shell and start a new REPL instance to interact with Datomic (in the image below, there's and exemple on how to do it and create a new database and insert some datoms on it).

Connecting to a container and running some Clojure commands on REPL

datomic-starter's People

Contributors

fabiogouw avatar

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.