Publish image using Docker-in-Docker

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
This commit is contained in:
quicksilver 2020-12-10 15:27:30 +08:00 committed by yefu.chen
parent 9cbebc0221
commit 046aa3529f
5 changed files with 18 additions and 9 deletions

View File

@ -21,6 +21,7 @@ dir ('build/docker/deploy') {
sh 'docker-compose build --force-rm 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-compose build --force-rm querynode'
sh 'docker-compose push querynode'

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

6
githooks/README.md Normal file
View 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
View File

@ -0,0 +1,3 @@
#! /bin/bash
make fmt

3
githooks/pre-push/verifiers Executable file
View File

@ -0,0 +1,3 @@
#! /bin/bash
make verifiers