首页 > 系统相关 >nginx-clojure nginx 1.25.2 版本docker 镜像

nginx-clojure nginx 1.25.2 版本docker 镜像

时间:2023-09-26 10:46:37浏览次数:45  
标签:http temp -- module nginx path docker clojure

主要是测试下nginx-clojure 有nginx 1.25.2 的兼容性,顺便基于原有的构建弄一个方便测试的debug 版本的镜像

构建

  • 构建命令

实际结合业务修改下

./configure --prefix= --sbin-path=nginx --conf-path=conf/nginx.conf --error-log-path=logs/error.log --http-log-path=logs/access.log --pid-path=logs/nginx.pid --lock-path=logs/nginx.lock --http-client-body-temp-path=temp/client_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --http-scgi-temp-path=temp/scgi_temp --with-http_ssl_module --with-http_v2_module --with-pcre-jit --with-debug --with-http_image_filter_module=dynamic --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-zlib=../zlib-1.2.13 --with-pcre=../pcre-8.40 --with-openssl=../openssl-3.1.0 --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module   --with-ipv6 --with-debug --with-cc-opt='-O0 -g' --add-module=../nginx-clojure-master/src/c    
  • dockerfie
FROM openjdk:10-slim
LABEL nginx="1.25.2"
WORKDIR /usr/local/nginx
COPY nginx-clojure-0.6.0/ /usr/local/nginx
COPY nginx-clojure-master/nginx /usr/local/nginx/nginx
RUN chmod +x /usr/local/nginx/nginx 
CMD ["/usr/local/nginx/nginx", "-g", "daemon off;"]

说明

docker 镜像已经push dockerhub了 dalongrong/nginx-clojure-master

参考资料

https://github.com/rongfengliang/nginx-clojure-dockerfile

标签:http,temp,--,module,nginx,path,docker,clojure
From: https://www.cnblogs.com/rongfengliang/p/17729595.html

相关文章

  • centos配置nginx防盗链
    一、全站的防盗链方法在sudovi/etc/nginx/conf.d/default.conf(nginx安装方式不一样,配置文件位置也不一样) 文件要添加防盗链的server段里添加下面的代码:location~.*\.(gif|jpg|jpeg|png|bmp|swf)${valid_referersnoneblocked192.168.10.111;#改成自己的if($......
  • nginx服务器,从access_log里面提取需要的数据
    #!/bin/bash#author:xxxstart_time=`date+'%d/%b/%Y:%H:00:00'-d'-1hours'`end_time=`date+'%d/%b/%Y:%H:59:59'-d'-1hours'`#echo$start_time#echo$end_time#每小时运行一次#cat/data/log/nginx/xxx.com|grep'......
  • 四种OS下安装Docker的方法
    支持的平台Docker目前已经支持非常多的Linux平台,Ubuntu、RedHat企业版Linux、Debian、CentOs、Fedora、OracleLinux等。如果使用虚拟环境,甚至可以在OSX和windows中运行。安装的条件Docker目前只能在64位CPU架构的计算机上运行(目前只能是x86_64、amd64)。Linux3.8或更......
  • docker安装
    一、安装DockerCE先决条件1.1、系统要求DockerCE支持64位版本CentOS7,并且要求内核版本不低于3.10。CentOS7满足最低内核的要求,但由于内核版本比较低,部分功能(如overlay2存储层驱动)无法使用,并且部分功能可能不太稳定。1.2、查看系统内核版本[root@server04~]#cat/proc......
  • 查看docker容器使用的cpu和内存
    转载请注明出处:使用dockerps命令列出正在运行的Docker容器,并获取目标容器的ID或名称。使用dockerstats<容器ID或名称>命令来实时监测指定容器的资源使用情况。该命令将显示容器的CPU利用率、内存使用量、网络流量等信息。例如,要查看名为my_container的容器的资源使用情......
  • CentOS7安装Docker时yum过程报错
    !!!离谱yuminstall-yyum-utils\device-mapper-persistent-data\lvm2--skip-broken报错:Loadedplugins:fastestmirrorLoadingmirrorspeedsfromcachedhostfileCouldnotretrievemirrorlisthttp://mirrorlist.centos.org/?release=......
  • docker基础命令快速入门
    docker快速入门Docker是一个虚拟环境容器,可以将你的开发环境、代码、配置文件等一并打包到这个容器中,并发布和应用到任意平台中。Docker的三个概念镜像Docker镜像是一个特殊的文件系统,除了提供容器运行时所需的程序、库、资源、配置等文件外,还包含了一些为运行时准备的配置参数。......
  • nginx: The plain HTTP request was sent to HTTPS port
    问题描述TheplainHTTPrequestwassenttoHTTPSport当访问用http时则报错。用https时不报错。检查配置:server{listen80ssl;server_namehngj.zxynyxxx.cn;ssl_certificate/usr/local/nginx/cert/hngj.zxynyxxx.cn.pem;ssl_certificate_key/usr......
  • Nginx惊群现象的两种解决办法
    惊群现象:惊群现象是指由多个worker进程监听同一个Socket事件时,当事件发生时,相关的所有进程被惊醒,但最终只能有一个进程对该事件进行处理,其他进程会重新休眠,从而导致系统资源的浪费和系统性能的下降。惊群包含accept惊群和epoll惊群。惊群的本质:睡眠和唤醒问题,属于典型的观察者模......
  • centos7安装docker教程
    (目录)前言Docker分为CE和EE两大版本。CE即社区版(免费,支持周期7个月),EE即企业版,强调安全,付费使用,支持周期24个月。DockerCE分为stabletest和nightly三个更新频道。官方网站上有各种环境下的安装指南,这里主要介绍DockerCE在CentOS上的安装。1.CentOS安装......