You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
backend-duoji-monitor/bin/build.sh

29 lines
350 B
Bash

6 years ago
#!/bin/bash
PWD=$(cd `dirname $0`;pwd);
TARGET='test'
set -e
help() {
echo "Usage: $1 IMAGE."
exit 1
}
if [ $# -lt 1 ];then
help $0
fi
IMAGE=$1
if [ $# -ge 2 ];then
TARGET=$2
fi
cd $PWD/..
mvn clean package -P $TARGET
cp web/target/springbootstart-web-1.0.0.jar docker/springbootstart-1.0.0.jar
docker build -t $IMAGE docker