Sign inSign up

nbhadauria/kong-plugin-static-response

By nbhadauria

•Updated over 5 years ago

Kong image with a custom plugin for static response.

Image
0

897

nbhadauria/kong-plugin-static-response repository overview

Build Status

⁠Kong Plugin Static Response

This repository contains a very simple Kong plugin for Static Response.

⁠Install from Luarocks

I have published the plugin to Luarocks as recommended at Kong Plugin Development Guide⁠

You can directly install any where you are running kong, by following below steps:

apk update && apk add git unzip luarocks
luarocks install kong-plugin-static-response

⁠Build your Docker Image:

build your own custom docker image and use kong image as base docker image.

vi Dockerfile

FROM kong:latest
USER root
RUN apk update && apk add git unzip luarocks
RUN luarocks install kong-plugin-static-response
USER kong
docker build -t kong:with-static-response-plugin .

⁠Use my Docker repo (Kong Version 2.3.0):

docker pull nbhadauria/kong-plugin-static-response:latest

⁠To load Set the follwing variable:

KONG_PLUGINS=bundled,static-response

⁠Add Plugin

GitHub Logo

⁠Set Content

GitHub Logo

Tag summary

Content type

Image

Digest

Size

50.4 MB

Last updated

over 5 years ago

docker pull nbhadauria/kong-plugin-static-response