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

Broken LUA support in alpine image #534

Open
rltas opened this issue Dec 16, 2024 · 1 comment
Open

Broken LUA support in alpine image #534

rltas opened this issue Dec 16, 2024 · 1 comment

Comments

@rltas
Copy link

rltas commented Dec 16, 2024

FROM webdevops/php-nginx:8.3-alpine

RUN <<-EOT
	apk add --no-cache nginx-mod-http-lua
	sed -i '5i \
		load_module /usr/lib/nginx/modules/ndk_http_module.so; \
		load_module /usr/lib/nginx/modules/ngx_http_lua_module.so; \
		pcre_jit on;' \
		/opt/docker/etc/nginx/nginx.conf
EOT

This worked until recently, now it produces this error:

INFO spawned: 'nginxd' with pid 78
-> Executing /opt/docker/bin/service.d/nginx.d//10-init.sh
INFO success: nginxd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: /usr/share/lua/common/resty/core/base.lua:24: ngx_http_lua_module 0.10.26 required) in /etc/nginx/nginx.conf:37
WARN exited: nginxd (exit status 1; not expected)
@rltas
Copy link
Author

rltas commented Dec 16, 2024

Workaround:

ADD http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/nginx-mod-http-lua-1.26.2-r0.apk /tmp/
RUN apk add --no-cache --allow-untrusted /tmp/nginx-mod-http-lua-1.26.2-r0.apk

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

1 participant