Set up separate minio container for query pack storage

This commit is contained in:
Michael Hohn
2024-06-13 18:21:14 -07:00
committed by =Michael Hohn
parent 7347779072
commit 9270230f08
5 changed files with 49 additions and 2 deletions

1
.gitignore vendored
View File

@@ -8,6 +8,7 @@ cmd/server/var/
cmd/server/server
# host storage for container
qpstore-data/
dbstore-data/
postgres-data/

View File

@@ -159,7 +159,7 @@ The steps:
-------+---------
foo | foo/bar
### Use the minio ql db
### Use the minio ql database db
1. Web access via
@@ -173,4 +173,15 @@ The steps:
1. The names use `owner_repo` format for now, e.g. `google_flatbuffers_db.zip`.
TODO This will be enhanced to include other data later
### Use the minio query pack db
1. Web access via
open http://localhost:19001/login
username / password are in `docker-compose.yml` for now. The ql db listing
will be at
http://localhost:19001/browser/qpstore

View File

@@ -64,6 +64,21 @@ services:
volumes:
- ./dbstore-data:/data
qpstore:
image: minio/minio:RELEASE.2024-06-11T03-13-30Z
container_name: qpstore
ports:
- "19000:9000" # host:container
- "19001:9001"
environment:
MINIO_ROOT_USER: user
MINIO_ROOT_PASSWORD: mmusty8432
command: server /data --console-address ":9001"
volumes:
- ./qpstore-data:/data
# Remove named volumes to use bind mounts
# volumes:
# minio-data:

20
populate-qpstore.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
# Configuration
MINIO_ALIAS="qpstore"
MINIO_URL="http://localhost:19000"
MINIO_ROOT_USER="user"
MINIO_ROOT_PASSWORD="mmusty8432"
BUCKET_NAME="qpstore"
# 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