#!/bin/bash

if [ "$1" = '' ] || [ "$2" = '' ]; then
    echo "RAD Server Docker pa-radserver Build Script";
    echo "Required arguments: RAD Server database (InterBase) host and port";
    echo "ex: build.sh example.com 3050";
else
    docker build --build-arg password=securepass \
        --build-arg dbhost=$1 --build-arg dbport=$2 \
        --platform linux/amd64 \
        --tag radstudio/pa-radserver:latest \
        --tag radstudio/pa-radserver:athens \
        --tag radstudio/pa-radserver:12.2.1 \
        .
fi
