summaryrefslogtreecommitdiff
path: root/test.sh
blob: fbe3d1a1765851ff9f6332fb653255c5b8496a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

if [ -z "$1" ] || [ ! -e "test/Dockerfile.${1}" ]; then
    echo "USAGE: $0 [debian|centos]"
    exit 1
fi

python3 validate.py -g -s SC1091
docker build -f test/Dockerfile."${1}" -t erp-"${1}" . && docker run --rm -it -v "$(pwd)":/work erp-"${1}"