You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explicitly set jemalloc's page size to the values Debian uses for their builds
Also, this adds the explicit `--build` flag to `./configure` for the bundled jemalloc, since we technically do cross-builds for 32bit architectures and this helps `./configure` understand that (and do userspace detection instead of kernel detection) better.
Copy file name to clipboardExpand all lines: 5.0/32bit/Dockerfile
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ RUN set -eux; \
38
38
ca-certificates \
39
39
wget \
40
40
\
41
+
dpkg-dev \
41
42
gcc \
42
43
libc6-dev-i386 gcc-multilib \
43
44
make \
@@ -60,6 +61,21 @@ RUN set -eux; \
60
61
# see also https://github.com/docker-library/redis/issues/4#issuecomment-50780840
61
62
# (more exactly, this makes sure the default behavior of "save on SIGTERM" stays functional by default)
62
63
\
64
+
# https://github.com/jemalloc/jemalloc/issues/467 -- we need to patch the "./configure" for the bundled jemalloc to match how Debian compiles, for compatibility
65
+
# (also, we do cross-builds, so we need to embed the appropriate "--build=xxx" values to that "./configure" invocation)
Copy file name to clipboardExpand all lines: 5.0/Dockerfile
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ RUN set -eux; \
38
38
ca-certificates \
39
39
wget \
40
40
\
41
+
dpkg-dev \
41
42
gcc \
42
43
libc6-dev \
43
44
make \
@@ -60,6 +61,21 @@ RUN set -eux; \
60
61
# see also https://github.com/docker-library/redis/issues/4#issuecomment-50780840
61
62
# (more exactly, this makes sure the default behavior of "save on SIGTERM" stays functional by default)
62
63
\
64
+
# https://github.com/jemalloc/jemalloc/issues/467 -- we need to patch the "./configure" for the bundled jemalloc to match how Debian compiles, for compatibility
65
+
# (also, we do cross-builds, so we need to embed the appropriate "--build=xxx" values to that "./configure" invocation)
Copy file name to clipboardExpand all lines: 5.0/alpine/Dockerfile
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ RUN set -eux; \
18
18
\
19
19
apk add --no-cache --virtual .build-deps \
20
20
coreutils \
21
+
dpkg-dev dpkg \
21
22
gcc \
22
23
linux-headers \
23
24
make \
@@ -46,6 +47,21 @@ RUN set -eux; \
46
47
# see also https://github.com/docker-library/redis/issues/4#issuecomment-50780840
47
48
# (more exactly, this makes sure the default behavior of "save on SIGTERM" stays functional by default)
48
49
\
50
+
# https://github.com/jemalloc/jemalloc/issues/467 -- we need to patch the "./configure" for the bundled jemalloc to match how Debian compiles, for compatibility
51
+
# (also, we do cross-builds, so we need to embed the appropriate "--build=xxx" values to that "./configure" invocation)
Copy file name to clipboardExpand all lines: 6.0/Dockerfile
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ RUN set -eux; \
38
38
ca-certificates \
39
39
wget \
40
40
\
41
+
dpkg-dev \
41
42
gcc \
42
43
libc6-dev \
43
44
libssl-dev \
@@ -61,6 +62,21 @@ RUN set -eux; \
61
62
# see also https://github.com/docker-library/redis/issues/4#issuecomment-50780840
62
63
# (more exactly, this makes sure the default behavior of "save on SIGTERM" stays functional by default)
63
64
\
65
+
# https://github.com/jemalloc/jemalloc/issues/467 -- we need to patch the "./configure" for the bundled jemalloc to match how Debian compiles, for compatibility
66
+
# (also, we do cross-builds, so we need to embed the appropriate "--build=xxx" values to that "./configure" invocation)
Copy file name to clipboardExpand all lines: 6.0/alpine/Dockerfile
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ RUN set -eux; \
18
18
\
19
19
apk add --no-cache --virtual .build-deps \
20
20
coreutils \
21
+
dpkg-dev dpkg \
21
22
gcc \
22
23
linux-headers \
23
24
make \
@@ -46,6 +47,21 @@ RUN set -eux; \
46
47
# see also https://github.com/docker-library/redis/issues/4#issuecomment-50780840
47
48
# (more exactly, this makes sure the default behavior of "save on SIGTERM" stays functional by default)
48
49
\
50
+
# https://github.com/jemalloc/jemalloc/issues/467 -- we need to patch the "./configure" for the bundled jemalloc to match how Debian compiles, for compatibility
51
+
# (also, we do cross-builds, so we need to embed the appropriate "--build=xxx" values to that "./configure" invocation)
Copy file name to clipboardExpand all lines: Dockerfile-alpine.template
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ RUN set -eux; \
18
18
\
19
19
apk add --no-cache --virtual .build-deps \
20
20
coreutils \
21
+
dpkg-dev dpkg \
21
22
gcc \
22
23
linux-headers \
23
24
make \
@@ -48,6 +49,21 @@ RUN set -eux; \
48
49
# see also https://github.com/docker-library/redis/issues/4#issuecomment-50780840
49
50
# (more exactly, this makes sure the default behavior of "save on SIGTERM" stays functional by default)
50
51
\
52
+
# https://github.com/jemalloc/jemalloc/issues/467 -- we need to patch the "./configure" for the bundled jemalloc to match how Debian compiles, for compatibility
53
+
# (also, we do cross-builds, so we need to embed the appropriate "--build=xxx" values to that "./configure" invocation)
Copy file name to clipboardExpand all lines: Dockerfile.template
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ RUN set -eux; \
38
38
ca-certificates \
39
39
wget \
40
40
\
41
+
dpkg-dev \
41
42
gcc \
42
43
libc6-dev \
43
44
libssl-dev \
@@ -63,6 +64,21 @@ RUN set -eux; \
63
64
# see also https://github.com/docker-library/redis/issues/4#issuecomment-50780840
64
65
# (more exactly, this makes sure the default behavior of "save on SIGTERM" stays functional by default)
65
66
\
67
+
# https://github.com/jemalloc/jemalloc/issues/467 -- we need to patch the "./configure" for the bundled jemalloc to match how Debian compiles, for compatibility
68
+
# (also, we do cross-builds, so we need to embed the appropriate "--build=xxx" values to that "./configure" invocation)
0 commit comments