Skip to content

shouldn't pcre_jit be enabled in the default image alpine and stable ? #147

Closed
@virtuman

Description

@virtuman

Documentation states that pcre_jit might significantly improve regex parsing, taken from here:
http://nginx.org/en/docs/ngx_core_module.html#pcre_jit

Enables or disables the use of “just-in-time compilation” (PCRE JIT) for the regular expressions known by the time of configuration parsing.

PCRE JIT can speed up processing of regular expressions significantly.

I see that there're some tickets that state that there was a vulnerability in the older versions of pcre on alpine, but current alpine:3.5 has a newer pcre available as default recent package, ie:

$ docker run -it --rm alpine /bin/sh
/ # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
v3.5.1-31-g83b3d6857a [http://dl-cdn.alpinelinux.org/alpine/v3.5/main]
v3.5.1-29-ga981b1f149 [http://dl-cdn.alpinelinux.org/alpine/v3.5/community]
OK: 7958 distinct packages available
/ # apk add pcre
(1/1) Installing pcre (8.39-r0)
OK: 4 MiB in 12 packages

Are there any limitations why the current image is built on top of alpine:3.4 and cannot be upgraded to be based off of 3.5?
And shouldn't then the default image be based on current version of alpine and be built with it enabled by default, ie --with-pcre-jit ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions