1
0
Fork 0
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:
Jim Bugwadia 2019-05-22 21:41:24 -07:00
parent 682f64a1ee
commit e91cd9341b
4 changed files with 28 additions and 4 deletions

2
.gitignore vendored
View file

@ -1,6 +1,4 @@
certs
Gopkg.lock
Dockerfile
.vscode
gh-pages/public
/cmd/kyverno/kyverno

3
Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM scratch
ADD kyverno /kyverno
ENTRYPOINT ["/kyverno"]

24
Makefile Normal file
View 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

View file

@ -187,5 +187,4 @@ spec:
- containerPort: 443
securityContext:
privileged: true
imagePullSecrets:
- name: docker-registry-key