Files
unifi/build_unifi.sh
2016-09-19 20:58:10 +02:00

12 lines
291 B
Bash

#!/bin/bash
VMNAME=${1:-unifi}
if [ -r Dockerfile.$VMNAME ]; then
DOCKER_USER=${DOCKER_USER:-tommi2day}
#build the container
docker stop $VMNAME
docker rm $VMNAME
docker build -t $DOCKER_USER/$VMNAME -f Dockerfile.$VMNAME .
else
echo "Usage: $0 VMNAME #Dockerfile.VMNAME must exists"
fi