Skip to content

Commit

Permalink
Updated DuckDB to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
prmoore77 committed Jun 3, 2024
1 parent 65777f2 commit 9978cfe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ RUN cmake -S . -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local && \
COPY --chown=app_user:app_user ./tls ./tls

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

RUN case ${TARGETPLATFORM} in \
"linux/amd64") DUCKDB_FILE=https://github.com/duckdb/duckdb/releases/download/v${DUCKDB_VERSION}/duckdb_cli-linux-amd64.zip ;; \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ RUN chmod +x /usr/local/bin/flight_sql_client
COPY --chown=app_user:app_user tls tls

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

RUN case ${TARGETPLATFORM} in \
"linux/amd64") DUCKDB_FILE=https://github.com/duckdb/duckdb/releases/download/v${DUCKDB_VERSION}/duckdb_cli-linux-amd64.zip ;; \
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ The above command will automatically mount a very small TPC-H DuckDB database fi
**Note**: You can disable TLS in the container by setting environment variable: `TLS_ENABLED` to "0" (default is "1" - enabled). This is not recommended unless you are using an mTLS sidecar in Kubernetes or something similar, as it will be insecure.

### Optional - open a different database file
When running the Docker image - you can have it run your own DuckDB database file (the database must be built with DuckDB version: 0.10.3).
When running the Docker image - you can have it run your own DuckDB database file (the database must be built with DuckDB version: 1.0.0).

Prerequisite: DuckDB CLI
Install DuckDB CLI version [0.10.3](https://github.com/duckdb/duckdb/releases/tag/v0.10.3) - and make sure the executable is on your PATH.
Install DuckDB CLI version [1.0.0](https://github.com/duckdb/duckdb/releases/tag/v1.0.0) - and make sure the executable is on your PATH.

Platform Downloads:
[Linux x86-64](https://github.com/duckdb/duckdb/releases/download/v0.10.3/duckdb_cli-linux-amd64.zip)
[Linux arm64 (aarch64)](https://github.com/duckdb/duckdb/releases/download/v0.10.3/duckdb_cli-linux-aarch64.zip)
[MacOS Universal](https://github.com/duckdb/duckdb/releases/download/v0.10.3/duckdb_cli-osx-universal.zip)
[Linux x86-64](https://github.com/duckdb/duckdb/releases/download/v1.0.0/duckdb_cli-linux-amd64.zip)
[Linux arm64 (aarch64)](https://github.com/duckdb/duckdb/releases/download/v1.0.0/duckdb_cli-linux-aarch64.zip)
[MacOS Universal](https://github.com/duckdb/duckdb/releases/download/v1.0.0/duckdb_cli-osx-universal.zip)

In this example, we'll generate a new TPC-H Scale Factor 1 (1GB) database file, and then run the docker image to mount it:

Expand Down Expand Up @@ -195,7 +195,7 @@ version(): string
Results:
version(): [
"v0.10.3"
"v1.0.0"
]
Total: 1
Expand Down Expand Up @@ -281,7 +281,7 @@ This option allows choosing from two backends: SQLite and DuckDB. It defaults to
$ FLIGHT_PASSWORD="flight_password" flight_sql_server --database-filename data/TPC-H-small.duckdb
Apache Arrow version: 16.1.0
WARNING - TLS is disabled for the Flight SQL server - this is insecure.
DuckDB version: v0.10.3
DuckDB version: v1.0.0
Running Init SQL command:
SET autoinstall_known_extensions = true;
Running Init SQL command:
Expand Down
2 changes: 1 addition & 1 deletion third_party/DuckDB_CMakeLists.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ExternalProject_Add(
duckdb_project
PREFIX ${CMAKE_BINARY_DIR}/third_party
GIT_REPOSITORY https://github.com/duckdb/duckdb
GIT_TAG caef2cd0c7bac1b2195451181844614c984f835a
GIT_TAG v1.0.0
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/third_party/duckdb
)

0 comments on commit 9978cfe

Please sign in to comment.