添加一键打包 docker 脚本
完善 README.md
This commit is contained in:
parent
85bddfa276
commit
4d459187f9
@ -1,8 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# 用户缓存打包过程下载的依赖
|
||||||
|
mkdir repository
|
||||||
|
curDir=`pwd`
|
||||||
docker run --name maven --rm \
|
docker run --name maven --rm \
|
||||||
-v /mnt/sk-w/run/src/gb28181-docking-platform:/usr/src/mymaven \
|
-v ${curDir}:/usr/src/mymaven \
|
||||||
-v /mnt/sk-w/run/docker/maven/repository:/root/.m2/repository \
|
-v ${curDir}/repository:/root/.m2/repository \
|
||||||
-v /mnt/sk-w/run/docker/maven/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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user