easypanel-io / dockerizer

The fastest way to dockerize your apps.
https://easypanel.io/dockerizer
108 stars 18 forks source link

REQUEST: SurrealDB | The ultimate multi-model database #9

Open jprando opened 4 months ago

jprando commented 4 months ago

site: https://surrealdb.com/

SurrealDB offers a dynamic and adaptable platform for business. With an integrated suite of cutting-edge database solutions, tools, and services, SurrealDB empowers your workforce to discover innovative answers using products meticulously crafted to meet their requirements.

jprando commented 4 months ago

I tried to deploy easypanel + surrealdb docker image and I couldn't only black screen and no logs

jprando commented 4 months ago

I tried again and managed to get SurrealDB to work on Easypanel, as a stopgap.

the step by step:

echo 'starting, wait!'; apt update --yes > /dev/null 2>&1; apt install --yes curl > /dev/null 2>&1; curl -sSf https://install.surrealdb.com | sh > /dev/null; rm -rf /var/surreal/data/LOCK; /usr/local/bin/surreal start

what does the above script do

# informs you that the container was started successfully and will display the SurrealDB execution log, just wait!
echo 'starting, wait!'

# update the apt db, to successfully install curl cli
# omitting messages in the console (log)
apt update --yes > /dev/null 2>&1

# install the curl cli
# omitting messages in the console (log)
apt install --yes curl > /dev/null 2>&1

# SurrealDB installation
# omitting messages in the console (log)
curl -sSf https://install.surrealdb.com | sh > /dev/null

# remove LOCK from SurrealDB, if the container has closed abruptly, so as not to disturb or prevent the execution of SurrealDB in the next command
rm -rf /var/surreal/data/LOCK;

# start SurrealDB
/usr/local/bin/surreal start

I hope this information can help other people to use SurrealDB in Easypanel or to create a native Easypanel option to be used by end users