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. - in Dockerfile.ci
  • Loading branch information
prmoore77 committed Jan 30, 2024
1 parent 123d560 commit 55ba20a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update && \
wget \
gcc \
git \
sqlite3 \
vim \
zip && \
apt-get clean && \
Expand Down Expand Up @@ -77,6 +78,17 @@ RUN chmod +x /usr/local/bin/flight_sql

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 55ba20a

Please sign in to comment.