Package: dugaire
Quickly build custom Docker images for local development without having to write Dockerfiles.Examples# Build an image with vim and curl using apt-getdockerrun-it--rm$(dugairebuild--apt=vim,curl)# Build an image with wget, and nano using apt-get and install latest azure-cli version using pip3.dockerrun-it--rm$(dugairebuild--apt=wget,nano--pip3=azure-cli)# Build an image with latest kubectl versiondockerrun-it--rm$(dugairebuild--with-kubectl=latest)# Build an image with kubectl 1.15.0dockerrun-it--rm$(dugairebuild--with-kubectl=1.15.0)Install (on Linux)Using pip (recommended)pipinstalldugaireFrom sourceClone this repository.gitclonehttps://github.com/tadeugr/dugaire.gitcdto its directory.cddugaireInstall it (requirespip).makeinstallYou should have the command available.dugairebuild--helpUsageUsage:dugaire[OPTIONS]COMMAND[ARGS]...CLItooltobuildandmanagecustomDockerimages.

Options:--versionShowtheversionandexit.--helpShowthismessageandexit.

Commands:buildBuildDockerimageswithcustompackages.listListimagesbuiltwithdugaire.rmiRemoveimagesbuiltwithdugaire.versionShowtheversionandexit.dugaire buildUsage:dugairebuild[OPTIONS]BuildDockerimageswithcustompackages.Examples:Buildanimageandinstallvimandcurlusingapt-get.$dugairebuild--apt=vim,curlBuildanimageandinstallpython3usingapt-getandansibleusingpip3.$dugairebuild--apt=python3-pip--pip3=ansibleBuildanimageandinstallthelatestversionofkubectl.$dugairebuild--with-kubectl=latest

Options:--from<name:tag>Baseimage(usedinDockerfileFROM).Example:--from=ubuntu:20.04[default:ubuntu:20.04;required]--name<name:tag>Imagename.Example:--name="myimage:0.0.1"[default:random]--apt<pkg01|pkg01,pkg02>Commaseparetedlistofpackages(noblankspace)toinstallusingapt-getinstall.Requiresabaseimagewithapt-get.Example:-apt=curl,vim--pip3<pkg01|pkg01,pkg02>Commaseparetedlistofpackages(noblankspace)toinstallusingpip3install.WARNING:requires-apt=python3-pip.Example:-apt=python3-pip-pip3=ansible,jinja2--with-kubectl<latest|semanticversioning>Installkubectl.Examples:--with-kubectl=latest/--with-kubectl=1.17.0--with-terraform<latest|semanticversioning>Installterrafom.Examples:--with-terraform=latest/--with-terraform=0.15.5--with-velero<latest|semanticversioning>Installvelero.Examples:--with-velero=latest/--with-velero=1.5.2--forceIgnoreDockercacheandbuildfromscratch.--dry-runDonotbuildimage.-o,--output[image.id|image.id.short|image.name|dockerfile]Commandoutputoptions.[default:image.id.short]--helpShowthismessageandexit.Enable autocompleteTo enable autocomplete for your current terminal session, run:eval"$(_DUGAIRE_COMPLETE=sourcedugaire)"Follow the instructions bellow to permanently enable autocomplete.bashecho'eval "$(_DUGAIRE_COMPLETE=source dugaire)"'>>~/.bashrczshecho'eval "$(_DUGAIRE_COMPLETE=source dugaire)"'>>~/.zshrcSupported featuresBase imagesTested with:ubuntu:20.04You may use base images that were built from the tested images.Package/Dependency managersapt-getYou can install any package usingaptUse a comma separated list (no blank space) of packages you want to install.Example:dugairebuild--apt=wget,iputils-pingpip3You can install any package usingpip3Use a comma separated list (no blank space) of packages you want to install.Use<package name>==<version>to install specific versions.Example:dugairebuild--pip3=jinja2,azure-cli==2.39.0ApplicationskubectlOptions--with-kubectl=latestto install the latest version.--with-kubectl=1.17.0(example)to install specific versions.See all versions availablehere.Covered by automated testsYou may install any version available. The commands bellow only describes versions included in the automated tests.dugairebuild--from=ubuntu:20.04--with-kubectl=latest
dugairebuild--from=ubuntu:20.04--with-kubectl=1.18.0
dugairebuild--from=ubuntu:20.04--with-kubectl=1.17.0
dugairebuild--from=ubuntu:18.04--with-kubectl=1.16.0
dugairebuild--from=ubuntu:18.04--with-kubectl=1.15.0terraformOptions--with-terraform=latestto install the latest version.--with-terraform=0.15.05(example)to install specific versions.See all versions availablehere.Covered by automated testsYou may install any version available. The commands bellow only describes versions included in the automated tests.dugairebuild--from=ubuntu:20.04--with-terraform=latest
dugairebuild--from=ubuntu:20.04--with-terraform=0.15.05veleroOptions--with-velero=latestto install the latest version.--with-velero=1.5.2(example)to install specific versions.See all versions availablehere.Covered by automated testsYou may install any version available. The commands bellow only describes versions included in the automated tests.dugairebuild--from=ubuntu:20.04--with-kubectl=latest--with-velero=latest
dugairebuild--from=ubuntu:20.04--with-kubectl=1.17.0--with-velero=1.5.2LicenseProduct licenseApache License Version 2.0, January 2004.Read more.FOSSA scan overviewFOSSA Live Project reportThe report is availablehere