Skip to content
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

Merged
merged 6 commits into from
Aug 26, 2021
Merged

feat: Support packaging apisix which depends on apisix-openresty #80

merged 6 commits into from
Aug 26, 2021

Conversation

imjoey
Copy link
Contributor

@imjoey imjoey commented Aug 26, 2021

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 parameter openresty for pakaging. If the openresty=apisix-openresty is specified while running the make pakcage command, you will be happy to see the apisix.rpm or apisix.deb only depends on the apisix-openresty, instead of openresty.

Of course, the relative CI for testing is also included in this PR.

imjoey added 3 commits August 26, 2021 15:39
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|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
|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|

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

@imjoey imjoey Aug 26, 2021

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.

@imjoey imjoey merged commit eb0ee40 into api7:master Aug 26, 2021
@imjoey imjoey deleted the feat/apisix_openresty branch August 26, 2021 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants