Skip to content

Commit

Permalink
[dbe] introducing SingleStore DB 8
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlee committed Mar 7, 2023
1 parent a3e3b18 commit 50ed8d2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions memsql/8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM singlestore/cluster-in-a-box:alma-8.0.13-4a6858ccd1-4.0.11-1.15.2

COPY init.sql /

EXPOSE 3306


16 changes: 16 additions & 0 deletions memsql/8/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
set -e
cd /
./startup --init

cat <<-EOSQL > /home/memsql/schema.sql
create database guest;
grant all on *.* to 'guest'@'%' identified by 'guest' with grant option;
EOSQL

echo "Loading schema from /schema.sql"
cat /home/memsql/schema.sql
memsql < /home/memsql/schema.sql

#trap
tail -F $(find /var/lib -name "*memsql.log" | head -n 1)
2 changes: 2 additions & 0 deletions memsql/8/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
create database guest;
grant all on *.* to 'guest'@'%' identified by 'guest' with grant option;

0 comments on commit 50ed8d2

Please sign in to comment.