forked from jasder/java_ci
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
212 B
6 lines
212 B
4 years ago
|
echo ====暂停容器开始=======
|
||
|
docker rm -f devops-test
|
||
|
echo ====开始部署=======
|
||
|
docker build -t devops-test:1.0 .
|
||
|
docker run -d -p 8080:8080 --name devops-test devops-test:1.0
|
||
|
echo ====部署成功======
|