Skip to content

Commit 9ff4f6a

Browse files
committed
[PGPRO-4074] Add Dockerfile building core for multimaster tests.
tags: multimaster
1 parent 7b06c79 commit 9ff4f6a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM alpine:latest
2+
3+
# Iputils fetches non-busybox ping which allows to run it under non-root, see
4+
# https://github.com/gliderlabs/docker-alpine/issues/253
5+
RUN apk add --update gcc libc-dev bison flex readline-dev zlib-dev perl make diffutils gdb iproute2 musl-dbg iputils linux-headers
6+
7+
# Finally, there is no accidental postgres user in alpine, so create one
8+
RUN addgroup postgres && adduser -h /pg -D -G postgres postgres
9+
10+
ENV LANG en_US.utf8
11+
ENV CFLAGS -O0
12+
ENV PATH /pg/install/bin:$PATH
13+
14+
COPY ./ /pg/src
15+
16+
RUN cd /pg/src && \
17+
CFLAGS=-ggdb3 ./configure --enable-cassert --enable-debug --prefix=/pg/install && \
18+
make -j 8 install
19+
20+
# Crutch to allow regression test to write there
21+
RUN chown -R postgres:postgres /pg/src/src/test/regress

0 commit comments

Comments
 (0)