mirror of
https://github.com/sstent/unifi.git
synced 2025-12-06 06:01:37 +00:00
12 lines
292 B
Bash
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
|