Skip to content

TimJDFletcher/docker-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-scripts

These are some helpful docker scripts for working with Dockerfiles and building them.

There is a makefile (docker-makefile) included here now that does the same job as these scripts, copy it you docker repo with the filename Makefile and then run make in your repo.

You may need to tweak the container name and the test parms for your docker container.

There are 3 scripts in the dockerfile-scripts dir:

  • dockerfile-build.sh this builds a dockerfile in the current directory and tags it correctly

  • dockerfile-run.sh this runs the latest tag of the dockerfile in the current directory

  • dockerfile-deploy.sh pushs a built docker container with a date based tag to our repo

The default name for the container is $PWD

Makefile notes

Built be @timjdfletcher after seeing something in DevOps weekly.

Lightning talk about the docker make here: https://www.youtube.com/watch?v=QFnQTHHhjvA&index=3&list=PLENDK8Dct_tpJAIbi5a_qtaQ9tal0Kwfb&t=0s

Original post: https://container-solutions.com/tagging-docker-images-the-right-way/

Another docker and make gist: https://gist.github.com/mpneuried/0594963ad38e68917ef189b4e6a269db

Add this to your bash aliases to make it easy to use:

alias dockermake="make -f $HOME/Projects/tools/docker-scripts/docker-makefile"

Makefile notes:

About

Collection of Docker image building tools

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published