更换 maven docker 打包镜像
调整 GenerateSchemaTest MapperScan
This commit is contained in:
parent
67b90c7341
commit
6221adde01
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user