File: Dockerfile.in

package info (click to toggle)
postgresql-rum 1.3.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,928 kB
  • sloc: ansic: 29,212; sql: 3,876; perl: 250; makefile: 75; sh: 65
file content (33 lines) | stat: -rw-r--r-- 823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM postgres:${PG_VERSION}-alpine

# Install dependencies
RUN apk add --no-cache \
	linux-headers \
	openssl curl \
	perl perl-ipc-run perl-dev perl-app-cpanminus perl-dbi \
	make musl-dev gcc bison flex coreutils \
	zlib-dev libedit-dev \
	pkgconf icu-dev clang clang15 clang19 clang-analyzer;

# Environment
ENV LANG=C.UTF-8 PGDATA=/pg/data

# Make directories
RUN	mkdir -p ${PGDATA} && \
	mkdir -p /pg/testdir

COPY run_tests.sh /run.sh
RUN chmod 755 /run.sh

COPY . /pg/testdir
WORKDIR /pg/testdir

# Grant privileges
RUN	chown postgres:postgres ${PGDATA} && \
	chown -R postgres:postgres /pg/testdir && \
	chown postgres:postgres /usr/local/include/postgresql/server/ && \
	chmod a+rwx /usr/local/lib/postgresql && \
	chmod a+rwx /usr/local/share/postgresql/extension

USER postgres
ENTRYPOINT LEVEL=${LEVEL} /run.sh