Installation

binary

Krab binary can be downloaded from GitHub. Other methods are listed below.

asdf

Krab provides asdf plugin (make sure you have asdf updated):

asdf plugin add krab

Install desired version:

asdf install krab 0.9.0

Set it to your project:

asdf local krab 0.9.0

docker

Docker images can be found at GitHub packages.

To start a docker container a DATABASE_URL environment variable must be provided. By default “krab” reads configuration from /etc/krab that must be mounted as a volume, the path can be changed by KRAB_DIR environment variable.

Pull the docker image:

docker pull ghcr.io/ohkrab/krab:nightly

Example:

docker run --rm                          \  # remove container after command execution
        -e DATABASE_URL="..."            \  # provide connection string
        -v ${HOME}/project1:/etc/krab:ro \  # mount configuration volume
        ghcr.io/ohkrab/krab:nightly version    # run `version` command from `qbart/krab:latest`

one-liner:

docker run --rm -e DATABASE_URL="..." -v ${HOME}/project1:/etc/krab:ro ghcr.io/ohkrab/krab:nightly version