Sign inSign up

maiwj/curl

By maiwj

•Updated almost 9 years ago

cURL supports by Alpine in a docker container.

Image
1

1M+

maiwj/curl repository overview

⁠cURL

cURL supports by Alpine in a docker container.

    

  

⁠References

⁠How to use this image

⁠Start an instance

To start a container, use the following:

$ docker run -it --name test-curl maiwj/curl
⁠Watching resources from Kubernetes Pod
$ kubectl run -it --image maiwj/curl:latest test bash

/# export CACERT_PATH=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt

/# export TOKEN_CONTENT=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)

/# export NAMESPACE=$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace)

/# curl --cacert $CACERT_PATH \
--header "Authorization: Bearer $TOKEN_CONTENT" --header "Connection: Keep-Alive" \
--silent --no-buffer \
-X GET "https://kubernetes/api/v1/watch/namespaces/$NAMESPACE/pods" | jq 'if (.object.status.conditions | length) > 0 and (.object.status.conditions | map(select(.type=="Ready" and .status=="True")) | length) > 0 then {type: .type, name: .object.metadata.name} else empty end'

⁠License

Tag summary

Content type

Image

Digest

Size

5.8 MB

Last updated

almost 9 years ago

docker pull maiwj/curl