-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I inherited from your alpine version dockerfile and ran into issues.
FROM ficusio/openresty:latest
COPY nginx/conf /opt/openresty/nginx/conf
EXPOSE 8081
Setting up a new container works as expected, also it uses my custom nginx.conf
nginx.conf
worker_processes 8;
worker_rlimit_nofile 20000;
events {
worker_connections 5120;
}
http {
access_log off;
error_log stderr notice;
keepalive_timeout 65;
resolver 8.8.8.8;
init_by_lua '
require "resty.core"
';
lua_shared_dict locks 1M;
lua_shared_dict cache 10M;
server {
listen 8082;
root /var/www;
#get productviews for user + product
location ~ /productViews.js {
lua_code_cache off;
default_type text/html;
content_by_lua_file conf/example.lua;
}
location ~ / {
return 200;
}
}
}
example.lua
ngx.print('<H1>Hello World.</H1>');
However. Setting lua_code_cache to off won't work on alpine linux. The usual warning
lua_code_cache is off; this will hurt performance
won't come up as expected. Also, if i change the code in example.lua it won't show me the new content but it comes up with an syntax exception in the logs and crashes. Although the syntax i am using is fine.
If i switched to the debian version and it all works as expected. Something seems to be broken with alpine linux version.
Metadata
Metadata
Assignees
Labels
No labels