Skip to content

Commit

Permalink
Merge pull request #1124 from wellcomecollection/bump-scala-libs-to-v…
Browse files Browse the repository at this point in the history
…32.41.0

Bump scala-libs to v32.41.0
  • Loading branch information
agnesgaroux authored Apr 16, 2024
2 parents 313a094 + ce1ed2f commit feb7114
Show file tree
Hide file tree
Showing 19 changed files with 42 additions and 22 deletions.
3 changes: 2 additions & 1 deletion bag_register/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
s3:
Expand Down
3 changes: 2 additions & 1 deletion bag_replicator/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
s3:
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import java.net.URI
trait S3TransferManagerFixtures extends S3Fixtures {
def createS3TransferManagerWithEndpoint(endpoint: String): S3TransferManager = {
val s3AsyncClient =
S3AsyncClient.builder()
S3AsyncClient.crtBuilder()
.credentialsProvider(s3Credentials)
.forcePathStyle(true)
.endpointOverride(new URI(endpoint))
Expand Down
3 changes: 2 additions & 1 deletion bag_root_finder/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
s3:
Expand Down
3 changes: 2 additions & 1 deletion bag_tagger/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
s3:
Expand Down
3 changes: 2 additions & 1 deletion bag_unpacker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
s3:
Expand Down
3 changes: 2 additions & 1 deletion bag_verifier/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
version: "2.1"
services:
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
s3:
Expand Down
3 changes: 2 additions & 1 deletion bag_versioner/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
dynamodb:
Expand Down
2 changes: 1 addition & 1 deletion builds/run_sbt_task_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ docker run --tty --rm \
--net host \
--volume "$ROOT:$ROOT" \
--workdir "$ROOT" \
"$ECR_REGISTRY/wellcome/sbt_wrapper" "$@"
"$ECR_REGISTRY/wellcome/sbt_wrapper:no_alpine" "$@"
3 changes: 2 additions & 1 deletion common/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
version: "2.1"
services:
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
s3:
Expand Down
3 changes: 2 additions & 1 deletion indexer/bag_indexer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ elasticsearch:
- "discovery.type=single-node"
- "xpack.security.enabled=false"
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
3 changes: 2 additions & 1 deletion indexer/file_finder/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
3 changes: 2 additions & 1 deletion indexer/file_indexer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ elasticsearch:
- "discovery.type=single-node"
- "xpack.security.enabled=false"
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
3 changes: 2 additions & 1 deletion indexer/ingests_indexer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ elasticsearch:
- "discovery.type=single-node"
- "xpack.security.enabled=false"
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
3 changes: 2 additions & 1 deletion ingests/ingests_worker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
3 changes: 2 additions & 1 deletion notifier/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"
6 changes: 3 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sbt._

object WellcomeDependencies {
val defaultVersion = "32.40.4" // This is automatically bumped by the scala-libs release process, do not edit this line manually
val defaultVersion = "32.41.0" // This is automatically bumped by the scala-libs release process, do not edit this line manually

lazy val versions = new {
val fixtures = defaultVersion
Expand Down Expand Up @@ -102,12 +102,12 @@ object ExternalDependencies {

// This should match the version of aws used in scala-libs; see
// https://github.com/wellcomecollection/scala-libs/blob/main/project/Dependencies.scala
val aws = "2.19.0"
val aws = "2.25.28"

// These are the "Common Runtime Libraries", which you're encouraged to use for
// better performance.
// See https://docs.aws.amazon.com/sdkref/latest/guide/common-runtime.html
val awsCrt = "0.20.3"
val awsCrt = "0.29.16"
}

val azureDependencies: Seq[ModuleID] = Seq(
Expand Down
3 changes: 2 additions & 1 deletion replica_aggregator/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ dynamodb:
ports:
- "45678:8000"
localstack:
image: "760097843905.dkr.ecr.eu-west-1.amazonaws.com/localstack/localstack"
image: "public.ecr.aws/localstack/localstack:3.0.0"
environment:
- SERVICES=sqs
- ALLOW_NONSTANDARD_REGIONS=1
ports:
- "4566:4566"

0 comments on commit feb7114

Please sign in to comment.