mirror of https://github.com/milvus-io/milvus.git
Publish image using Docker-in-Docker
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>pull/4973/head^2
parent
9cbebc0221
commit
046aa3529f
|
@ -21,6 +21,7 @@ dir ('build/docker/deploy') {
|
||||||
sh 'docker-compose build --force-rm proxy'
|
sh 'docker-compose build --force-rm proxy'
|
||||||
sh 'docker-compose push proxy'
|
sh 'docker-compose push proxy'
|
||||||
|
|
||||||
|
sh 'docker pull registry.zilliz.com/milvus-distributed/milvus-distributed-dev:latest || true'
|
||||||
sh 'docker pull ${SOURCE_REPO}/querynode:${SOURCE_TAG} || true'
|
sh 'docker pull ${SOURCE_REPO}/querynode:${SOURCE_TAG} || true'
|
||||||
sh 'docker-compose build --force-rm querynode'
|
sh 'docker-compose build --force-rm querynode'
|
||||||
sh 'docker-compose push querynode'
|
sh 'docker-compose push querynode'
|
||||||
|
|
|
@ -7,13 +7,10 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: publish-images
|
- name: publish-images
|
||||||
image: registry.zilliz.com/library/docker:v1.1.0
|
image: registry.zilliz.com/library/dind-compose:v0.1
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
command:
|
|
||||||
- cat
|
|
||||||
tty: true
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "8Gi"
|
memory: "8Gi"
|
||||||
|
@ -22,12 +19,11 @@ spec:
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
||||||
cpu: "1"
|
cpu: "1"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: docker-sock
|
- name: docker-graph-storage
|
||||||
mountPath: /var/run/docker.sock
|
mountPath: /var/lib/docker
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker-sock
|
- name: docker-graph-storage
|
||||||
hostPath:
|
emptyDir: {}
|
||||||
path: /var/run/docker.sock
|
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: dedicated
|
- key: dedicated
|
||||||
operator: Equal
|
operator: Equal
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
**If you want to use git hooks, you need to install hooks first!**
|
||||||
|
|
||||||
|
run
|
||||||
|
```shell script
|
||||||
|
git hooks install
|
||||||
|
```
|
|
@ -0,0 +1,3 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
make fmt
|
|
@ -0,0 +1,3 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
make verifiers
|
Loading…
Reference in New Issue