mikelieman icon

Makefile for Dockerfile

mikelieman | PRO | 12/27/20 08:54:16 AM UTC | 0 ⭐ | 11409 👁️ | Never ⏰ | []
Make |

920 B

|

None

|

0 👍

/

0 👎

#
#  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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