首页 > 其他分享 >angie docker 镜像试用

angie docker 镜像试用

时间:2023-11-02 16:33:17浏览次数:36  
标签:http -- module so 镜像 docker angie ngx

主要是试用下官方的docker 镜像

环境准备

  • docker-compose
version: "3"
services:
  angie:
    image: docker.angie.software/angie:1.3.1-rocky
    ports:
      - "80:80"
      - "443:443"

启动&效果

  • 启动
docker-compose up -d
  • 效果

 


默认构建信息

 
Angie version: Angie/1.3.1
built with OpenSSL 3.1.3 19 Sep 2023
TLS SNI support enabled
configure arguments: --prefix=/etc/angie --conf-path=/etc/angie/angie.conf --error-log-path=/var/log/angie/error.log --http-log-path=/var/log/angie/access.log --lock-path=/run/angie/angie.lock --modules-path=/usr/lib/angie/modules --pid-path=/run/angie/angie.pid --sbin-path=/usr/sbin/angie --http-client-body-temp-path=/var/cache/angie/client_temp --http-fastcgi-temp-path=/var/cache/angie/fastcgi_temp --http-proxy-temp-path=/var/cache/angie/proxy_temp --http-scgi-temp-path=/var/cache/angie/scgi_temp --http-uwsgi-temp-path=/var/cache/angie/uwsgi_temp --user=angie --group=angie --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-ld-opt='-Wl,--as-needed,-O1,--sort-common -Wl,-z,pack-relative-relocs'

镜像包含的模块(很全了)

ndk_http_module-debug.so                      ngx_http_keyval_module-debug.so
ndk_http_module.so                            ngx_http_keyval_module.so
ngx_http_auth_jwt_module-debug.so             ngx_http_lua_module-debug.so
ngx_http_auth_jwt_module.so                   ngx_http_lua_module.so
ngx_http_auth_spnego_module-debug.so          ngx_http_perl_module-debug.so
ngx_http_auth_spnego_module.so                ngx_http_perl_module.so
ngx_http_brotli_filter_module-debug.so        ngx_http_redis2_module-debug.so
ngx_http_brotli_filter_module.so              ngx_http_redis2_module.so
ngx_http_brotli_static_module-debug.so        ngx_http_set_misc_module-debug.so
ngx_http_brotli_static_module.so              ngx_http_set_misc_module.so
ngx_http_cache_purge_module-debug.so          ngx_http_subs_filter_module-debug.so
ngx_http_cache_purge_module.so                ngx_http_subs_filter_module.so
ngx_http_dav_ext_module-debug.so              ngx_http_upload_module-debug.so
ngx_http_dav_ext_module.so                    ngx_http_upload_module.so
ngx_http_echo_module-debug.so                 ngx_http_vod_module-debug.so
ngx_http_echo_module.so                       ngx_http_vod_module.so
ngx_http_enhanced_memcached_module-debug.so   ngx_http_xslt_filter_module-debug.so
ngx_http_enhanced_memcached_module.so         ngx_http_xslt_filter_module.so
ngx_http_eval_module-debug.so                 ngx_postgres_module-debug.so
ngx_http_eval_module.so                       ngx_postgres_module.so
ngx_http_geoip2_module-debug.so               ngx_rtmp_module-debug.so
ngx_http_geoip2_module.so                     ngx_rtmp_module.so
ngx_http_headers_more_filter_module-debug.so  ngx_stream_geoip2_module-debug.so
ngx_http_headers_more_filter_module.so        ngx_stream_geoip2_module.so
ngx_http_image_filter_module-debug.so         ngx_stream_js_module-debug.so
ngx_http_image_filter_module.so               ngx_stream_js_module.so
ngx_http_js_module-debug.so                   ngx_stream_lua_module-debug.so
ngx_http_js_module.so                         ngx_stream_lua_module.so

参考docker 镜像

因为angie提供了各种操作系统的安装包,自己制作镜像实际上很方便,以下是debian 的,实际上我们也直接基于官方的基础镜像修改

FROM alpine:3.18
 
LABEL maintainer="Release Engineering Team <[email protected]>"
 
RUN set -x \
     && apk add --no-cache ca-certificates curl \
     && curl -o /etc/apk/keys/angie-signing.rsa https://angie.software/keys/angie-signing.rsa \
     && echo "https://download.angie.software/angie/alpine/v$(egrep -o \
          '[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
     && apk add --no-cache angie angie-module-geoip2 angie-module-njs \
     && rm /etc/apk/keys/angie-signing.rsa \
     && ln -sf /dev/stdout /var/log/angie/access.log \
     && ln -sf /dev/stderr /var/log/angie/error.log
 
