更换 maven docker 打包镜像
调整 GenerateSchemaTest MapperScan
This commit is contained in:
parent
67b90c7341
commit
6221adde01
@ -12,7 +12,7 @@ import org.springframework.test.context.ActiveProfiles;
|
||||
// 生成 schema 元数据 表
|
||||
@ActiveProfiles("pre-dev")
|
||||
@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
|
||||
public class GenerateSchemaTest {
|
||||
@Autowired
|
||||
|
@ -8,7 +8,7 @@ docker run --name maven --rm \
|
||||
-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 \
|
||||
-w /usr/src/mymaven \
|
||||
maven:3.9.3-eclipse-temurin-17 \
|
||||
maven:3.9.3-eclipse-temurin-17-alpine \
|
||||
mvn clean package -DskipTests -Pdocker
|
||||
docker save skcks.cn/gb28181-docking-platform -o gb28181-docking-platform.image
|
||||
ls -lh *.image
|
||||
|
Loading…
Reference in New Issue
Block a user