Skip to content

Docker environment used to build official images and plugins

License

Notifications You must be signed in to change notification settings

rStheBot/tyk-build-env

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tyk-build-env

Docker environment used to build official images and plugins.

The usecase is that you have a plugin (probably Go) that you require to be built.

Building the plugin

Navigate to where your plugin is and build using a docker volume to mount your code into the image. Since the vendor directory needs to be identical between the gateway build and the plugin build, this means that you should pull the version of this image corresponding to the gateway version you are using.

This also implies that if your plugin has vendored modules that are also used by Tyk gateway then your module will be overridden by the version that Tyk uses.

cd ${GOPATH}/src/tyk-plugin
docker run -v `pwd`:/go/src/plugin-build plugin-build pre

You will find a pre.so in the current directory which is the file that goes into the API definition

Building the image

This will build the image that will be used in the plugin build step. This section is for only for informational purposes.

In the root of the repo:

docker build --build-arg TYK_GW_TAG=v2.8.4 -t tyk-plugin-build-2.8.4 .

TYK_GW_TAG refers to the tag in github corresponding to a released version.

About

Docker environment used to build official images and plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 64.6%
  • Shell 35.4%