try dind again
This commit is contained in:
parent
5f3b83c3fe
commit
5f7cee0a51
|
@ -1,6 +1,17 @@
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-api-3-10
|
- build-api-3-10
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: docker
|
||||||
|
image: docker.io/docker:20.10-dind
|
||||||
|
environment: &docker_env
|
||||||
|
# DOCKER_CERT_PATH: "/shared/docker/client"
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
|
DOCKER_HOST: tcp://localhost:2376
|
||||||
|
DOCKER_NAME: "apextoaster/onnx-web"
|
||||||
|
# DOCKER_TLS_CERTDIR: "/shared/docker"
|
||||||
|
DOCKER_TLS_VERIFY: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker.io/docker:20.10
|
image: docker.io/docker:20.10
|
||||||
|
@ -8,13 +19,4 @@ steps:
|
||||||
- mkdir ${HOME}/.docker
|
- mkdir ${HOME}/.docker
|
||||||
- echo "${DOCKER_SECRET}" | base64 -d > ${HOME}/.docker/config.json
|
- echo "${DOCKER_SECRET}" | base64 -d > ${HOME}/.docker/config.json
|
||||||
- ../common/scripts/image-build.sh --push
|
- ../common/scripts/image-build.sh --push
|
||||||
|
environment: *docker_env
|
||||||
volumes:
|
|
||||||
- dockersock:/var/run/docker.sock
|
|
||||||
|
|
||||||
backend_options:
|
|
||||||
kubernetes:
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
hostPath:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
Loading…
Reference in New Issue