From 83e5b43eba2a3cf7d901169fb4250a0c0eecd942 Mon Sep 17 00:00:00 2001 From: Matthew Lopez <73856503+MatthewL246@users.noreply.github.com> Date: Tue, 19 Dec 2023 13:33:38 -0500 Subject: [PATCH] Add a couple TODOs --- compose.yml | 2 ++ scripts/setup-minio-container.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index 65c6e6f..bec64f6 100644 --- a/compose.yml +++ b/compose.yml @@ -64,6 +64,8 @@ services: internal: command: --config "/etc/mongod.conf" --replSet rs + # TODO: S3 uploads from the servers use the first part of the path (like + # "mii") as the bucket name instead of "pn-cdn". Why? minio: image: minio/minio:latest ports: diff --git a/scripts/setup-minio-container.sh b/scripts/setup-minio-container.sh index d32086e..f323dcb 100755 --- a/scripts/setup-minio-container.sh +++ b/scripts/setup-minio-container.sh @@ -7,8 +7,9 @@ minio_init_script=$(cat "$git_base/config/minio-init.sh") docker compose up -d minio +# TODO: Find a better way to do this in case Minio takes longer to start up echo "Waiting for minio to be ready..." -sleep 1 +sleep 2 docker compose exec minio sh -c "$minio_init_script" docker compose down minio