All Projects → moby → Datakit

moby / Datakit

Licence: apache-2.0
Connect processes into powerful data pipelines with a simple git-like filesystem interface

Programming Languages

ocaml
1615 projects

Projects that are alternatives of or similar to Datakit

eventkit
Event-driven data pipelines
Stars: ✭ 94 (-90.12%)
Mutual labels:  pipeline, data-flow
Mondrian
Mondrian is an Online Analytical Processing (OLAP) server that enables business users to analyze large quantities of data in real-time.
Stars: ✭ 947 (-0.42%)
Mutual labels:  database
Nextjs Sequelize
Next.js With Sequelize Web Application, a Full-Stack Web App Development Boilerplate. https://medium.com/@defrian.yarfi/next-js-with-sequelize-web-application-a-full-stack-web-development-a0051074e998
Stars: ✭ 21 (-97.79%)
Mutual labels:  database
Pytorch Toolbelt
PyTorch extensions for fast R&D prototyping and Kaggle farming
Stars: ✭ 942 (-0.95%)
Mutual labels:  pipeline
Steppy Toolkit
Curated set of transformers that make your work with steppy faster and more effective 🔭
Stars: ✭ 21 (-97.79%)
Mutual labels:  pipeline
Larawiz
Larawiz is a easy project scaffolder for Laravel
Stars: ✭ 28 (-97.06%)
Mutual labels:  database
Sidecar
Some old C++ code I developed while at MIT. Could be useful if you have an old radar lying around.
Stars: ✭ 20 (-97.9%)
Mutual labels:  data-flow
Avsqldebugger
A Simple Core Data Debugger that will look inside your apps DB
Stars: ✭ 30 (-96.85%)
Mutual labels:  database
Mu
A full-stack DevOps on AWS framework
Stars: ✭ 948 (-0.32%)
Mutual labels:  pipeline
Vhackxtbot Python
Python API for vHackXT Game
Stars: ✭ 27 (-97.16%)
Mutual labels:  database
Trousseau
File based encrypted key-value store
Stars: ✭ 915 (-3.79%)
Mutual labels:  database
Spew
Automatic Packaging and Distribution of Bioinformatics Pipelines
Stars: ✭ 21 (-97.79%)
Mutual labels:  pipeline
Deep learning projects
Stars: ✭ 28 (-97.06%)
Mutual labels:  database
Ethereumdb
Stars: ✭ 21 (-97.79%)
Mutual labels:  database
Entityframeworkcore.bootkit
EntityFrameworkCore Start Kit
Stars: ✭ 29 (-96.95%)
Mutual labels:  database
Activerecord Sqlserver Adapter
SQL Server Adapter For Rails
Stars: ✭ 910 (-4.31%)
Mutual labels:  database
Git Push Deploy
Simple Automated CI/CD Pipeline for GitHub and GitLab Projects
Stars: ✭ 21 (-97.79%)
Mutual labels:  pipeline
Eloquent Driver
A package that allows you to store Statamic entries in a database.
Stars: ✭ 28 (-97.06%)
Mutual labels:  database
Blog
本仓库存放个人博客的 markdown 源文件
Stars: ✭ 951 (+0%)
Mutual labels:  database
Mirth Connect Docker
Mirth-Connect Docker container (+ Mysql container + PHPMyAdmin container)
Stars: ✭ 29 (-96.95%)
Mutual labels:  database

DataKit -- Orchestrate applications using a Git-like dataflow

DataKit is a tool to orchestrate applications using a Git-like dataflow. It revisits the UNIX pipeline concept, with a modern twist: streams of tree-structured data instead of raw text. DataKit allows you to define complex build pipelines over version-controlled data.

DataKit is currently used as the coordination layer for HyperKit, the hypervisor component of Docker for Mac and Windows, and for the DataKitCI continuous integration system.


Build Status (OSX, Linux) Build status (Windows) docs

There are several components in this repository:

  • src contains the main DataKit service. This is a Git-like database to which other services can connect.
  • ci contains DataKitCI, a continuous integration system that uses DataKit to monitor repositories and store build results.
  • ci/self-ci is the CI configuration for DataKitCI that tests DataKit itself.
  • bridge/github is a service that monitors repositories on GitHub and syncs their metadata with a DataKit database. e.g. when a pull request is opened or updated, it will commit that information to DataKit. If you commit a status message to DataKit, the bridge will push it to GitHub.
  • bridge/local is a drop-in replacement for bridge/github that just monitors a local Git repository. This is useful for local testing.

Quick Start

The easiest way to use DataKit is to start both the server and the client in containers.

To expose a Git repository as a 9p endpoint on port 5640 on a private network, run:

$ docker network create datakit-net # create a private network
$ docker run -it --net datakit-net --name datakit -v <path/to/git/repo>:/data datakit/db

Note: The --name datakit option is mandatory. It will allow the client to connect to a known name on the private network.

You can then start a DataKit client, which will mount the 9p endpoint and expose the database as a filesystem API:

# In an other terminal
$ docker run -it --privileged --net datakit-net datakit/client
$ ls /db
branch     remotes    snapshots  trees

Note: the --privileged option is needed because the container will have to mount the 9p endpoint into its local filesystem.

Now you can explore, edit and script /db. See the Filesystem API for more details.

Building

The easiest way to build the DataKit project is to use docker, (which is what the start-datakit.sh script does under the hood):

docker build -t datakit/db -f Dockerfile .
docker run -p 5640:5640 -it --rm datakit/db --listen-9p=tcp://0.0.0.0:5640

These commands will expose the database's 9p endpoint on port 5640.

If you want to build the project from source without Docker, you will need to install ocaml and opam. Then write:

$ make depends
$ make && make test

For information about command-line options:

$ datakit --help

Prometheus metric reporting

Run with --listen-prometheus 9090 to expose metrics at http://*:9090/metrics.

Note: there is no encryption and no access control. You are expected to run the database in a container and to not export this port to the outside world. You can either collect the metrics by running a Prometheus service in a container on the same Docker network, or front the service with nginx or similar if you want to collect metrics remotely.

Language bindings

  • Go bindings are in the api/go directory.
  • OCaml bindings are in the api/ocaml directory. See examples/ocaml-client for an example.

Licensing

DataKit is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Contributions are welcome under the terms of this license. You may wish to browse the weekly reports to read about overall activity in the repository.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].