|
1 | | -# Short name: Short name, following [a-zA-Z_], used all over the place. |
2 | | -# Some uses for short name: |
3 | | -# - Docker image name |
4 | | -# - Kubernetes service, rc, pod, secret, volume names |
5 | 1 | SHORT_NAME := dockerbuilder |
6 | | - |
7 | | -# Enable vendor/ directory support. |
8 | | -export GO15VENDOREXPERIMENT=1 |
9 | | - |
10 | | -# Common flags passed into Go's linker. |
11 | | -LDFLAGS := "-s -X main.version=${VERSION}" |
12 | | - |
13 | | -# Docker Root FS |
14 | | -BINDIR := ./rootfs |
15 | | - |
16 | | -# Legacy support for DEV_REGISTRY, plus new support for DEIS_REGISTRY. |
17 | | -DEV_REGISTRY ?= $(eval docker-machine ip deis):5000 |
18 | | -DEIS_REGISTY ?= ${DEV_REGISTRY}/ |
| 2 | +DEIS_REGISTY ?= quay.io/ |
19 | 3 | IMAGE_PREFIX ?= deis |
20 | 4 |
|
21 | 5 | include versioning.mk |
22 | 6 |
|
23 | | -all: |
24 | | - @echo "Use a Makefile to control top-level building of the project." |
25 | | - |
26 | 7 | # For cases where we're building from local |
27 | 8 | docker-build: |
28 | 9 | docker build --rm -t ${IMAGE} rootfs |
29 | 10 | docker tag ${IMAGE} ${MUTABLE_IMAGE} |
30 | 11 |
|
31 | | -# Deploy is a Kubernetes-oriented target |
32 | | -deploy: kube-service kube-rc |
33 | | - |
34 | | -# Some things, like services, have to be deployed before pods. This is an |
35 | | -# example target. Others could perhaps include kube-secret, kube-volume, etc. |
36 | | -kube-service: |
37 | | - kubectl create -f ${SVC} |
38 | | - |
39 | | -# When possible, we deploy with RCs. |
40 | | -kube-rc: |
41 | | - kubectl create -f ${RC} |
42 | | - |
43 | | -kube-clean: |
44 | | - kubectl delete rc deis-example |
45 | | - |
46 | | -bootstrap: |
47 | | - @echo Nothing to do. |
48 | | - |
49 | 12 | test: |
50 | 13 | @echo "Implement functional tests in _tests directory" |
51 | 14 |
|
|
0 commit comments