Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/srenatus/duckdb-cli-alpine

experiment: build duckdb CLI for alpine, host on github releases, do not use yet
https://github.com/srenatus/duckdb-cli-alpine

Last synced: 11 days ago
JSON representation

experiment: build duckdb CLI for alpine, host on github releases, do not use yet

Awesome Lists containing this project

README

        

# duckdb CLI builds for alpine

This is a small build-only repo for creating alpine-compatible `duckdb`
binaries.

## Why?

The official binaries don't work on alpine, and I couldn't find any
combination of glibc compat libs that would satisfy their needs.
Building `duckdb` on Alpine works, but it's annoying to have to do
that in every pipeline.

## How to use

> [!WARNING]
> Don't forget `libstdc++`.

```shell
apk add --no-progress libstdc++
curl -LO https://github.com/srenatus/duckdb-cli-alpine/releases/download/v1.0.0/duckdb-linux-amd64
curl -LO https://github.com/srenatus/duckdb-cli-alpine/releases/download/v1.0.0/json.duckdb_extension
chmod +x duckdb-linux-amd64
mv duckdb-linux-amd64 /usr/local/bin/duckdb
duckdb -c "INSTALL './json.duckdb_extension';"
```

## Limitations

- only `json` extension is built, using the official build for other extensions
(such as through autoloading) **will fail**
- only linux/amd64

## License

The small build code in this repo is Apache-2.0 licensed, but that
does not have anything to do with the duckdb sources -- their license
is [MIT](https://github.com/duckdb/duckdb?tab=MIT-1-ov-file#readme).