EXPOSE 80
 
CMD ["angie", "-g", "daemon off;"]

说明

对于一些一些需要多以来模块的nginx 入口服务angie 是一个不错的选择,毕竟都是官方自己构建好的模块,直接可以使用

参考资料

https://angie.software/en/install/#install-docker
https://github.com/webserver-llc/angie

标签:http,--,module,so,镜像,docker,angie,ngx
From: https://www.cnblogs.com/rongfengliang/p/17805718.html

相关文章

  • 阿里云服务器 ubuntu 20.04 执行命令添加apt仓库时报错 安装docker报错
    云服务器ECS初始安装docker报错##############出错时候看下面#####################执行命令添加apt仓库时:sudoadd-apt-repositoryppa:ondrej/php&&sudoapt-getupdate报错:sudo:add-apt-repository:commandnotfound解决办法:先执行:apt-get-yinstallsoftware-pro......
  • Docker 中使用Selenium Grid
    第一步拉取hub镜像:dockerpullselenium/hub拉取chrome浏览器镜像:dockerpullselenium/node-chrome启动hub:dockerrun-p5001:4444-d--namehubselenium/hubdockerrun--name=hub-p5001:4444-eGRID_TIMEOUT=0-eGRID_THROW_ON_CAPABILITY_NOT_PRESENT=true-e......
  • Docker打包前端vue代码推送镜像到远程仓库
    Docker打包前端vue代码推送镜像到远程仓库目录Docker打包前端vue代码推送镜像到远程仓库业务场景:......
  • Docker 可视化容器管理平台--portainer
    Portainer是一个开源的轻量级容器管理工具,用于简化Docker容器的部署、管理和监控。它提供了一个直观易用的WebUI,允许用户通过可视化界面来管理Docker容器、镜像、卷等资源,而无需使用Docker命令行工具。Portainer可以部署在本地Docker环境、远程Docker主机或Docker......
  • seafile docker部署
    #docker-compose.ymlservices:db:image:mariadb:10.11container_name:seafile-mysqlenvironment:-MYSQL_ROOT_PASSWORD=12345678#Requested,settheroot'spasswordofMySQLservice.-MYSQL_LOG_CONSOLE=truesecurity_op......
  • 在使用docker-compose build一个faq服务Helpy 时报错
    Helpy时报错如下:ERROR:failedtosolve:process"/bin/sh-cbundleinstall--withouttestdevelopment"didnotcompletesuccessfully:exitcode:11ERROR:Service'helpy'failedtobuild:Buildfailed有两种解释这种报错1、修改dockerfile ruby:2.5,然后......
  • Docker基础
    Docker基础Docker常见命令Docker最常见的命令就是操作镜像、容器的命令,详见官方文档:https://docs.docker.com/案列:查看DockerHub,拉取Nginx镜像,创建并运行Nginx容器拉取镜像dockerpullnginx查看镜像dockerimages保存镜像为tar包dockersave-onginx.tarnginx:lat......
  • 使用docker 部署testlink
    docker部署testlink1、拉取db镜像:dockerpullbitnami/mariadb 2、拉取testlink镜像:dockerpullbitnami/testlink3、容器网络:docker networkcreatetestlink4、查看网络:dockernetworkls 4.1、删除网络 dockernetworkrm<networkname>5、创建数据库卷......
  • 【行云流水线实践】基于“OneBuild”方法对镜像进行快速装箱
    在云原生领域,无论使用哪种编排调度平台,Kubernetes,DockerSwarm,OpenShift等,业务都需要基于镜像进行交付,我们在内部实践“Source-to-image”和链式构建,总而总结出“OneBuild”模式。其核心思想是:一处构建,多处使用。问题一般,我们会使用类似JenkinsCI系统来构建镜像,以满足持续集成,......
  • 使用IDEA管理服务器Docker及远程仓库
    目录配置连接Docker服务器及远程仓库连接服务器Docker远程仓库(可选)IDEA管理确保docker服务器已经开启了远程守护进程访问。[1]配置连接Docker服务器及远程仓库连接服务器Docker在IDEADocker配置中填入服务器IP及端口下方提示ConnectionSuccessful即可。tcp://192.1......