Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

jinaga/jinaga_images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jinaga Images

Docker images for use with Jinaga

jinaga-postgres-fact-keystore

A PostgreSQL database with the Jinaga fact and keystore schemas already installed.

To use, set the following environment variables:

Environment Variable Description
POSTGRES_PASSWORD Password for "postgres" admin account
APP_USERNAME Username for the application account
APP_PASSWORD Password for the application account
APP_DATABASE Name of the application database

Expose port 5432 so that applications can connect to PostgreSQL.

For example:

docker run --name jinaga-postgres -p5432:5432 -e POSTGRES_PASSWORD=secretpw -e APP_USERNAME=appuser -e APP_PASSWORD=apppw -e APP_DATABASE=appdb jinaga/jinaga-postgres-fact-keystore

You can then connect with the command line:

psql -h localhost -U appuser appdb

And enter the password apppw.

Or use the connection string:

postgresql://appuser:apppw@localhost:5432/appdb

To build:

cd jinaga-postgres-fact-keystore
docker build -t jinaga/jinaga-postgres-fact-keystore .

This image is based on the official postgres image.

jinaga-replicator

The Jinaga Replicator is a single machine in a network. It stores and shares facts. To get started, create a Replicator of your very own using Docker.

docker pull jinaga/jinaga-replicator
docker run --name my-replicator -p8080:8080 jinaga/jinaga-replicator

This creates and starts a new container called my-replicator. The container is listening at port 8080 for commands. Use a tool like Postman to POST messages to http://localhost:8080/jinaga/write and /read. Or configure a Jinaga client to connect to the Replicator.

import { JinagaBrowser } from "jinaga";

export const j = JinagaBrowser.create({
    httpEndpoint: "http://localhost:8080/jinaga"
});

About

Docker images for use with Jinaga

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published