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

Support in kubernetes inginx ingress #4

Open
jstomphorst opened this issue Dec 21, 2021 · 2 comments
Open

Support in kubernetes inginx ingress #4

jstomphorst opened this issue Dec 21, 2021 · 2 comments

Comments

@jstomphorst
Copy link

jstomphorst commented Dec 21, 2021

Hi

I am trying to build the nginx module for the newest version of nginx 1.21.3 on debian 10.
I want to have it working on the https://github.com/kubernetes/ingress-nginx
But I am getting an error :
2021/12/21 13:07:17 [emerg] 32#32: module "/etc/nginx/modules/ngx_http_redirectionio_module.so" is not binary compatible in /etc/nginx/nginx.conf:4

I am building on a docker
docker run -ti --rm -v ~/git-repos/redirector:/data debian:10 bash

With the following script.

cd /
apt update
apt install git autoconf -y 

apt install    -y

apt install gcc build-essential curl wget pkg-config libpcre3 libpcre3-dev zlib1g-dev -y 
curl https://sh.rustup.rs -sSf | sh
. "$HOME/.cargo/env"


git clone https://github.com/redirectionio/libredirectionio.git
cd libredirectionio
autoreconf -i
./configure
make
make install


cd ..
git clone https://github.com/redirectionio/libnginx-mod-redirectionio.git
cd libnginx-mod-redirectionio
autoreconf -i
./configure --with-nginx-version=1.21.3
make
make install

I hope you can help. If the setup works. I will send you my working complete setup.

Wkr Jan

@joelwurtz
Copy link
Member

Hey, where does the nginx binary comes from ? (compiled ? from a specific repository ?)

Nginx source may need some patches to have a binary compatible module, you can try to configure with --enable-debian-header to compile nginx with the debian header patch.

@jstomphorst
Copy link
Author

I am using the docker.io/nginx/nginx-ingress:2.0.3 docker.
But great pointer!

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

No branches or pull requests

2 participants