From f8059452bcce281e309596163d675737bc99a5ce Mon Sep 17 00:00:00 2001 From: ssube Date: Fri, 1 Nov 2019 21:27:18 -0500 Subject: [PATCH] feat(build): add build-in-image targets to make --- README.md | 2 +- run.mk | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f7e836..a3ff23f 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ ingress.extensions/gitlab created (dry run) ### Docker Build -This method does not require the usual dependencies to be installed locally, only `docker` itself. +This method does not require the usual dependencies to be installed, only `docker` itself. Build with Docker: diff --git a/run.mk b/run.mk index f658ead..1525a3e 100644 --- a/run.mk +++ b/run.mk @@ -31,3 +31,9 @@ test-rules: build-bundle --source $${file} \ --tag salty-dog > /dev/null || exit 1; \ done + +local-alpine: + docker run --rm -v "$(shell pwd):/salty-dog" -w /salty-dog node:11-stretch make ci + +local-stretch: + docker run --rm -v "$(shell pwd):/salty-dog" -w /salty-dog node:11-alpine sh -c "apk add build-base && make ci"