k3s-io/kine

rancher/kine:v0.6.0 - sqlite disabled

f0o opened this issue · 3 comments

f0o commented

rancher/kine:v0.6.0@8ad8a9a04bd6d01d64dc2cbbe4daceacfa532768872a288614fa6659267e7b46 returns:

# docker run --rm -ti rancher/kine:v0.6.0 --endpoint sqlite:///db.sqlite
FATA[0000] building kine: this binary is built without CGO, sqlite is disabled

Am I using the wrong image?

f0o commented

Turns out the Official Releases from GitHub also do not support SQLite...

I assume your build-pipeline is failing to produce functional releases

# wget https://github.com/k3s-io/kine/releases/download/v0.6.0/kine-amd64
--2020-11-25 15:25:06--  https://github.com/k3s-io/kine/releases/download/v0.6.0/kine-amd64
Resolving github.com... 140.82.121.4
Connecting to github.com|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/186470345/889f3000-2b3f-11eb-9f36-8c2f24c1610b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201125%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201125T152507Z&X-Amz-Expires=300&X-Amz-Signature=becd4d9a67b1c7e9447a53085238e032edc8e80638ad2f038707474ac5481f31&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=186470345&response-content-disposition=attachment%3B%20filename%3Dkine-amd64&response-content-type=application%2Foctet-stream [following]
--2020-11-25 15:25:07--  https://github-production-release-asset-2e65be.s3.amazonaws.com/186470345/889f3000-2b3f-11eb-9f36-8c2f24c1610b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201125%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201125T152507Z&X-Amz-Expires=300&X-Amz-Signature=becd4d9a67b1c7e9447a53085238e032edc8e80638ad2f038707474ac5481f31&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=186470345&response-content-disposition=attachment%3B%20filename%3Dkine-amd64&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.217.81.52
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.217.81.52|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11239424 (11M) [application/octet-stream]
Saving to: 'kine-amd64'

kine-amd64                                                                100%[=======================================================>]  10.72M  5.92MB/s    in 1.8s

2020-11-25 15:25:10 (5.92 MB/s) - 'kine-amd64' saved [11239424/11239424]

host-10-0-154-124 kubernetes # chmod +x kine-amd64
host-10-0-154-124 kubernetes # ./kine-amd64
FATA[0000] building kine: this binary is built without CGO, sqlite is disabled

They're functional, they just aren't built with sqlite support. You can still use postgres or mysql.

f0o commented

Shouldn't they defer from assuming SQLite as Default option then?