-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (41 loc) · 1.75 KB
/
Dockerfile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM postgres:11.0
# ---------------------------------------------------------------------------
# Environment
# ---------------------------------------------------------------------------
ENV DEBIAN_FRONTEND noninteractive
# ---------------------------------------------------------------------------
# PipelineDB
# ---------------------------------------------------------------------------
RUN apt-get -y update \
&& apt-get install -y curl \
&& curl -s http://download.pipelinedb.com/apt.sh | bash \
&& apt-get -y install pipelinedb-postgresql-11 \
&& apt-get -y install postgresql-server-dev-11 \
&& apt-get -y install git \
&& apt-get -y install cmake \
&& apt-get -y install build-essential \
&& apt-get purge -y --auto-remove curl
# ---------------------------------------------------------------------------
# Build and install the NATS C-Client
# ---------------------------------------------------------------------------
WORKDIR /tmp
RUN git clone https://github.com/nats-io/nats.c.git
RUN cd nats.c && mkdir -p build
WORKDIR nats.c/build
RUN cmake .. -DNATS_BUILD_WITH_TLS=OFF
RUN make
# ---------------------------------------------------------------------------
# Build and install the NATS extension
# ---------------------------------------------------------------------------
WORKDIR /tmp
COPY ext ext
RUN cd ext && make install
# ---------------------------------------------------------------------------
# Configuration
# ---------------------------------------------------------------------------
COPY create-extensions.sql /docker-entrypoint-initdb.d/
COPY configure.sh /docker-entrypoint-initdb.d/
# remove the apt cache:
RUN apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/