Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Common Runtime Libraries in S3TransferManager #1122

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 19 additions & 17 deletions bag_replicator/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
environment:
- SERVICES=sqs
ports:
- "4566:4566"
s3:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/zenko/cloudserver:8.1.8"
environment:
- "S3BACKEND=mem"
ports:
- "33333:8000"
azurite:
image: "mcr.microsoft.com/azure-storage/azurite"
ports:
- "10000:10000"
command: ["azurite", "--blobHost", "0.0.0.0"]
version: "3.3"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to update this to run with my version of docker, think that will be the case for anyone wanting to run this.

services:
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
environment:
- SERVICES=sqs
ports:
- "4566:4566"
s3:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/zenko/cloudserver:8.1.8"
environment:
- "S3BACKEND=mem"
ports:
- "33333:8000"
azurite:
image: "mcr.microsoft.com/azure-storage/azurite"
ports:
- "10000:10000"
command: ["azurite", "--blobHost", "0.0.0.0"]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package weco.storage_service.bag_replicator
import akka.actor.ActorSystem
import com.azure.storage.blob.{BlobServiceClient, BlobServiceClientBuilder}
import com.typesafe.config.Config
import software.amazon.awssdk.services.s3.S3Client
import software.amazon.awssdk.services.s3.{S3AsyncClient, S3Client}
import software.amazon.awssdk.services.s3.presigner.S3Presigner
import software.amazon.awssdk.services.sqs.SqsAsyncClient
import software.amazon.awssdk.transfer.s3.S3TransferManager
Expand Down Expand Up @@ -52,8 +52,13 @@ object Main extends WellcomeTypesafeApp {

implicit val s3Client: S3Client =
S3Client.builder().build()

implicit val s3AsyncClient: S3AsyncClient =
S3AsyncClient.crtBuilder().build()

implicit val s3TransferManager: S3TransferManager =
S3TransferManager.builder().build()
S3TransferManager.builder().s3Client(s3AsyncClient).build()

implicit val s3Presigner: S3Presigner =
S3Presigner.builder().build()

Expand Down