-
Notifications
You must be signed in to change notification settings - Fork 97
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
feat: Support packaging apisix which depends on apisix-openresty #80
Conversation
Signed-off-by: imjoey <[email protected]>
Signed-off-by: imjoey <[email protected]>
Signed-off-by: imjoey <[email protected]>
README.md
Outdated
@@ -13,6 +13,7 @@ | |||
|checkout |True |the code branch or tag of the app which you want to package|checkout=2.1 or checkout=v2.1| | |||
|version |True |the version of the package|version=10.10| | |||
|local_code_path |False | the path of local code diretory of apisix or dashboard, which depends on the app parameter|local_code_path=/home/vagrant/apisix| | |||
|openresty |False |the openresty type that apisix depends on, it's value can be `openresty` or `apisix-openresty`, the default is `openresty`|openresty=apisix-openresty| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|openresty |False |the openresty type that apisix depends on, it's value can be `openresty` or `apisix-openresty`, the default is `openresty`|openresty=apisix-openresty| | |
|openresty |False |the openresty type that apisix depends on, its value can be `openresty` or `apisix-openresty`, the default is `openresty`|openresty=apisix-openresty| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Done. Thanks.
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
BUILD_APISIX_OR_VERSION: 1.17.8.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version of APISIX OpenResty is anchored to 1.19.3.2, so specify a version won't take effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spacewander ok, I see. I will fix this. If user specifies apisix-openresty
, its min version is 1.19.3.2.0
. Thanks for pointing out.
Signed-off-by: imjoey <[email protected]>
Signed-off-by: imjoey <[email protected]>
Signed-off-by: imjoey <[email protected]>
As we all know that apisx-openresty is an enhanced version of openresty, which add more Nginx modules into the raw openresty. Such as multi-upstream, dubbo and lua-var modules, please see https://github.com/api7/apisix-build-tools/blob/master/build-apisix-openresty.sh for details.
Before, the raw openresty is hard-coded as the dependency of the apisix artifacts, so it's impossible to depends on the
apisix-openresty
. This PR is going to improve that by addding a new parameteropenresty
for pakaging. If theopenresty=apisix-openresty
is specified while running themake pakcage
command, you will be happy to see theapisix.rpm
orapisix.deb
only depends on theapisix-openresty
, instead ofopenresty
.Of course, the relative CI for testing is also included in this PR.