This is an automated email from the ASF dual-hosted git repository.

dzamo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/drill-test-framework.git


The following commit(s) were added to refs/heads/main by this push:
     new 8536cd82 Restrict MinIO test server to localhost
8536cd82 is described below

commit 8536cd827296d3d47b3f5dceefdaec62f9cbc86d
Author: James Turton <[email protected]>
AuthorDate: Tue Aug 20 08:05:44 2024 +0200

    Restrict MinIO test server to localhost
---
 framework/resources/Datasources/s3minio/minio/run_mn.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/framework/resources/Datasources/s3minio/minio/run_mn.sh 
b/framework/resources/Datasources/s3minio/minio/run_mn.sh
index bf57472e..4cca78c9 100755
--- a/framework/resources/Datasources/s3minio/minio/run_mn.sh
+++ b/framework/resources/Datasources/s3minio/minio/run_mn.sh
@@ -1,11 +1,15 @@
 #!/bin/sh
 source conf/drillTestConfig.properties
 
+# Hardcoded access key for the local-only, ephemeral MinIO test server
 export MINIO_ACCESS_KEY=ZYVR33VM12IAHETIJYF9
 export MINIO_SECRET_KEY=BjGb9WpNd74t5T7FcBlXRgUcSyq505G598T8Yxg6
 
 if [ -z "$(top -bn1 |grep minio |grep -oE '^[ ]*[0-9]+' |grep -oE '[0-9]+')" ]
 then
-  nohup ${DRILL_TEST_DATA_DIR}/Datasources/s3minio/minio/minio server 
${DRILL_TEST_DATA_DIR}/Datasources/s3minio/minio/minio_data >> ~/nohup.out &
+  nohup ${DRILL_TEST_DATA_DIR}/Datasources/s3minio/minio/minio server \
+    --address "localhost:9000" \
+    ${DRILL_TEST_DATA_DIR}/Datasources/s3minio/minio/minio_data \
+    >> ~/nohup.out &
   sleep 1
 fi

Reply via email to