-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 1000 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
include includes.mk
# Short name: Short name, following [a-zA-Z_], used all over the place.
# Some uses for short name:
# - Docker image name
# - Kubernetes service, rc, pod, secret, volume names
SHORT_NAME := postgres
VERSION ?= git-$(shell git rev-parse --short HEAD)
# Legacy support for DEV_REGISTRY, plus new support for DEIS_REGISTRY.
DEIS_REGISTRY ?= ${DEV_REGISTRY}
IMAGE_PREFIX ?= deis
# Canonical docker image name
IMAGE := ${DEIS_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${VERSION}
all:
@echo "Use a Makefile to control top-level building of the project."
build:
@echo "Nothing to build. Use 'make docker-build' to build the image."
# For cases where we're building from local
# We also alter the RC file to set the image name.
docker-build: check-docker
docker build --rm -t ${IMAGE} rootfs
# Push to a registry that Kubernetes can access.
docker-push: check-docker check-registry
docker push ${IMAGE}
test: check-docker
contrib/ci/test.sh ${IMAGE}
.PHONY: all build deploy