{"id":30662435,"url":"https://github.com/tadeugr/dugaire","last_synced_at":"2025-08-31T16:03:14.869Z","repository":{"id":56089845,"uuid":"313439764","full_name":"tadeugr/dugaire","owner":"tadeugr","description":"Build Docker images with custom packages for local development, testing and daily tasks.","archived":false,"fork":false,"pushed_at":"2022-10-12T20:15:35.000Z","size":373,"stargazers_count":5,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T08:04:09.173Z","etag":null,"topics":["ansible","azurecli","containers","docker","docker-images","dockerfile","kubernetes","pip","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/dugaire/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tadeugr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-16T22:10:58.000Z","updated_at":"2023-09-21T19:52:50.000Z","dependencies_parsed_at":"2022-08-15T13:00:28.248Z","dependency_job_id":null,"html_url":"https://github.com/tadeugr/dugaire","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tadeugr/dugaire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadeugr%2Fdugaire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadeugr%2Fdugaire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadeugr%2Fdugaire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadeugr%2Fdugaire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tadeugr","download_url":"https://codeload.github.com/tadeugr/dugaire/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadeugr%2Fdugaire/sbom","scorecard":{"id":865492,"data":{"date":"2025-08-11","repo":{"name":"github.com/tadeugr/dugaire","commit":"6c684340569f1c24344dfd982aa2053729350392"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pipeline.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"internal error: internal error: invalid Dockerfile: LABEL must have two arguments","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-gmj6-6f8f-6699","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T02:35:48.483Z","repository_id":56089845,"created_at":"2025-08-24T02:35:48.483Z","updated_at":"2025-08-24T02:35:48.483Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272988781,"owners_count":25026959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","azurecli","containers","docker","docker-images","dockerfile","kubernetes","pip","python"],"created_at":"2025-08-31T16:02:23.673Z","updated_at":"2025-08-31T16:03:14.860Z","avatar_url":"https://github.com/tadeugr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Quickly build custom Docker images for local development without having to write Dockerfiles.\n\n[![PyPI](https://img.shields.io/badge/pypi-latest-blue)](https://pypi.org/project/dugaire/)\n[![Python](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue)](https://pypi.org/project/dugaire/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![test](https://github.com/tadeugr/dugaire/workflows/test/badge.svg?branch=master)](https://github.com/tadeugr/dugaire/actions?query=workflow%3Atest)\n[![publish](https://github.com/tadeugr/dugaire/workflows/publish/badge.svg)](https://github.com/tadeugr/dugaire/actions?query=workflow%3Apublish)\n[![codecov](https://codecov.io/gh/tadeugr/dugaire/branch/develop/graph/badge.svg?token=Q6OURIL1ZK)](https://codecov.io/gh/tadeugr/dugaire)\n[![Documentation Status](https://readthedocs.org/projects/dugaire/badge/?version=latest)](https://dugaire.readthedocs.io/en/latest/?badge=latest)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Ftadeugr%2Fdugaire.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Ftadeugr%2Fdugaire?ref=badge_shield)\n\n# Examples\n\n```bash\n# Build an image with vim and curl using apt-get\ndocker run -it --rm $(dugaire build --apt=vim,curl)\n\n# Build an image with wget, and nano using apt-get and install latest azure-cli version using pip3.\ndocker run -it --rm $(dugaire build --apt=wget,nano --pip3=azure-cli)\n\n# Build an image with latest kubectl version\ndocker run -it --rm $(dugaire build --with-kubectl=latest)\n\n# Build an image with kubectl 1.15.0\ndocker run -it --rm $(dugaire build --with-kubectl=1.15.0)\n```\n\n# Install (on Linux)\n\n## Using pip (recommended)\n\n```bash\npip install dugaire\n```\n\n## From source\n\nClone this repository.\n\n```bash\ngit clone https://github.com/tadeugr/dugaire.git\n```\n\n`cd` to its directory.\n\n```bash\ncd dugaire\n```\n\nInstall it (requires `pip`).\n\n```bash\nmake install\n```\n\nYou should have the command available.\n\n```bash\ndugaire build --help\n```\n\n# Usage\n\n```bash\nUsage: dugaire [OPTIONS] COMMAND [ARGS]...\n\n  CLI tool to build and manage custom Docker images.\n\nOptions:\n  --version  Show the version and exit.\n  --help     Show this message and exit.\n\nCommands:\n  build    Build Docker images with custom packages.\n  list     List images built with dugaire.\n  rmi      Remove images built with dugaire.\n  version  Show the version and exit.\n\n```\n\n## dugaire build\n\n```bash\nUsage: dugaire build [OPTIONS]\n\n  Build Docker images with custom packages.\n\n  Examples:\n\n  Build an image and install vim and curl using apt-get.\n\n  $ dugaire build --apt=vim,curl\n\n  Build an image and install python3 using apt-get and ansible using pip3.\n\n  $ dugaire build --apt=python3-pip --pip3=ansible\n\n  Build an image and install the latest version of kubectl.\n\n  $ dugaire build --with-kubectl=latest\n\nOptions:\n  --from \u003cname:tag\u003e               Base image (used in Dockerfile FROM).\n                                  Example: --from=ubuntu:20.04  [default:\n                                  ubuntu:20.04; required]\n  --name \u003cname:tag\u003e               Image name. Example: --name=\"myimage:0.0.1\"\n                                  [default: random]\n  --apt \u003cpkg01|pkg01,pkg02\u003e       Comma separeted list of packages (no blank\n                                  space) to install using apt-get install.\n                                  Requires a base image with apt-get. Example:\n                                  -apt=curl,vim\n  --pip3 \u003cpkg01|pkg01,pkg02\u003e      Comma separeted list of packages (no blank\n                                  space) to install using pip3 install.\n                                  WARNING: requires -apt=python3-pip. Example:\n                                  -apt=python3-pip -pip3=ansible,jinja2\n  --with-kubectl \u003clatest|semantic versioning\u003e\n                                  Install kubectl. Examples: --with-\n                                  kubectl=latest / --with-kubectl=1.17.0\n  --with-terraform \u003clatest|semantic versioning\u003e\n                                  Install terrafom. Examples: --with-\n                                  terraform=latest / --with-terraform=0.15.5\n  --with-velero \u003clatest|semantic versioning\u003e\n                                  Install velero. Examples: --with-\n                                  velero=latest / --with-velero=1.5.2\n  --force                         Ignore Docker cache and build from scratch.\n  --dry-run                       Do not build image.\n  -o, --output [image.id|image.id.short|image.name|dockerfile]\n                                  Command output options.  [default:\n                                  image.id.short]\n  --help                          Show this message and exit.\n\n```\n\n# Enable autocomplete \n\nTo enable autocomplete for your current terminal session, run:\n\n```bash\neval \"$(_DUGAIRE_COMPLETE=source dugaire)\"\n```\n\nFollow the instructions bellow to permanently enable autocomplete.\n\n## bash\n\n```bash\necho 'eval \"$(_DUGAIRE_COMPLETE=source dugaire)\"' \u003e\u003e ~/.bashrc\n```\n\n## zsh\n\n```bash\necho 'eval \"$(_DUGAIRE_COMPLETE=source dugaire)\"' \u003e\u003e ~/.zshrc\n```\n\n# Supported features\n\n## Base images\n\nTested with:\n\n- `ubuntu:20.04`\n\n\u003e You may use base images that were built from the tested images.\n\n## Package/Dependency managers\n\n### apt-get\n\nYou can install any package using `apt`\n\nUse a comma separated list (no blank space) of packages you want to install. \n\nExample:\n\n```bash\ndugaire build --apt=wget,iputils-ping\n```\n\n### pip3\n\nYou can install any package using `pip3`\n\nUse a comma separated list (no blank space) of packages you want to install. \n\nUse `\u003cpackage name\u003e==\u003cversion\u003e` to install specific versions.\n\nExample: \n\n```bash\ndugaire build --pip3=jinja2,azure-cli==2.39.0\n``` \n\n## Applications\n\n### kubectl\n\n#### Options\n\n`--with-kubectl=latest` to install the latest version.\n\n`--with-kubectl=1.17.0` *(example)* to install specific versions.\n\nSee all versions available [here](https://github.com/kubernetes/kubectl/releases).\n\n#### Covered by automated tests\n\n\u003e You may install any version available. The commands bellow only describes versions included in the automated tests.\n\n```bash\ndugaire build --from=ubuntu:20.04 --with-kubectl=latest\ndugaire build --from=ubuntu:20.04 --with-kubectl=1.18.0\ndugaire build --from=ubuntu:20.04 --with-kubectl=1.17.0\ndugaire build --from=ubuntu:18.04 --with-kubectl=1.16.0\ndugaire build --from=ubuntu:18.04 --with-kubectl=1.15.0\n```\n\n### terraform\n\n#### Options\n\n`--with-terraform=latest` to install the latest version.\n\n`--with-terraform=0.15.05` *(example)* to install specific versions.\n\nSee all versions available [here](https://releases.hashicorp.com/terraform/).\n\n#### Covered by automated tests\n\n\u003e You may install any version available. The commands bellow only describes versions included in the automated tests.\n\n```bash\ndugaire build --from=ubuntu:20.04 --with-terraform=latest\ndugaire build --from=ubuntu:20.04 --with-terraform=0.15.05\n```\n\n### velero\n\n#### Options\n\n`--with-velero=latest` to install the latest version.\n\n`--with-velero=1.5.2` *(example)* to install specific versions.\n\nSee all versions available [here](https://github.com/vmware-tanzu/velero/releases).\n\n#### Covered by automated tests\n\n\u003eYou may install any version available. The commands bellow only describes versions included in the automated tests.\n\n```bash\ndugaire build --from=ubuntu:20.04 --with-kubectl=latest --with-velero=latest\ndugaire build --from=ubuntu:20.04 --with-kubectl=1.17.0 --with-velero=1.5.2\n```\n\n# License\n\n## Product license\n\nApache License Version 2.0, January 2004. [Read more.](https://github.com/tadeugr/dugaire/blob/master/LICENSE)\n\n## FOSSA scan overview\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Ftadeugr%2Fdugaire.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Ftadeugr%2Fdugaire?ref=badge_large)\n\n## FOSSA Live Project report \n\nThe report is available [here](https://app.fossa.com/reports/826e35e3-c1be-4f82-a260-da5b362aa83b)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftadeugr%2Fdugaire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftadeugr%2Fdugaire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftadeugr%2Fdugaire/lists"}