mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
Publish image using Docker-in-Docker
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
This commit is contained in:
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
|
||||||
|
|||||||
6
githooks/README.md
Normal file
6
githooks/README.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
**If you want to use git hooks, you need to install hooks first!**
|
||||||
|
|
||||||
|
run
|
||||||
|
```shell script
|
||||||
|
git hooks install
|
||||||
|
```
|
||||||
3
githooks/pre-commit/fmt
Executable file
3
githooks/pre-commit/fmt
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
make fmt
|
||||||
3
githooks/pre-push/verifiers
Executable file
3
githooks/pre-push/verifiers
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
make verifiers
|
||||||
Loading…
x
Reference in New Issue
Block a user