Skip to content

Commit 1518ee0

Browse files
warpsql: Add support for Citus extension
1. Update Dockerfile 2. Install Citus dependencies (curl, jq) 3. Add build dependencies for Citus (gcc, libc-dev, make, curl-dev, lz4-dev, libxslt-dev, libxml2-dev) 4. Download and install Citus with specified version 5. Remove build dependencies and cleanup temporary files after Citus installation Fixes: #3
1 parent e612601 commit 1518ee0

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,38 @@ RUN apk add --no-cache --virtual .build-deps \
9393
&& ls \
9494
&& make \
9595
&& make install
96+
97+
## Adding Citus
98+
99+
# Install Citus dependencies
100+
RUN apk add --no-cache --virtual .citus-deps \
101+
curl \
102+
jq
103+
104+
# Install Citus
105+
ARG CITUS_VERSION="11.2.0"
106+
RUN set -ex \
107+
&& apk add --no-cache --virtual .citus-build-deps \
108+
gcc \
109+
libc-dev \
110+
make \
111+
curl-dev \
112+
lz4-dev \
113+
zstd-dev \
114+
clang \
115+
krb5-dev \
116+
icu-dev \
117+
libxslt-dev \
118+
libxml2-dev \
119+
llvm15-dev \
120+
&& CITUS_DOWNLOAD_URL="https://github.com/citusdata/citus/archive/refs/tags/v${CITUS_VERSION}.tar.gz" \
121+
&& curl -L -o /tmp/citus.tar.gz "${CITUS_DOWNLOAD_URL}" \
122+
&& tar -C /tmp -xvf /tmp/citus.tar.gz \
123+
&& chown -R postgres:postgres /tmp/citus-${CITUS_VERSION} \
124+
&& cd /tmp/citus-${CITUS_VERSION} \
125+
&& PATH="/usr/local/pgsql/bin:$PATH" ./configure \
126+
&& make \
127+
&& make install \
128+
&& cd ~ \
129+
&& rm -rf /tmp/citus.tar.gz /tmp/citus-${CITUS_VERSION} \
130+
&& apk del .citus-deps .citus-build-deps

0 commit comments

Comments
 (0)