Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build this project? #3

Open
veeblefetzer opened this issue Jan 3, 2022 · 0 comments
Open

How to build this project? #3

veeblefetzer opened this issue Jan 3, 2022 · 0 comments

Comments

@veeblefetzer
Copy link

Hi,

I am very keen to use this plugin in a db-less Kong setup.

How can I build this plugin to integrate it into a kong installation?

Trying to build it with $ luarocks make *.rockspec results in:

Error: File not found: *.rockspec

So I put a .rockspec file together with this content:

package = "kong-plugin-icap"
version = "1.0-0"
source = {
   url = "git+https://github.com/Optum/kong-plugin-icap.git"
}
description = {
   summary = "Kong plugin designed to scan http payload against an ICAP server.",
   detailed = [[
   Virus scanner plugin for Kong APIGateway leveraging ICAP protocol.
   ]],
   homepage = "https://github.com/Optum/kong-plugin-icap",
   license = "Apache 2.0"
}
dependencies = {}
build = {
   type = "builtin",
   modules = {
      ["kong.plugins.kong-plugin-icap.handler"]  = "handler.lua",
      ["kong.plugins.kong-plugin-icap.schema"]= "schema.lua"
   }
}

But I don't think, that I am on the right way. Something or some "glue code" is missing.

Unfortunately I am completely new to Lua, this is my first contact with this language.

Are you planing to release this plugin on Kong Plugin Hub?

Thanks,
Wahid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant