Use QL_DB_BUCKET_NAME in shell and go
This commit is contained in:
committed by
=Michael Hohn
parent
3566f5169e
commit
e3f4d9f012
@@ -5,7 +5,7 @@ MINIO_ALIAS="qldbminio"
|
||||
MINIO_URL="http://localhost:9000"
|
||||
MINIO_ROOT_USER="user"
|
||||
MINIO_ROOT_PASSWORD="mmusty8432"
|
||||
BUCKET_NAME="qldb"
|
||||
QL_DB_BUCKET_NAME="qldb"
|
||||
|
||||
# Check for MinIO client
|
||||
if ! command -v mc &> /dev/null
|
||||
@@ -18,14 +18,14 @@ fi
|
||||
mc alias set $MINIO_ALIAS $MINIO_URL $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD
|
||||
|
||||
# Create qldb bucket
|
||||
mc mb $MINIO_ALIAS/$BUCKET_NAME
|
||||
mc mb $MINIO_ALIAS/$QL_DB_BUCKET_NAME
|
||||
|
||||
# Upload the two sample DBs with new names
|
||||
mc cp cmd/server/codeql/dbs/google/flatbuffers/google_flatbuffers_db.zip \
|
||||
$MINIO_ALIAS/$BUCKET_NAME/google\$flatbuffers.zip
|
||||
$MINIO_ALIAS/$QL_DB_BUCKET_NAME/google\$flatbuffers.zip
|
||||
|
||||
mc cp cmd/server/codeql/dbs/psycopg/psycopg2/psycopg_psycopg2_db.zip \
|
||||
$MINIO_ALIAS/$BUCKET_NAME/psycopg\$psycopg2.zip
|
||||
$MINIO_ALIAS/$QL_DB_BUCKET_NAME/psycopg\$psycopg2.zip
|
||||
|
||||
# Check new disk use
|
||||
du -k dbstore-data
|
||||
|
||||
Reference in New Issue
Block a user