-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] Supports `AWS_ENDPOINT_URL`, e.g. you can set `AWS_ENDPOINT_URL=http://localhost:9000` and `AWS_ALLOW_HTTP=true` for local MinIO Server. - [x] We were already supporting `AWS_SESSION_TOKEN` without documentation and tests. Added them. As a side note, not automatically `AssumeRole` to fetch the token, but when the token is passed from environment or config, authentication succeeds. Closes #83.
- Loading branch information
1 parent
4086ea4
commit bab2208
Showing
12 changed files
with
178 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
trap "echo 'Caught termination signal. Exiting...'; exit 0" SIGINT SIGTERM | ||
|
||
minio server /data & | ||
|
||
minio_pid=$! | ||
|
||
while ! curl $AWS_ENDPOINT_URL; do | ||
echo "Waiting for $AWS_ENDPOINT_URL..." | ||
sleep 1 | ||
done | ||
|
||
# set access key and secret key | ||
mc alias set local $AWS_ENDPOINT_URL $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD | ||
|
||
# create bucket | ||
mc mb local/$AWS_S3_TEST_BUCKET | ||
|
||
wait $minio_pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,7 +89,7 @@ jobs: | |
- name: Install and configure pgrx | ||
run: | | ||
cargo install --locked [email protected] | ||
cargo pgrx init --pg${{ env.PG_MAJOR }} $(which pg_config) | ||
cargo pgrx init --pg${{ env.PG_MAJOR }} /usr/lib/postgresql/${{ env.PG_MAJOR }}/bin/pg_config | ||
- name: Install cargo-llvm-cov for coverage report | ||
run: cargo install --locked [email protected] | ||
|
@@ -101,21 +101,25 @@ jobs: | |
- name: Set up permissions for PostgreSQL | ||
run: | | ||
sudo chmod a+rwx $(pg_config --pkglibdir) \ | ||
$(pg_config --sharedir)/extension \ | ||
sudo chmod a+rwx $(/usr/lib/postgresql/${{ env.PG_MAJOR }}/bin/pg_config --pkglibdir) \ | ||
$(/usr/lib/postgresql/${{ env.PG_MAJOR }}/bin/pg_config --sharedir)/extension \ | ||
/var/run/postgresql/ | ||
- name: Start Minio for s3 emulator tests | ||
run: | | ||
docker run -d --env-file .devcontainer/.env -p 9000:9000 minio/minio server /data | ||
while ! nc -z localhost 9000; do | ||
echo "Waiting for localhost:9000..." | ||
sleep 1 | ||
docker run -d \ | ||
--env-file .devcontainer/.env \ | ||
-p 9000:9000 \ | ||
--entrypoint "./entrypoint.sh" \ | ||
--volume ./.devcontainer/minio-entrypoint.sh:/entrypoint.sh \ | ||
--name miniocontainer \ | ||
minio/minio | ||
while ! curl $AWS_ENDPOINT_URL; do | ||
echo "Waiting for $AWS_ENDPOINT_URL..." | ||
sleep 1 | ||
done | ||
aws --endpoint-url http://localhost:9000 s3 mb s3://$AWS_S3_TEST_BUCKET | ||
- name: Run tests | ||
run: | | ||
# Run tests with coverage tool | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.