Docker Onbuild image to help debugging kong plugin using mobdebug bundled with Zerobrane Studio
761
checkout https://git.rucciva.one/rucciva/kong-dev
Docker Onbuild image to help debugging kong plugin using mobdebug bundled with Zerobrane Studio based on kong-vagrant and this awesome tutorial
This images was designed to work with the kong-plugin development template. Please
checkout that repos as a template to start your kong's plugin development.
docker-compose up -d postgress && docker-compose logs -f postgress
# wait until it's ready and press Ctrl+C
docker-compose up migrator
docker-compose up -d kong
# add mockbin API
curl -i -X POST \
--url http://localhost:8001/apis/ \
--data 'name=mockbin' \
--data 'upstream_url=http://mockbin.org/request' \
--data 'uris=/'
# add mobdebug plugin
curl -i -X POST \
--url http://localhost:8001/apis/mockbin/plugins/ \
--data 'name=mobdebug'
# add your plugin
# try the mockbin API
curl -i http://localhost:8000
Assuming you mount $KONG_LUA_PATH/$KONG_LUA_VERSION container path into ./volumes/kong/usr/local/share/lua/5.1,
Click "Project" > "Project Directory" > "choose" and poin the project directory to ./volumes/kong/usr/local/share/lua/5.1.
Click "Project" > "Start Debugger Server"
Invoke the mockbin API
Content type
Image
Digest
Size
449.7 MB
Last updated
over 5 years ago
docker pull rucciva/kong-dev-onbuild:2.3.1