{"id":17528612,"url":"https://github.com/thxcode/curl","last_synced_at":"2025-03-06T08:32:05.333Z","repository":{"id":144370255,"uuid":"109773239","full_name":"thxCode/curl","owner":"thxCode","description":"cURL supports by Alpine in a docker container.","archived":true,"fork":false,"pushed_at":"2017-11-16T11:06:20.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T11:21:56.072Z","etag":null,"topics":["curl","docker-image","jq","openssl"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thxCode.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}},"created_at":"2017-11-07T01:56:02.000Z","updated_at":"2024-06-15T08:59:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1a4f120-b6a9-4441-b4fc-3e91de1d7b19","html_url":"https://github.com/thxCode/curl","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/thxCode%2Fcurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thxCode%2Fcurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thxCode%2Fcurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thxCode%2Fcurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thxCode","download_url":"https://codeload.github.com/thxCode/curl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242176505,"owners_count":20084586,"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":["curl","docker-image","jq","openssl"],"created_at":"2024-10-20T15:44:21.621Z","updated_at":"2025-03-06T08:32:05.323Z","avatar_url":"https://github.com/thxCode.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cURL\n\ncURL supports by Alpine in a docker container.\n\n[![](https://img.shields.io/badge/Github-thxcode/curl-orange.svg)](https://github.com/thxcode/curl)\u0026nbsp;[![](https://img.shields.io/badge/Docker_Hub-maiwj/curl-orange.svg)](https://hub.docker.com/r/maiwj/curl)\u0026nbsp;[![](https://img.shields.io/docker/build/maiwj/curl.svg)](https://hub.docker.com/r/maiwj/curl)\u0026nbsp;[![](https://img.shields.io/docker/pulls/maiwj/curl.svg)](https://store.docker.com/community/images/maiwj/curl)\u0026nbsp;[![](https://img.shields.io/github/license/thxcode/curl.svg)](https://github.com/thxcode/curl)\n\n[![](https://images.microbadger.com/badges/image/maiwj/curl.svg)](https://microbadger.com/images/maiwj/curl)\u0026nbsp;[![](https://images.microbadger.com/badges/version/maiwj/curl.svg)](http://microbadger.com/images/maiwj/curl)\u0026nbsp;[![](https://images.microbadger.com/badges/commit/maiwj/curl.svg)](http://microbadger.com/images/maiwj/curl.svg)\n\n## References\n\n- [cURL](https://curl.haxx.se/docs/manpage.html)\n- [jq](https://stedolan.github.io/jq/)\n- [Kubernetes RESTful API](https://kubernetes.io/docs/reference/)\n\n## How to use this image\n\n### Start an instance\n\nTo start a container, use the following:\n\n``` bash\n$ docker run -it --name test-curl maiwj/curl\n```\n\n### Watching resources from Kubernetes Pod\n\n``` bash\n$ kubectl run -it --image maiwj/curl:latest test bash\n\n/# export CACERT_PATH=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n\n/# export TOKEN_CONTENT=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\n\n/# export NAMESPACE=$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace)\n\n/# curl --cacert $CACERT_PATH \\\n--header \"Authorization: Bearer $TOKEN_CONTENT\" --header \"Connection: Keep-Alive\" \\\n--silent --no-buffer \\\n-X GET \"https://kubernetes/api/v1/watch/namespaces/$NAMESPACE/pods\" | jq 'if (.object.status.conditions | length) \u003e 0 and (.object.status.conditions | map(select(.type==\"Ready\" and .status==\"True\")) | length) \u003e 0 then {type: .type, name: .object.metadata.name} else empty end'\n\n```\n\n## License\n\n- cURL is released under the [MIT License](https://curl.haxx.se/docs/copyright.html)\n- This image is released under the [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthxcode%2Fcurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthxcode%2Fcurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthxcode%2Fcurl/lists"}