Skip to content

Commit

Permalink
Fix default bucket for ship and Delta (#5229)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Dumas <simon.dumas@epfl.ch>
  • Loading branch information
imsdu and Simon Dumas authored Nov 12, 2024
1 parent 48710a9 commit 995fa29
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion delta/plugins/storage/src/main/resources/storage.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ plugins.storage {
show-location = true
# the default maximum allowed file size (in bytes) for uploaded files. 10 GB
default-max-file-size = 10737418240
default-bucket = "nexus-delta-production"
default-bucket = "default-bucket-override-me"
default-bucket = ${?DEFAULT_BUCKET}
}
# Remote disk storage configuration
remote-disk {
Expand Down
9 changes: 6 additions & 3 deletions ship/src/main/resources/ship-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ ship {
s-3 {
endpoint = "https://s3.us-east-1.amazonaws.com"
# the bucket which contains the import files
import-bucket = "nexus-ship-production"
import-bucket = "default-import-bucket"
import-bucket = ${?IMPORT_BUCKET}

}

Expand Down Expand Up @@ -119,7 +120,8 @@ ship {
show-location = true
# the default maximum allowed file size (in bytes) for uploaded files. 10 GB
default-max-file-size = 10737418240
default-bucket = "nexus-delta-production"
default-bucket = "default-target-bucket"
default-bucket = ${?TARGET_BUCKET}
}

# Disk storage configuration
Expand Down Expand Up @@ -183,7 +185,8 @@ ship {
#prefix = "/some-prefix"
import-bucket = ${ship.s-3.import-bucket}
# The bucket to which the files will be copied by the Nexus Ship
target-bucket = "nexus-delta-production"
target-bucket = "default-target-bucket"
target-bucket = ${?TARGET_BUCKET}
# To skip file events to make the batch run faster and focus on other events
skip-file-events = false
# Allows to define default media types for the given file extensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ trait ShipConfigFixtures extends ConfigFixtures with StorageFixtures with Classp
ServiceAccount(User("internal", Label.unsafe("sa")))
)

private val importBucket = "nexus-ship-production"
private val targetBucket = "nexus-delta-production"
private val importBucket = "default-import-bucket"
private val targetBucket = "default-target-bucket"

private val amazonConfig: S3StorageConfig =
S3StorageConfig(
Expand Down

0 comments on commit 995fa29

Please sign in to comment.