#!/bin/bash

sbt compile

cd docker-kerberos

# Build the containers
docker-compose build

# Run them. The --abort-on-container-exit stops all containers if any container was stopped.
docker-compose up --abort-on-container-exit
EXIT=$(docker-compose ps | grep "kerberos-client" | grep -oP "(?<=Exit )\d+")

# Remove the containers to ensure a clean slate the next time this script in ran.
docker-compose rm -f

exit $EXIT
#!/bin/bash

cd docker-kerberos

# Build the containers
docker-compose build

# Run them. The --abort-on-container-exit stops all containers if any container was stopped.
docker-compose up --abort-on-container-exit
EXIT=$(docker-compose ps | grep "kerberos-client" | grep -oP "(?<=Exit )\d+")

# Remove the containers to ensure a clean slate the next time this script in ran.
docker-compose rm -f

exit $EXIT
Remove the compilation from the script.
Remove the compilation from the script.
