Prerequisites:
- Windows Docker.
Build Command:
docker build -t kong-plugins .
Run Command:
docker run -ti --rm --name kong-plugins -e "KONG_DATABASE=off" -e "KONG_GO_PLUGINS_DIR=/tmp/kong-plugins" -e "KONG_DECLARATIVE_CONFIG=/tmp/config.yml" -e "KONG_PLUGINS=auth-plugin,correlation-plugin" -e "KONG_PROXY_LISTEN=0.0.0.0:8000" -p 8000:8000 kong-plugins
Other Useful Docker Commands:
- docker ps
- docker ps -a
- docker system prune
- docker image prune
- docker inspect [YOUR_CONTAINER_ID]
Method Definitions
- Certificate: Executed during the SSL certificate serving phase of the SSL handshake.
- Rewrite: Executed for every request upon its reception from a client as a rewrite phase handler
- Access: Executed for every request from a client and before it is being proxied to the upstream service. Response: Executed after the whole response has been received from the upstream service, but before sending any part of it to the client.
- Preread: Executed once for every connection
- Log: Executed once for each connection after it has been closed.