-
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.
Adds Support for COPY TO/FROM Google Cloud Storage
Supports following Google Cloud Storage uri forms: - gs:// \<bucket\> / \<path\> **Configuration** The simplest way to configure object storage is by creating a json config file like [`/tmp/gcs.json`]: ```bash $ cat /tmp/gcs.json { "gcs_base_url": "http://localhost:4443", "disable_oauth": true, "client_email": "", "private_key_id": "", "private_key": "" } ``` Alternatively, you can use the following environment variables when starting postgres to configure the Google Cloud Storage client: - `GOOGLE_SERVICE_ACCOUNT_KEY`: json serialized service account key - `GOOGLE_SERVICE_ACCOUNT_PATH`: an alternative location for the config file
- Loading branch information
1 parent
3d026b6
commit 4a93f99
Showing
16 changed files
with
274 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# S3 tests | ||
AWS_ACCESS_KEY_ID=minioadmin | ||
AWS_SECRET_ACCESS_KEY=minioadmin | ||
AWS_REGION=us-east-1 | ||
AWS_S3_TEST_BUCKET=testbucket | ||
MINIO_ROOT_USER=minioadmin | ||
MINIO_ROOT_PASSWORD=minioadmin | ||
|
||
# Azure Blob tests | ||
AZURE_STORAGE_ACCOUNT=devstoreaccount1 | ||
AZURE_STORAGE_KEY="Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" | ||
AZURE_STORAGE_CONNECTION_STRING="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://localhost:10000/devstoreaccount1;" | ||
AZURE_TEST_CONTAINER_NAME=testcontainer | ||
AZURE_TEST_READ_ONLY_SAS="se=2100-05-05&sp=r&sv=2022-11-02&sr=c&sig=YMPFnAHKe9y0o3hFegncbwQTXtAyvsJEgPB2Ne1b9CQ%3D" | ||
AZURE_TEST_READ_WRITE_SAS="se=2100-05-05&sp=rcw&sv=2022-11-02&sr=c&sig=TPz2jEz0t9L651t6rTCQr%2BOjmJHkM76tnCGdcyttnlA%3D" | ||
|
||
# GCS tests | ||
GOOGLE_TEST_BUCKET=testbucket | ||
|
||
# Others | ||
RUST_TEST_THREADS=1 | ||
PG_PARQUET_TEST=true |
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,7 @@ | ||
#!/bin/bash | ||
|
||
aws --endpoint-url http://localhost:9000 s3 mb s3://$AWS_S3_TEST_BUCKET | ||
|
||
az storage container create -n $AZURE_TEST_CONTAINER_NAME --connection-string $AZURE_STORAGE_CONNECTION_STRING | ||
|
||
curl -v -X POST --data-binary "{\"name\":\"$GOOGLE_TEST_BUCKET\"}" -H "Content-Type: application/json" "http://localhost:4443/storage/v1/b" |
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,60 @@ | ||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
command: sleep infinity | ||
network_mode: host | ||
volumes: | ||
- ..:/workspace | ||
- ${USERPROFILE}${HOME}/.ssh:/home/rust/.ssh:ro | ||
- ${USERPROFILE}${HOME}/.ssh/known_hosts:/home/rust/.ssh/known_hosts:rw | ||
- ${USERPROFILE}${HOME}/.gitconfig:/home/rust/.gitconfig:ro | ||
- ${USERPROFILE}${HOME}/.aws:/home/rust/.aws:ro | ||
- ${USERPROFILE}${HOME}/.azure:/home/rust/.azure:ro | ||
env_file: | ||
- .env | ||
cap_add: | ||
- SYS_PTRACE | ||
depends_on: | ||
- minio | ||
- azurite | ||
- fake-gcs-server | ||
|
||
minio: | ||
image: minio/minio | ||
env_file: | ||
- .env | ||
network_mode: host | ||
command: server /data | ||
restart: unless-stopped | ||
healthcheck: | ||
test: ["CMD", "curl", "http://localhost:9000"] | ||
interval: 6s | ||
timeout: 2s | ||
retries: 3 | ||
|
||
azurite: | ||
image: mcr.microsoft.com/azure-storage/azurite | ||
env_file: | ||
- .env | ||
network_mode: host | ||
restart: unless-stopped | ||
healthcheck: | ||
test: ["CMD", "curl", "http://localhost:10000"] | ||
interval: 6s | ||
timeout: 2s | ||
retries: 3 | ||
|
||
fake-gcs-server: | ||
image: tustvold/fake-gcs-server | ||
env_file: | ||
- .env | ||
network_mode: host | ||
command: -scheme http -public-host localhost:4443 | ||
restart: unless-stopped | ||
healthcheck: | ||
test: ["CMD", "curl", "http://localhost:4443"] | ||
interval: 6s | ||
timeout: 2s | ||
retries: 3 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,4 @@ | |
*.lcov | ||
*.xml | ||
lcov.info | ||
.env | ||
playground.rs |
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
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
Oops, something went wrong.