Set up the minio ql db
- Set up the minio ql db - Use bind mounts in docker compose to get persistence - Populate the ql db with the sample DBs
This commit is contained in:
committed by
=Michael Hohn
parent
8df9673897
commit
bbb54caaf3
28
populate-qldb-store.sh
Normal file
28
populate-qldb-store.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Configuration
|
||||
MINIO_ALIAS="qldbminio"
|
||||
MINIO_URL="http://localhost:9000"
|
||||
MINIO_ROOT_USER="user"
|
||||
MINIO_ROOT_PASSWORD="mmusty8432"
|
||||
BUCKET_NAME="qldb"
|
||||
|
||||
# Check for MinIO client
|
||||
if ! command -v mc &> /dev/null
|
||||
then
|
||||
echo "MinIO client (mc) not found. "
|
||||
fi
|
||||
|
||||
# Configure MinIO client
|
||||
mc alias set $MINIO_ALIAS $MINIO_URL $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD
|
||||
|
||||
# Create ql db bucket
|
||||
mc mb $MINIO_ALIAS/$BUCKET_NAME
|
||||
|
||||
# Upload the two sample DBs
|
||||
mc cp cmd/server/codeql/dbs/google/flatbuffers/google_flatbuffers_db.zip \
|
||||
cmd/server/codeql/dbs/psycopg/psycopg2/psycopg_psycopg2_db.zip \
|
||||
$MINIO_ALIAS/$BUCKET_NAME
|
||||
|
||||
# Check new diskuse
|
||||
du -k minio-data
|
||||
Reference in New Issue
Block a user