From 4942f3a8bddcc5f6fbc2f7edfd9ce67a4321ad95 Mon Sep 17 00:00:00 2001 From: wangbo Date: Mon, 23 Sep 2024 10:16:32 +0800 Subject: [PATCH] =?UTF-8?q?openresty=E5=AE=B9=E5=99=A8=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=96=B0=E5=A2=9E1.25.3.1=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openresty/1.25.3.1/22.03-lts-sp3/Dockerfile | 50 +++++++++++++++++++++ openresty/README.md | 12 +++++ openresty/doc/image-info.yml | 1 + openresty/meta.yml | 4 +- 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 openresty/1.25.3.1/22.03-lts-sp3/Dockerfile 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 00000000..094497e7 --- /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 4b6db62d..8f9d5b76 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 7d8bc4cb..da7650b4 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 e376a9d6..f3a27e03 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 -- Gitee