Add Dockerfile. Update Makefile.

This commit is contained in:
James Munnelly
2017-07-22 02:54:54 +01:00
parent 4a2486de52
commit 4440ac7349
2 changed files with 11 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM alpine:3.6
RUN apk add --no-cache ca-certificates
ADD _build/cert-manager-linux-amd64 /usr/bin/cert-manager
CMD ["/usr/bin/cert-manager"]
+4 -3
View File
@@ -1,5 +1,6 @@
ACCOUNT=jetstack
APP_NAME=cert-manager
REGISTRY=quay.io
PACKAGE_NAME=github.com/${ACCOUNT}/${APP_NAME}
GO_VERSION=1.8
@@ -7,7 +8,7 @@ GO_VERSION=1.8
GOOS := linux
GOARCH := amd64
DOCKER_IMAGE=${ACCOUNT}/${APP_NAME}
DOCKER_IMAGE=${REGISTRY}/${ACCOUNT}/${APP_NAME}
BUILD_DIR=_build
TEST_DIR=_test
@@ -25,7 +26,7 @@ TYPES_FILES = $(shell find pkg/apis -name types.go)
.PHONY: version
all: test build
all: verify test build
.get_deps:
@echo "Grabbing dependencies..."
@@ -80,7 +81,7 @@ docker_%:
# remove container
docker rm $(CONTAINER_ID)
image: docker_all version
image: version
docker build --build-arg VCS_REF=$(GIT_COMMIT) -t $(DOCKER_IMAGE):$(BUILD_TAG) .
push: image