更改spring.profiles.active为dev 更改docker build

This commit is contained in:
punchhhh 2025-01-23 15:07:08 +08:00
parent 3b80e3b72a
commit f378ab15be
16 changed files with 16 additions and 16 deletions

View File

@ -5,7 +5,7 @@ app_version='1.0.0'
#profile_active='prod'
# 打包编译docker镜像
echo '----build image----'
docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
docker build build -f Dockerfile -t ${app_name}:${app_version} .
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'

View File

@ -4,7 +4,7 @@ spring:
main:
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
profiles:
active: local
active: dev
server:
port: 9090

View File

@ -4,7 +4,7 @@ app_version='1.0.0'
# 定义应用环境
# 打包编译docker镜像
echo '----build image----'
docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
docker build build -f Dockerfile -t ${app_name}:${app_version} .
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'

View File

@ -4,7 +4,7 @@ spring:
main:
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
profiles:
active: local
active: dev
server:
port: 48092

View File

@ -4,7 +4,7 @@ app_version='1.0.0'
# 定义应用环境
# 打包编译docker镜像
echo '----build image----'
docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
docker build build -f Dockerfile -t ${app_name}:${app_version} .
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'

View File

@ -4,7 +4,7 @@ spring:
main:
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
profiles:
active: local
active: dev
server:
port: 48094

View File

@ -4,7 +4,7 @@ app_version='1.0.0'
# 定义应用环境
# 打包编译docker镜像
echo '----build image----'
docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
docker build build -f Dockerfile -t ${app_name}:${app_version} .
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'

View File

@ -4,7 +4,7 @@ spring:
main:
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
profiles:
active: local
active: dev
server:
port: 48090

View File

@ -4,7 +4,7 @@ app_version='1.0.0'
# 定义应用环境
# 打包编译docker镜像
echo '----build image----'
docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
docker build build -f Dockerfile -t ${app_name}:${app_version} .
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'

View File

@ -4,7 +4,7 @@ spring:
main:
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
profiles:
active: local
active: dev
server:
port: 48088

View File

@ -4,7 +4,7 @@ app_version='1.0.0'
# 定义应用环境
# 打包编译docker镜像
echo '----build image----'
docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
docker build build -f Dockerfile -t ${app_name}:${app_version} .
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'

View File

@ -3,7 +3,7 @@ spring:
name: gateway-server
profiles:
active: local
active: dev
server:
port: 48080

View File

@ -4,7 +4,7 @@ app_version='1.0.0'
# 定义应用环境
# 打包编译docker镜像
echo '----build image----'
docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
docker build build -f Dockerfile -t ${app_name}:${app_version} .
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'

View File

@ -4,7 +4,7 @@ spring:
main:
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
profiles:
active: local
active: dev
server:
port: 48082

View File

@ -4,7 +4,7 @@ app_version='1.0.0'
# 定义应用环境
# 打包编译docker镜像
echo '----build image----'
docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
docker build build -f Dockerfile -t ${app_name}:${app_version} .
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'

View File

@ -5,7 +5,7 @@ spring:
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
profiles:
active: local
active: dev
server:
port: 48081