You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The main TimescaleDB docker image runs alpine and I'd like to add toolkit to it.
The only other option is the timescaledb-ha image which is huge (>800mb) compared to the timescaledb image which is <200mb.
This matters quite a bit for the download and uncompress times of my github build and test pipelines
Describe the solution you'd like
I'd like to be able to use apk add to install the extension like with apt install on debian
Describe alternatives you've considered
I've tried adding the dependencies and building from source but that takes a very long time to execute and is worse than just using timescaledb-ha time wise
Additional context
A poorly tested but seemingly working dockerfile for building and adding toolkit to the main timescale db alpine image for reference if someone else searches for this:
FROM base as toolkit
RUN apk add --no-cache pkgconfig openssl-dev gcc postgresql14-dev curl jq make musl-dev
RUN chown postgres /usr/local/share/postgresql/extension /usr/local/lib/postgresql
USER postgres
ENV PATH="/var/lib/postgresql/.cargo/bin:${PATH}" RUSTFLAGS='-C target-feature=-crt-static'
WORKDIR /var/lib/postgresql
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --profile=minimal -c rustfmt && \
cargo install --version '=0.7.1' --force cargo-pgx && \
cargo pgx init --pg14 pg_config
RUN mkdir timescaledb-toolkit && \
curl -s -L `curl -s https://api.github.com/repos/timescale/timescaledb-toolkit/releases/latest | jq -r ".tarball_url"` | tar -zx -C timescaledb-toolkit --strip-components 1
RUN cd timescaledb-toolkit/extension && \
cargo pgx install --release && \
cargo run --manifest-path ../tools/post-install/Cargo.toml -- pg_config
FROM base AS final
COPY --from=toolkit /usr/local/share/postgresql/extension/timescaledb_toolkit* /usr/local/share/postgresql/extension/
COPY --from=toolkit /usr/local/lib/postgresql/timescaledb_toolkit* /usr/local/lib/postgresql/```
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The main TimescaleDB docker image runs alpine and I'd like to add toolkit to it.
The only other option is the
timescaledb-ha
image which is huge (>800mb) compared to thetimescaledb
image which is <200mb.This matters quite a bit for the download and uncompress times of my github build and test pipelines
Describe the solution you'd like
I'd like to be able to use
apk add
to install the extension like withapt install
on debianDescribe alternatives you've considered
I've tried adding the dependencies and building from source but that takes a very long time to execute and is worse than just using
timescaledb-ha
time wiseAdditional context
A poorly tested but seemingly working dockerfile for building and adding toolkit to the main timescale db alpine image for reference if someone else searches for this:
The text was updated successfully, but these errors were encountered: