diff --git a/openresty/1.25.3.1/22.03-lts-sp3/Dockerfile b/openresty/1.25.3.1/22.03-lts-sp3/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..094497e791acbb50964ff2699e54767ce9765a60 --- /dev/null +++ b/openresty/1.25.3.1/22.03-lts-sp3/Dockerfile @@ -0,0 +1,50 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} +ARG VERSION="1.25.3.1" +RUN yum install -y gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel --nogpgcheck curl wget perl make tar \ + && cd /tmp \ + && curl -o openresty-${VERSION}.tar.gz https://openresty.org/download/openresty-${VERSION}.tar.gz \ + && tar zxvf openresty-${VERSION}.tar.gz \ + && cd openresty-${VERSION} \ + && ./configure \ + --prefix=/usr/local/openresty \ + --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include' \ + --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl111/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib' \ + --with-pcre-jit \ + --with-stream \ + --with-stream_ssl_module \ + --with-stream_ssl_preread_module \ + --with-http_v2_module \ + --without-mail_pop3_module \ + --without-mail_imap_module \ + --without-mail_smtp_module \ + --with-http_stub_status_module \ + --with-http_realip_module \ + --with-http_addition_module \ + --with-http_auth_request_module \ + --with-http_secure_link_module \ + --with-http_random_index_module \ + --with-http_gzip_static_module \ + --with-http_sub_module \ + --with-http_dav_module \ + --with-http_flv_module \ + --with-http_mp4_module \ + --with-http_gunzip_module \ + --with-threads --with-stream \ + --with-http_ssl_module \ + && make build \ + && make install \ + && cd /tmp \ + && rm -rf openresty-${VERSION}.tar.gz \ + && rm -rf openresty-${VERSION}/ \ + && yum clean all + +ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin +ENV LUA_PATH="/usr/local/openresty/site/lualib/?.ljbc;/usr/local/openresty/site/lualib/?/init.ljbc;/usr/local/openresty/lualib/?.ljbc;/usr/local/openresty/lualib/?/init.ljbc;/usr/local/openresty/site/lualib/?.lua;/usr/local/openresty/site/lualib/?/init.lua;/usr/local/openresty/lualib/?.lua;/usr/local/openresty/lualib/?/init.lua;./?.lua;/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/openresty/luajit/share/lua/5.1/?.lua;/usr/local/openresty/luajit/share/lua/5.1/?/init.lua" +ENV LUA_CPATH="/usr/local/openresty/site/lualib/?.so;/usr/local/openresty/lualib/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/openresty/luajit/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so;/usr/local/openresty/luajit/lib/lua/5.1/?.so" + +ENV PATH /usr/local/nginx:$PATH +WORKDIR /usr/local/nginx/html + +EXPOSE 80 +ENTRYPOINT ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/openresty/README.md b/openresty/README.md index 4b6db62d9635c2a7c848a1e1987f7d77d8ea9ee8..8f9d5b764e55a3bc894702b3d058cd7363de4b89 100644 --- a/openresty/README.md +++ b/openresty/README.md @@ -23,9 +23,21 @@ The tag of each `openresty` docker image is consist of the version of `openresty | Tag | Currently | Architectures | |----------|-------------|------------------| |[1.21.4.1-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/openresty/1.21.4.1/22.03-lts-sp3/Dockerfile)| openresty 1.21.4.1 on openEuler 22.03-LTS-SP3 | amd64, arm64 | +|[1.25.3.1-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/openresty/1.25.3.1/22.03-lts-sp3/Dockerfile)| openresty 1.25.3.1 on openEuler 22.03-LTS-SP3 | amd64, arm64 | + + + +# Dependent version + +| Tag | OpenResty | Nginx-core | LuaJit | +| ------------------------------------------------------------ | --------- | ---------- | ------------ | +| [1.21.4.1-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/openresty/1.21.4.1/22.03-lts-sp3/Dockerfile) | 1.21.4.1 | 1.21.4 | 2.1-20220411 | +| [1.25.3.1-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/openresty/1.25.3.1/22.03-lts-sp3/Dockerfile) | 1.25.3.1 | 1.25.3 | 2.1-20231117 | + # Usage + In this usage, users can select the corresponding `{Tag}` and `container startup options` based on their requirements. - Pull the `openeuler/openresty` image from docker diff --git a/openresty/doc/image-info.yml b/openresty/doc/image-info.yml index 7d8bc4cb7c639691bfbbda20cd60897f46898ca2..da7650b4b1a981111ee13f21bd68ed87d63df940 100644 --- a/openresty/doc/image-info.yml +++ b/openresty/doc/image-info.yml @@ -12,6 +12,7 @@ tags: | | Tag | Currently | Architectures | |----------|-------------|------------------| |[1.21.4.1-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/openresty/1.21.4.1/22.03-lts-sp3/Dockerfile)| openresty 1.21.4.1 on openEuler 22.03-LTS-SP3 | amd64, arm64 | + |[1.25.3.1-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/openresty/1.25.3.1/22.03-lts-sp3/Dockerfile)| openresty 1.25.3.1 on openEuler 22.03-LTS-SP3 | amd64, arm64 | download: | 拉取镜像到本地 diff --git a/openresty/meta.yml b/openresty/meta.yml index e376a9d6c1fe2ad2e34463626fa267b641183648..f3a27e034027cfb23cd32108e82e2355af95109a 100644 --- a/openresty/meta.yml +++ b/openresty/meta.yml @@ -1,2 +1,4 @@ 1.21.4.1-oe2203sp3: - path: openresty/1.21.4.1/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: openresty/1.21.4.1/22.03-lts-sp3/Dockerfile +1.25.3.1-oe2203sp3: + path: openresty/1.25.3.1/22.03-lts-sp3/Dockerfile \ No newline at end of file