All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.build.sh.ftl Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
#!/bin/bash
echo "------------------------------------停掉删除所有镜像---------------------------------"
docker stop ${projectName}-${version}
docker rm ${projectName}-${version}
docker rmi ${projectName}-${version}
echo "------------------------------------停掉删除所有镜像(完成)----------------------------"
docker build -t ${projectName}:${version} -f Dockerfile .
echo "---------------------------------------构建镜像(完成)--------------------------------"
<#--docker run -d -p 8081:8081 --network=host --name=${projectName}-${version} -e TZ=Asia/Shanghai -e MYSQL_HOST=127.0.0.1 -v /data/logs:/logs -e MYSQL_PORT=3306 -e MYSQL_NAME=root -e MYSQL_PWD=yes131455 -e REDIS_HOST=127.0.0.1 -e JAVA_OPTS="-server -Xms512m -Xmx1024m -Duser.timezone=Asia/Shanghai" ${projectName}:${version}-->




© 2015 - 2024 Weber Informatics LLC | Privacy Policy