Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myapp

A kdb-x real-time engine with a synthetic data feed.

Running with Docker

Prerequisites

  • Docker
  • A valid kdb+ licence at ~/.kx/kc.lic

Build the image

Note: Below assumes you've installed kdb-x from the KX developer centre. This installs kdb-x plus kdb-x modules to a default location of ~/.kx.

A number of kdb-x modules are downloaded as part of the base image. These include qmamba, logging and printf

Run from the docker/ directory:

cd docker
docker build -t kdb-base .

Start the containers

export KDB_LICENSE_B64=$(base64 -w0 ~/.kx/kc.lic)
docker compose -f docker/compose.yaml up

This starts two containers on the kx bridge network:

Container Process Port
q-rte-0 RTE 5003
q-feed-0 Feed 5000

On first run the entrypoint uses qmamba to install kx.log and kx.printf from the kx Anaconda channel. Subsequent starts skip the install.

Running Tests

Tests require q and ~/.kx/mod installed locally.

QPATH=~/.kx/mod/:src/ q test.q

Test files live in tests/. The runner prints a result table and JUnit XML output.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages