Skip to content

Commit

Permalink
feat(release): update 6a8d9b0 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedellen authored Jun 6, 2024
2 parents adae756 + 1d453eb commit 7946d96
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,16 @@ services:
- NODE_ENV=${NODE_ENV:-local}
- ARWEAVE_WALLET=${ARWEAVE_WALLET:-}
- TURBO_OPTICAL_KEY=${TURBO_OPTICAL_KEY:-$ARWEAVE_WALLET}
- DATA_ITEM_BUCKET=${DATA_ITEM_BUCKET:-raw-data-items}
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/persisted-data"
- "/var/run/docker.sock:/var/run/docker.sock"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4566/_localstack/health"]
interval: 90s
interval: 10s
timeout: 30s
retries: 1
retries: 10
start_period: 15s

arlocal:
Expand Down
4 changes: 3 additions & 1 deletion scripts/provision_localstack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ create_secret() {
fi
}

bucket_name="${DATA_ITEM_BUCKET:-raw-data-items}"

# Create resources
create_s3_bucket "raw-data-items"
create_s3_bucket $bucket_name

create_sqs_queue "finalize-multipart-queue" 3 30 0 "" # Max Receives=3, Visibility Timeout=30s, Delay Seconds=0s, no custom retention period
create_sqs_queue "batch-insert-new-data-items-queue" 3 60 0 3600
Expand Down
9 changes: 5 additions & 4 deletions src/utils/objectStoreUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ import { ByteCount, TransactionId, UploadId } from "../types/types";
import { sleep } from "./common";
import { streamToBuffer } from "./streamToBuffer";

const dataItemPrefix = "raw-data-item";
const multiPartPrefix = "multipart-uploads";
const bundlePayloadPrefix = "bundle-payload";
const bundleTxPrefix = "bundle";
const dataItemPrefix = process.env.DATA_ITEM_S3_PREFIX ?? "raw-data-item";
const multiPartPrefix = process.env.MULTIPART_S3_PREFIX ?? "multipart-uploads";
const bundlePayloadPrefix =
process.env.BUNDLE_PAYLOAD_S3_PREFIX ?? "bundle-payload";
const bundleTxPrefix = process.env.BUNDLE_TX_S3_PREFIX ?? "bundle";

let s3ObjectStore: S3ObjectStore | undefined;

Expand Down

0 comments on commit 7946d96

Please sign in to comment.