#!/bin/bash

DEFAULT_NAME=cora-xai-mnist

docker build . -t "$DEFAULT_NAME" --no-cache
docker run --mac-address 02:42:ac:11:00:0a -e MLM_LICENSE_FILE=/home/matlab/Documents/MATLAB/license.lic --name "$DEFAULT_NAME" "$DEFAULT_NAME" -batch "cd /; addpath(genpath('/code')); xai_run_evaluation('$DEFAULT_NAME')"
docker cp "$DEFAULT_NAME":/results .
docker rm --force "$DEFAULT_NAME"
docker image rm --force "$DEFAULT_NAME"

