Set up separate minio container for query pack storage
This commit is contained in:
committed by
=Michael Hohn
parent
7347779072
commit
9270230f08
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,6 +8,7 @@ cmd/server/var/
|
|||||||
cmd/server/server
|
cmd/server/server
|
||||||
|
|
||||||
# host storage for container
|
# host storage for container
|
||||||
|
qpstore-data/
|
||||||
dbstore-data/
|
dbstore-data/
|
||||||
postgres-data/
|
postgres-data/
|
||||||
|
|
||||||
|
|||||||
15
README.md
15
README.md
@@ -159,7 +159,7 @@ The steps:
|
|||||||
-------+---------
|
-------+---------
|
||||||
foo | foo/bar
|
foo | foo/bar
|
||||||
|
|
||||||
### Use the minio ql db
|
### Use the minio ql database db
|
||||||
|
|
||||||
1. Web access via
|
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`.
|
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
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,21 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./dbstore-data:/data
|
- ./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
|
# Remove named volumes to use bind mounts
|
||||||
# volumes:
|
# volumes:
|
||||||
# minio-data:
|
# minio-data:
|
||||||
|
|||||||
20
populate-qpstore.sh
Normal file
20
populate-qpstore.sh
Normal 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
|
||||||
Reference in New Issue
Block a user