更换 maven docker 打包镜像

调整 GenerateSchemaTest MapperScan
This commit is contained in:
shikong 2023-09-04 10:10:34 +08:00
parent 67b90c7341
commit 6221adde01
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import org.springframework.test.context.ActiveProfiles;
// 生成 schema 元数据 // 生成 schema 元数据
@ActiveProfiles("pre-dev") @ActiveProfiles("pre-dev")
@SpringBootTest(classes = {GenerateSchemaTest.class}) @SpringBootTest(classes = {GenerateSchemaTest.class})
@MapperScans(@MapperScan("cn.skcks.docking.gb28181.orm.mybatis")) @MapperScans(@MapperScan({"cn.skcks.docking.gb28181.orm.mybatis.dynamic","cn.skcks.docking.gb28181.orm.mybatis.operation"}))
@SpringBootApplication @SpringBootApplication
public class GenerateSchemaTest { public class GenerateSchemaTest {
@Autowired @Autowired

View File

@ -8,7 +8,7 @@ docker run --name maven --rm \
-v ${curDir}/settings.xml:/usr/share/maven/ref/settings.xml \ -v ${curDir}/settings.xml:/usr/share/maven/ref/settings.xml \
-v /etc/docker/daemon.json:/etc/docker/daemon.json -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker \ -v /etc/docker/daemon.json:/etc/docker/daemon.json -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker \
-w /usr/src/mymaven \ -w /usr/src/mymaven \
maven:3.9.3-eclipse-temurin-17 \ maven:3.9.3-eclipse-temurin-17-alpine \
mvn clean package -DskipTests -Pdocker mvn clean package -DskipTests -Pdocker
docker save skcks.cn/gb28181-docking-platform -o gb28181-docking-platform.image docker save skcks.cn/gb28181-docking-platform -o gb28181-docking-platform.image
ls -lh *.image ls -lh *.image