#!/bin/sh

# script/setup: Set up container for the first time after cloning

set -e

cd "$(dirname "$0")/.."

script/bootstrap

echo "==> Setting up pod kontor"
if podman pod exists kontor; then
    echo "  => pod kontor exists"
else
    podman pod create --name kontor \
    --infra \
    -p 5432:5432 \
    -p 8100:8100 \
    -p 8200:8200 \
    --network bridge
fi

