Skip to content

Commit

Permalink
Installing DuckDB and SQLite CLI into container image for troubleshoo…
Browse files Browse the repository at this point in the history
…ting, etc.
  • Loading branch information
prmoore77 committed Jan 29, 2024
1 parent a0f950a commit 123d560
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN apt-get update && \
git \
ninja-build \
libboost-all-dev \
sqlite3 \
vim && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -87,6 +88,17 @@ RUN mkdir build && \

COPY --chown=app_user:app_user ./tls ./tls

# Install DuckDB CLI for troubleshooting, etc.
ARG DUCKDB_VERSION="0.9.2"

RUN case ${TARGETPLATFORM} in \
"linux/amd64") DUCKDB_FILE=https://github.com/duckdb/duckdb/releases/download/v${DUCKDB_VERSION}/duckdb_cli-linux-amd64.zip ;; \
"linux/arm64") DUCKDB_FILE=https://github.com/duckdb/duckdb/releases/download/v${DUCKDB_VERSION}/duckdb_cli-linux-aarch64.zip ;; \
esac && \
curl --output /tmp/duckdb.zip --location ${DUCKDB_FILE} && \
unzip /tmp/duckdb.zip -d /usr/local/bin && \
rm /tmp/duckdb.zip

EXPOSE 31337

# Run a test to ensure that the server works...
Expand Down

0 comments on commit 123d560

Please sign in to comment.