-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 764 Bytes
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:9.4.5
MAINTAINER Andreas Wålm <andreas@walm.net>
RUN apt-get update \
&& apt-get install -y build-essential git-core libv8-dev curl postgresql-server-dev-$PG_MAJOR \
&& rm -rf /var/lib/apt/lists/*
# install plv8
ENV PLV8_BRANCH r1.4
RUN cd /tmp && git clone -b $PLV8_BRANCH https://github.com/plv8/plv8.git \
&& cd /tmp/plv8 \
&& make all install
# install pg_prove
RUN curl -LO http://xrl.us/cpanm \
&& chmod +x cpanm \
&& ./cpanm TAP::Parser::SourceHandler::pgTAP
# install pgtap
ENV PGTAP_VERSION v0.95.0
RUN git clone git://github.com/theory/pgtap.git \
&& cd pgtap && git checkout tags/$PGTAP_VERSION \
&& make
ADD ./test.sh /test.sh
RUN chmod +x /test.sh
WORKDIR /
CMD ["/test.sh"]
ENTRYPOINT ["/test.sh"]