Basic curl based on Ubuntu and the Do framework
2.3K
This is a Depend on Docker project which comes operational out of the box and is configured with reasonable defaults, which can be customized as needed.
The project contains the following scripts:
config.sh - open the configuration file .env in an editor so the project can be customizedbuild.sh - build the container imagetest.sh - run container unit testspush.sh - push the container image to a registrypull.sh - pull the container image from a registryrun.sh [cmd] - run the container, passing an argument overrides the default commandstatus.sh - show container status - running, exited, etc.logs.sh - tail container logsexec.sh [cmd] - open a shell or execute a specified command in the running containerWithin project ( git clone https://github.com/iankoulski/do-curl.git ):
./run.sh
./exec.sh curl http://icanhazip.com
./stop.sh
On a docker host:
docker run -it --rm iankoulski/do-curl curl http://icanhazip.com
In Kubernetes:
kubectl exec -it <pod-name> -- bash -c "curl http://icanhazip.com"
Content type
Image
Digest
sha256:25d356542…
Size
65.7 MB
Last updated
about 1 year ago
docker pull iankoulski/do-curl