|
|
@ -24,7 +24,8 @@ steps: |
|
|
|
path: /mnt/app/build # 将应用打包好的Jar和执行脚本挂载出来 |
|
|
|
path: /mnt/app/build # 将应用打包好的Jar和执行脚本挂载出来 |
|
|
|
- name: docker |
|
|
|
- name: docker |
|
|
|
path: /var/run/docker.sock # 挂载宿主机的docker |
|
|
|
path: /var/run/docker.sock # 挂载宿主机的docker |
|
|
|
- /usr/local/bin/docker-compose:/usr/local/bin/docker-compose |
|
|
|
- name: dockerc |
|
|
|
|
|
|
|
path: /usr/local/bin/docker-compose |
|
|
|
#settings: |
|
|
|
#settings: |
|
|
|
# dockerfile: /mnt/app/build/Dockerfile |
|
|
|
# dockerfile: /mnt/app/build/Dockerfile |
|
|
|
commands: # 定义在Docker容器中执行的shell命令 |
|
|
|
commands: # 定义在Docker容器中执行的shell命令 |
|
|
@ -44,4 +45,7 @@ volumes: # 定义流水线挂载目录,用于共享数据 |
|
|
|
path: /www/mnt/maven/cache |
|
|
|
path: /www/mnt/maven/cache |
|
|
|
- name: docker |
|
|
|
- name: docker |
|
|
|
host: |
|
|
|
host: |
|
|
|
path: /var/run/docker.sock |
|
|
|
path: /var/run/docker.sock |
|
|
|
|
|
|
|
- name: dockerc |
|
|
|
|
|
|
|
host: |
|
|
|
|
|
|
|
path: /usr/local/bin/docker-compose |