Skip to content

srinath-chandra/Makefile_Jenkinsfile_Build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Makefile_Docker_Build

Simple Makefile to BUILD,PUSH,DEPLOY containers.

Refer my blog devops-geek.blogspot.com

Makefile targets

make build
make push
make deploy
make cleanup
make rmi
make stop_single_container
make rm_single_container
make rmi_docker_hub

Modify the pre-defined values according to your setup and push to your git account.

RELEASE_VERSION := 3.0-patch                  #Modify if you would like to have release version for your imahe.
DOCKER_HUB_REPO := ""                         #DockerHub RepoName.
USER_NAME = ""                                #Username for you dockerHUB registry [https://cloud.docker.com]
PASSWORD = ""                                 # Password for you dockerHUB registry

How to use it.

Note: Make sure you have DockerHUb account and you loged to repo using 'docker login' command.

You can use this in two ways,

  • With Jenkins :

    • Pipeline Job and use SCM check out plugin to checkout this repo and run the JOB ,which will build,push and deoply docker container for you.
  • Manual :

    • Clone the repo and run make command to build ,push and deploy container.
make build 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published