{"id":20329375,"url":"https://github.com/ddev/ddev-utilities","last_synced_at":"2025-04-11T20:42:17.985Z","repository":{"id":147500326,"uuid":"612404920","full_name":"ddev/ddev-utilities","owner":"ddev","description":"Small Docker image with key utilities in it, mostly for ddev/ddev-platformsh","archived":false,"fork":false,"pushed_at":"2025-01-14T21:28:10.000Z","size":14,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-25T16:51:24.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ddev"],"custom":["https://www.paypal.com/donate/?hosted_button_id=MCNCSZHC7LHSQ","https://ddev.com/support-ddev/"]}},"created_at":"2023-03-10T21:54:43.000Z","updated_at":"2025-01-14T21:28:14.000Z","dependencies_parsed_at":"2025-01-14T22:27:24.975Z","dependency_job_id":"e099a594-fa9f-45a1-8b8f-cbdcbf596b99","html_url":"https://github.com/ddev/ddev-utilities","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddev","download_url":"https://codeload.github.com/ddev/ddev-utilities/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248479208,"owners_count":21110841,"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","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":[],"created_at":"2024-11-14T20:10:31.920Z","updated_at":"2025-04-11T20:42:17.977Z","avatar_url":"https://github.com/ddev.png","language":"Shell","funding_links":["https://github.com/sponsors/ddev","https://www.paypal.com/donate/?hosted_button_id=MCNCSZHC7LHSQ","https://ddev.com/support-ddev/"],"categories":[],"sub_categories":[],"readme":"# ddev-utilities docker image\n\n## Overview\n\nThis utility image is a lightweight set of consistent Linux utilities, especially with\n\n* base64\n* bash\n* curl\n* jq\n* sed\n* shasum\n* wget\n* yq\n\nTo push it to latest, run `./push.sh`\n\n## Instructions\n\nThis is most useful when something like a DDEV add-on cannot count on a utility like shasum or jq to be on the host side (or be a predictable version).\n\nInstead of using `ddev describe -j | jq -r` for example, use `ddev describe -j | docker run -t ddev/ddev-utilities jq -r`\n\nClassic utilities that are often different and unreliable on macOS include `base64` and `sed`\n\n### base64\n\nInstead of running `base64 -d` which may behave differently on different systems, use:\n\n```bash\necho \"somebase64content\" | docker run -i --rm ddev/ddev-utilities base64 -d\n```\n\n### curl\n\n```bash\ndocker run -i --rm ddev/ddev-utilities curl -I https://ddev.com\n```\n\n### jq\n\n`jq` is not available on all systems, but you can count on using it successfully with this image:\n\n```bash\nddev describe -j | docker run -i --rm ddev/ddev-utilities jq -r .raw\n```\n\n### sed\n\n`sed` often behaves differently in BSD-derived systems like `macOS`, so you can use it predictably like this:\n\nddev list -j | docker run -i --rm ddev/ddev-utilities bash -c \"jq -r .raw | sed 's/ddev\\\\.site/tld/g'\"\n\n### shasum\n\nInstead of running shasum directly (its behavior can vary radically from system to system), use\n\n```bash\necho $RANDOM | docker run -i --rm ddev/ddev-utilities shasum -a 256\n```\n\n### wget\n\n```bash\ndocker run -it --rm -v ./:/pwd -u $(id -u):$(id -g) -w /pwd ddev/ddev-utilities bash -c \"wget -qO- https://github.com/ddev/ddev/releases/download/v1.23.4/ddev_shell_completion_scripts.v1.23.4.tar.gz | tar xz --strip-components=1\"\n```\n\n### yq\n\n`yq` is used to modify YAML files. Example to add simple post-start hook to DDEV:\n\n```yaml\nhooks:\n    post-start:\n        - exec-host: ddev mailpit\n```\n\n```bash\ndocker run -i --rm -v ./:/pwd -u $(id -u):$(id -g) -w /pwd ddev/ddev-utilities yq -I4 -i '.hooks.\"post-start\"[0].\"exec-host\" = \"ddev mailpit\"' .ddev/config.yaml\n```\n\n### Building and pushing to Docker Hub\n\nSee [Use push.sh here](https://github.com/ddev/ddev-utilities/blob/main/push.sh)\n\n### Running\n\nTo run the container by itself:\n\n```bash\ndocker run -it --rm ddev/ddev-utilities\n```\n\n## Source:\n\n[https://github.com/ddev/ddev-utilities](https://github.com/ddev/ddev-utilities)\n\n## Maintained by:\n\nThe [DDEV Docker Maintainers](https://github.com/ddev)\n\n## Where to get help:\n\n* [DDEV Community Discord](https://discord.gg/5wjP76mBJD)\n* [Stack Overflow](https://stackoverflow.com/questions/tagged/ddev)\n\n## Where to file issues:\n\nhttps://github.com/ddev/ddev-utilities/issues\n\n## Documentation:\n\nhttps://github.com/ddev/ddev-utilities\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddev%2Fddev-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddev%2Fddev-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddev%2Fddev-utilities/lists"}