Sign inSign up

metcarob/docker-ws-caller

By metcarob

•Updated 4 months ago

Image I use for rest calls with python installed toextract JSON values from responses.

Image
1

4.3K

metcarob/docker-ws-caller repository overview

⁠docker-ws-caller

Docker image with curl and python installed which I can use to call web services

⁠Test Kong server

A lot of these scripts operate on a Kong image. For development a local test Kong server can be started with the following commands:

docker stack deploy --compose-file=docker-compose-test-instance.yml tmp-kong-stack

Konga will be at 127.0.0.1:1337 (I changed to 1339 for some reason)

Kong admin is at 127.0.0.1:8001

See scripts for usage examples

⁠Steps to release a new version

run continous test and make sure all tests pass - you need a local kong server running
git tag -l
git tag NEW_VER
git add --all
git commit -m"Releasing NEW_VER"
git push
git push --tags

(Not needed I got docker hub auto build working) goto docker hub (https://hub.docker.com/r/metcarob/docker-ws-caller/~/settings/automated-builds/⁠) Change latest tag to NEW_VER Press Trigger

⁠Steps to test out the image

docker run metcarob/docker-ws-caller:0.6.4 -c "ls /usr/bin | grep kong"

docker run metcarob/docker-ws-caller:0.6.4 -c "kong_test http://127.0.0.1:8001⁠"

docker run --mount type=bind,source=$(pwd)/examples,target=/examples metcarob/docker-ws-caller:0.6.4 -c "kong_update_cert_where_any_snis_match http://127.0.0.1:8001⁠ hosta.com,t.ac.uk,asd.com /examples/certs/server.crt /examples/certs/server.key hosta.com,t.ac.uk,asd.com"

⁠Test out docker hello world

docker run --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock metcarob/docker-ws-caller:0.6.4 -c "docker_helloworld"

Tag summary

Content type

Image

Digest

sha256:a9bded90c…

Size

128.2 MB

Last updated

4 months ago

docker pull metcarob/docker-ws-caller:0.7.31