diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 9832ad9b..da5de514 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -36,9 +36,15 @@ jobs: - name: Run nginx -V run: docker run -t ${{ github.repository }} nginx -V + # Don’t run, just test the configuration file. + # NGINX checks configuration for correct syntax and then try to open files referred in configuration. + # https://www.nginx.com/resources/wiki/start/topics/tutorials/commandline/ + - name: Run nginx -t + run: docker run -t ${{ github.repository }} nginx -t + - name: Serve a static asset run: | - docker run --detach --rm \ + docker run --rm \ -p 0.0.0.0:8888:80 \ -v "$PWD/tests":/static:ro \ -v "$PWD/tests/static.conf":/etc/nginx/conf.d/static.conf:ro \ diff --git a/Dockerfile b/Dockerfile index 4641f304..cf71b3f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ ARG NGX_BROTLI_COMMIT=9aec15e2aa6feea2113119ba06460af70ab3ea62 # https://hub.docker.com/r/firesh/nginx-lua/dockerfile ARG NGX_DEVEL_KIT_VERSION=0.3.1 -# https://github.com/openresty/luajit2/releases -ARG LUA_NGINX_MODULE_VERSION=0.10.14 +# https://github.com/openresty/lua-nginx-module/releases/ +ARG LUA_NGINX_MODULE_VERSION=0.10.15 ARG CONFIG="\ --prefix=/etc/nginx \