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.
admin-client-temperature/docker_init.sh

23 lines
678 B
Bash

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#docker init
#docker desktop 以 docket compose 单机卓面的方式运行
#maven环境初始化,如果项目根目录下没有.mvn文件夹需要执行此命令如果有了就不用执行些命令
mvn wrapper:wrapper
#初始化
docker init
#会有如下提示
#? What application platform does your project use? Java
#? What's the relative directory (with a leading .) for your app? ./src
#? What version of Java do you want to use? 17
#? What port does your server listen on? 8080
#编译springboot项目、打包成docker镜像并运行
docker compose up --build -d
#停止容器
docker compose down
#COPY ./Shanghai /etc/localtime
#COPY ./timezone /etc/timezone