Skip to content

Commit 2dd6166

Browse files
committed
Change cassert container
1 parent b0d084f commit 2dd6166

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

make_images.py

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,36 @@
1212
DOCKER_ID = 'pathman'
1313
ALPINE_BASE_URL = 'https://raw.githubusercontent.com/docker-library/postgres/master/10/alpine/'
1414
ALPINE_ENTRYPOINT = 'docker-entrypoint.sh'
15+
16+
'''
17+
How to create this patch:
18+
1) put `import ipdb; ipdb.set_trace()` in make_alpine_image, after `open(patch_name)..`
19+
2) run the script
20+
3) in temporary folder run `cp Dockerfile Dockerfile.1 && vim Dockerfile.1 && diff -Naur Dockerfile Dockerfile.1 > ./cassert.patch`
21+
4) contents of cassert.patch put to variable below
22+
5) change Dockerfile.1 to Dockerfile in text, change `\` symbols to `\\`
23+
'''
1524
ALPINE_PATCH = b'''
16-
--- Dockerfile 2017-07-25 12:43:20.424984422 +0300
17-
+++ Dockerfile 2017-07-25 12:46:10.279267520 +0300
18-
@@ -86,6 +86,7 @@
19-
--enable-integer-datetimes \\
25+
--- Dockerfile 2017-07-27 14:54:10.403971867 +0300
26+
+++ Dockerfile 2017-07-27 14:56:01.132503106 +0300
27+
@@ -79,7 +79,7 @@
28+
&& wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb' \\
29+
# configure options taken from:
30+
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
31+
- && ./configure \\
32+
+ && CFLAGS="-O0" ./configure \\
33+
--build="$gnuArch" \\
34+
# "/usr/src/postgresql/src/backend/access/common/tupconvert.c:105: undefined reference to `libintl_gettext'"
35+
# --enable-nls \\
36+
@@ -87,7 +87,7 @@
2037
--enable-thread-safety \\
2138
--enable-tap-tests \\
22-
+ --enable-cassert \\
2339
# skip debugging info -- we want tiny size instead
24-
# --enable-debug \\
40+
-# --enable-debug \\
41+
+ --enable-debug \\
2542
--disable-rpath \\
26-
43+
--with-uuid=e2fs \\
44+
--with-gnu-ld \\
2745
'''
2846
CUSTOM_IMAGE_NAME = "%s/postgres_stable" % DOCKER_ID
2947

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy