1
0
Fork 0

fix(build): clean up after container builds

This commit is contained in:
ssube 2019-11-02 09:20:30 -05:00 committed by Sean Sube
parent 79b4c9a9db
commit c9a42f3863
2 changed files with 7 additions and 6 deletions

11
run.mk
View File

@ -38,11 +38,12 @@ local-alpine:
local-stretch:
docker run --rm -v "$(shell pwd):/salty-dog" -w /salty-dog node:11-alpine sh -c "apk add build-base git && make ci"
local-chown-leaks: ## clean up root-owned files the containers may leak
sudo chown -R ${USER}:${USER} $(ROOT_PATH)
full: ## ultra thorough build (looong)
$(MAKE) clean-target ci
$(MAKE) clean-target local-alpine
$(MAKE) clean-target local-stretch
# clean up root-owned files the containers may leak
sudo chown -R ${USER}:${USER} $(ROOT_PATH)
$(MAKE) clean-target local-alpine local-chown-leaks
$(MAKE) clean-target local-stretch local-chown-leaks
$(MAKE) clean-target
@echo "Full build (CI, alpine, stretch) succeeded!
@echo "Full build (CI, alpine, stretch) succeeded!"

View File

@ -1,4 +1,4 @@
#! /bin/bash
#! /bin/sh
PROJECT="${ROOT_PATH}"
PARENT="$(dirname "${PROJECT}")"