Publish image using Docker-in-Docker (#4441)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/4448/head^2
quicksilver 2020-12-10 21:04:49 +08:00 committed by GitHub
parent 8053ac44b5
commit ba7ef9a6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View File

@ -12,6 +12,7 @@ dir ("docker/deploy") {
def sourceImage = "${params.DOKCER_REGISTRY_URL}/${PROJECT_NAME}/engine:${SOURCE_TAG}"
try {
sh(returnStatus: true, script: "docker pull ${params.DOKCER_REGISTRY_URL}/milvus/milvus-dev:amd64-${OS_NAME}")
sh(returnStatus: true, script: "docker pull ${sourceImage}")
sh "docker-compose build --force-rm ${BINARY_VERSION}_${OS_NAME}"
try {

View File

@ -7,13 +7,10 @@ metadata:
spec:
containers:
- name: publish-images
image: registry.zilliz.com/library/docker:v1.1.0
image: registry.zilliz.com/library/dind-compose:v0.1
imagePullPolicy: Always
securityContext:
privileged: true
command:
- cat
tty: true
resources:
limits:
memory: "8Gi"
@ -22,12 +19,11 @@ spec:
memory: "2Gi"
cpu: "1"
volumeMounts:
- name: docker-sock
mountPath: /var/run/docker.sock
- name: docker-graph-storage
mountPath: /var/lib/docker
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker.sock
- name: docker-graph-storage
emptyDir: {}
tolerations:
- key: dedicated
operator: Equal