Skip to content

Commit

Permalink
Support for more extension versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans committed May 24, 2020
1 parent c2e11b7 commit 18edb31
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions timescaledb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ RUN apk update && apk add --no-cache git \
####################################
FROM $BUILD_FROM

# Fix versions
ENV TIMESCALEDB_VERSION 1.7.1
# Enable this if you only want the OSS parts
#ENV OSS_ONLY -DAPACHE_ONLY=1

# Add normal postgresql alpine package
RUN apk add --no-cache \
Expand All @@ -55,8 +51,45 @@ RUN mkdir -p /run/postgresql \
COPY --from=tools /go/bin/* /usr/local/bin/

# --------------------------------------
# Build TimescaleDB
# Build TimescaleDB 1.7.0
# --------------------------------------
# Fix versions
ENV TIMESCALEDB_VERSION 1.7.0
# Enable this if you only want the OSS parts
#ENV OSS_ONLY -DAPACHE_ONLY=1
RUN set -ex \
&& apk add --no-cache --virtual .fetch-deps \
ca-certificates \
git \
openssl \
openssl-dev \
tar \
&& mkdir -p /build/ \
&& git clone https://github.com/timescale/timescaledb /build/timescaledb\
&& apk add --no-cache --virtual .build-deps \
coreutils \
dpkg-dev dpkg \
gcc \
libc-dev \
make \
cmake \
util-linux-dev\
&& cd /build/timescaledb && rm -fr build \
&& git checkout ${TIMESCALEDB_VERSION} \
&& ./bootstrap -DREGRESS_CHECKS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} \
&& cd build && make install \
&& cd ~ \
&& if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi \
&& apk del .fetch-deps .build-deps \
&& rm -rf /build

# --------------------------------------
# Build TimescaleDB 1.7.1
# --------------------------------------
# Fix versions
ENV TIMESCALEDB_VERSION 1.7.1
# Enable this if you only want the OSS parts
#ENV OSS_ONLY -DAPACHE_ONLY=1
RUN set -ex \
&& apk add --no-cache --virtual .fetch-deps \
ca-certificates \
Expand All @@ -83,6 +116,7 @@ RUN set -ex \
&& apk del .fetch-deps .build-deps \
&& rm -rf /build


# --------------------------------------
# Build pgAgent
# --------------------------------------
Expand Down

0 comments on commit 18edb31

Please sign in to comment.