#
# Documentation goes here
#
###########################################################
## Define Repo & Tag, nothing else changes here
REPO = localhost/csny/bugzillad_ol8
TAG = latest
###########################################################
BUILDAH_EXE = /usr/bin/buildah
default : usage
usage :
@echo
@echo Image Will Be Stored To
@echo -----------------------
@echo REPO = $(REPO)
@echo TAG = $(TAG)
@echo
@echo Makefile Targets
@echo ----------------
@echo clean
@echo clean-dangling
@echo image
@echo
clean :
-find . -name \*~ -exec rm -f {} \;
-$(BUILDAH_EXE) rm `$(BUILDAH_EXE) ps -q`
clean-dangling :
sudo $(BUILDAH_EXE) images -q -f=dangling=true | xargs sudo $(BUILDAH_EXE) rmi
image :
sudo $(BUILDAH_EXE) build-using-dockerfile -t $(REPO):$(TAG) .
Comments
0 B
|👍
/👎
0 B
|👍
/👎