mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
- add Makefile
- add Dockerfile - update install.yaml
This commit is contained in:
parent
682f64a1ee
commit
e91cd9341b
4 changed files with 28 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,6 +1,4 @@
|
|||
certs
|
||||
Gopkg.lock
|
||||
Dockerfile
|
||||
.vscode
|
||||
gh-pages/public
|
||||
/cmd/kyverno/kyverno
|
||||
|
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM scratch
|
||||
ADD kyverno /kyverno
|
||||
ENTRYPOINT ["/kyverno"]
|
24
Makefile
Normal file
24
Makefile
Normal file
|
@ -0,0 +1,24 @@
|
|||
.DEFAULT_GOAL: build
|
||||
PACKAGE ?=github.com/nirmata/kyverno
|
||||
MAIN ?=$(PACKAGE)
|
||||
LD_FLAGS ="-s -w"
|
||||
|
||||
REPO=nirmata/kyverno
|
||||
TAG=0.1
|
||||
|
||||
build:
|
||||
GOOS=linux go build -ldflags=$(LD_FLAGS) $(MAIN)
|
||||
|
||||
local:
|
||||
go build -ldflags=$(LD_FLAGS) $(MAIN)
|
||||
|
||||
image:
|
||||
docker build -t $(REPO):$(TAG) .
|
||||
docker tag $(REPO):$(TAG) $(REPO):latest
|
||||
|
||||
push:
|
||||
docker push $(REPO):$(TAG)
|
||||
docker push $(REPO):latest
|
||||
|
||||
clean:
|
||||
go clean
|
|
@ -187,5 +187,4 @@ spec:
|
|||
- containerPort: 443
|
||||
securityContext:
|
||||
privileged: true
|
||||
imagePullSecrets:
|
||||
- name: docker-registry-key
|
||||
|
||||
|
|
Loading…
Reference in a new issue