forked from teamhephy/dockerbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 708 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (18 loc) · 708 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
SHORT_NAME := dockerbuilder
DEIS_REGISTRY ?= quay.io/
IMAGE_PREFIX ?= deis
include versioning.mk
DEV_ENV_IMAGE := quay.io/deis/python-dev:v0.1.0
DEV_ENV_WORK_DIR := /app
DEV_ENV_PREFIX := docker run --rm -v ${CURDIR}/rootfs:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR}
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}
# For cases where we're building from local
docker-build:
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
docker tag ${IMAGE} ${MUTABLE_IMAGE}
test: test-style test-functional
test-style:
${DEV_ENV_CMD} flake8 --show-source --config=setup.cfg .
test-functional:
@echo "Implement functional tests in _tests directory"
.PHONY: all docker-build test test-style test-functional