Skip to content

adding DB snapshots for big data testing #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ services:
ports:
- 9000:8000

# surrealdb_big_data:
# image: surrealdb/surrealdb:v2.0.0
# command: "start"
# environment:
# - SURREAL_USER=root
# - SURREAL_PASS=root
# - SURREAL_LOG=trace
# ports:
# - 8300:8000
# volumes:
# - ./tests/db_snapshots/data/:/data/

surrealdb_200:
image: surrealdb/surrealdb:v2.0.0
command: "start"
Expand Down
4 changes: 2 additions & 2 deletions tests/builds/big_data_dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ RUN apt-get install tree -y
RUN apt-get install -y --no-install-recommends unzip bash
RUN curl -sSL https://raw.githubusercontent.com/maxwellflitton/surrealdb-backup-cli/main/scripts/install.sh | bash

COPY ./db_snapshots/big_data_snapshot/package/ ./big_data_snapshot/
RUN ./surrealdb_backup unpack -d ./unpacked_data/ -t ./big_data_snapshot/
COPY ./db_snapshots/big_data_snapshot/million_rows.sst ./million_rows.sst
RUN ./surrealdb_backup unpack -d ./unpacked_data/ -t ./million_rows.sst
RUN rm ./unpacked_data/LOCK
RUN curl -sSf https://install.surrealdb.com | sh

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/build_big_data_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ if [ -d "./db_snapshots/big_data_snapshot" ]; then
fi

dockpack pull -i maxwellflitton/surrealdb-data -d ./db_snapshots/big_data_snapshot
rm ./db_snapshots/big_data_snapshot/package/LOCK
#rm ./db_snapshots/big_data_snapshot/package/LOCK

docker build -f ./builds/big_data_dockerfile -t surrealdb-big-data .
Loading