surrealdb / surrealkv

A low-level, versioned, embedded, ACID-compliant, key-value database for Rust
https://surrealdb.com
Apache License 2.0
293 stars 18 forks source link

Feature: Dockerimage #56

Closed itsezc closed 4 months ago

itsezc commented 4 months ago

Since SurrealKV is ready for usage (as beta) with SurrealDB, it'd be useful to have a Dockerimage and have it published on Docker hub

arriqaaq commented 4 months ago

Hi @itsezc

surrealkv is en embedded database, like rocksdb/sled/redb. The docker/helm image will not really help at all. You can always embed it in your application like a crate.

If you want to use it with surrealdb with the existing docker image, you can always use our existing docker commands to use surrealkv from the beta image

docker run --rm --pull always -p 8000:8000 --user $(id -u) -v $(pwd)/mydata:/mydata surrealdb/surrealdb:latest start surrealkv:/mydata/mydatabase.db

sandros94 commented 3 months ago

If you want to use it with surrealdb with the existing docker image, you can always use our existing docker commands to use surrealkv from the beta image

docker run --rm --pull always -p 8000:8000 --user $(id -u) -v $(pwd)/mydata:/mydata surrealdb/surrealdb:latest start surrealkv:/mydata/mydatabase.db

I might be missing something but you were referring to a "beta image" while the docker run is referring to the latest tag. Is this correct?

itsezc commented 3 months ago

If you want to use it with surrealdb with the existing docker image, you can always use our existing docker commands to use surrealkv from the beta image docker run --rm --pull always -p 8000:8000 --user $(id -u) -v $(pwd)/mydata:/mydata surrealdb/surrealdb:latest start surrealkv:/mydata/mydatabase.db

I might be missing something but you were referring to a "beta image" while the docker run is referring to the latest tag. Is this correct?

There is no tag for beta or v2 for Surreal, the closest you have according to Dockerhub would be nightly or v2.0.0-alpha.7-dev which is current alpha for v2.

arriqaaq commented 3 months ago

Hey @itsezc @Sandros94

You are right, thanks for correcting. The nightly would be the one