KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ how to dockerize kdb+

  • how to dockerize kdb+

    Posted by mario on March 20, 2024 at 4:16 pm

    I have kdb+ installed inside folder q

    inside q folder I have db folder which data I usually load \l db, there m64 folder, k4.lic, q.k.
    how to dockerize this q folder

    mario replied 9 months, 1 week ago 2 Members · 2 Replies
  • 2 Replies
  • megan_mcp

    Administrator
    March 20, 2024 at 4:44 pm

    Hi @mario

    This article should prove to be useful – Containerizing kdb+ with Docker. Making kdb+ portable and scalable | by Aidan O’Gorman | Medium

    If you have any issues, please let me know!

    Thanks,

    Megan

  • mario

    Member
    March 20, 2024 at 4:57 pm

    I got error exec /kdb/q: exec format error

    my path /Users/mario/kdb

    FROM debian:latest AS base

    # do not clean here, its cleaned later!

    RUN apt-get update \

    && apt-get -yy --option=Dpkg::options::=--force-unsafe-io upgrade

    # Set env variables for q

    ENV QHOME /kdb

    ENV PATH ${PATH}:${QHOME}

    # This should point to the license file location

    ENV QLIC /kdb

    # Refresh / Update the base image using alpine's package manager "apk", and binutils to allow use of e.g. tar/ar while building

    RUN apt-get -yy --option=Dpkg::options::=--force-unsafe-io --no-install-recommends install \

    ca-certificates \

    curl \

    rlwrap \

    runit \

    unzip \

    && apt-get clean \

    && find /var/lib/apt/lists -type f -delete

    COPY . /kdb

    WORKDIR /kdb

    CMD ["q", "load.q", "-p","5000"]

Log in to reply.