Skip to content

How to build this project? #3

@veeblefetzer

Description

@veeblefetzer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions