|
|
|
@ -18,12 +18,13 @@ steps:
@@ -18,12 +18,13 @@ steps:
|
|
|
|
|
- cp -r docker /mnt/app/build/ |
|
|
|
|
|
|
|
|
|
- name: build-docker |
|
|
|
|
image: dashan/docker-compose:v1 |
|
|
|
|
image: plugins/docker |
|
|
|
|
volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置 |
|
|
|
|
- name: maven-build |
|
|
|
|
path: /mnt/app/build # 将应用打包好的Jar和执行脚本挂载出来 |
|
|
|
|
- name: docker |
|
|
|
|
path: /var/run/docker.sock # 挂载宿主机的docker |
|
|
|
|
- /usr/local/bin/docker-compose:/usr/local/bin/docker-compose |
|
|
|
|
#settings: |
|
|
|
|
# dockerfile: /mnt/app/build/Dockerfile |
|
|
|
|
commands: # 定义在Docker容器中执行的shell命令 |
|
|
|
|