Files
unifi/build_unifi.sh
2016-09-19 21:08:53 +02:00

12 lines
292 B
Bash

#!/bin/bash
VMNAME=${1:-unifi5}
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