caslab.blogg.se

How to use virtualbox to run linux mint 18.2
How to use virtualbox to run linux mint 18.2










how to use virtualbox to run linux mint 18.2

That we added the required path definitions for lua debugging here. Then the handler inheriting from a in kong/plugins/helloworld/a:Īnd finally the plugin implementation in kong/plugins/helloworld/a:

how to use virtualbox to run linux mint 18.2

įirst the plugin configuration located in kong/plugins/helloworld/a:

how to use virtualbox to run linux mint 18.2

Next we create a sample "HelloWorld" plugin as described in. To /path/to/kong/clone/5.1, our shared copy of the kong lua files Installation you can ignore since we are only interested in the lua/soįiles required for remote debugging located in /opt/zbstudio/lualibs.Ĭreate a Kong plugin using ZeroBrane Studioīack to the host, start ZeroBrane Studio and set the project directory You may see some error messages related to GUI Sh ZeroBraneStudioEduPack- 1.20 -linux.sh First start VirtualBox, then open a terminal and run the following commands on your host machine. Next we follow the documentation in to setup a kong vagrant image using bash either on Windows or MacOS. We experimented with Eclipse Lua LDT but didn't succeed with remote debugging kong plugins running in a vagrant image.įor windows we need a Unix shell, we recommend installing git which comes with a bash shell for windows which can be started right clicking on a directory in explorer. For Mac-OS we describe as an alternative a brew based installation at the end of this tutorial.Īs a prerequisite you need to install Vagrant, VirtualBox, SoapUI and ZeroBrane Studio. ZeroBrane Studio currently seems the only IDE supporting this scenario. Using Kong Vagrant images requires Lua remoteĭebugging. Since there is no Windows distribution of Kong this is the only option The preferred method is based on the Vagrant distribution of Kong ( ).

how to use virtualbox to run linux mint 18.2

The description should work also for newer Windows and older Mac-OS We used Windows 7/64 and Mac-OS "El Capitan", but Tutorial describes how to create an environment for creating,Ĭonfiguring, testing and debugging of a "Hello-World" Kong plugin both Debugging of LuaĬode is supported by different IDEs like ZeroBrane Studio and Eclipse Lua but nevertheless the setup of a development environment supporting debugging of Kong plugins on Windows and Mac-OS machines is not trivial. In Lua and supports a plugin oriented architecture. Kong is an open-source API management system based on NGINX , whichĪims to secure, manage and extend APIs and Microservices. How to debug Kong plugins on Windows and Mac-OS












How to use virtualbox to run linux mint 18.2