Skip to content

Commit

Permalink
WX-767 Upgrade Cloud SDK to 461.0.0 (#7361)
Browse files Browse the repository at this point in the history
  • Loading branch information
aednichols authored and salonishah11 committed Feb 14, 2024
1 parent 3e26bd0 commit e246826
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,16 @@ object RunnableUtils {
/** Port mappings for the ssh container. */
val sshPortMappings = Map("22" -> Int.box(22))

/*
* At the moment, cloud-sdk (924MB for 276.0.0-slim) and stedolan/jq (182MB) decompressed ~= 1.1 GB
*/
val cromwellImagesSizeRoundedUpInGB = 1

private val config = ConfigFactory.load().getConfig("google")

/**
* An image with the Google Cloud SDK installed.
* http://gcr.io/google.com/cloudsdktool/cloud-sdk
*
* FYI additional older versions are available on DockerHub at:
* https://hub.docker.com/r/google/cloud-sdk
*
* When updating this value, also consider updating the CromwellImagesSizeRoundedUpInGB below.
* Also update `cromwell.backend.google.pipelines.common.action.ActionUtils`
*/
val CloudSdkImage: String =
// config.getOrElse("cloud-sdk-image-url", "gcr.io/google.com/cloudsdktool/cloud-sdk:354.0.0-alpine")
config.getOrElse("cloud-sdk-image-url", "gcr.io/google.com/cloudsdktool/cloud-sdk:434.0.0-alpine")
/*
* At the moment, cloud-sdk (584MB for 354.0.0-alpine) and stedolan/jq (182MB) decompressed ~= 0.8 GB
*/
val CromwellImagesSizeRoundedUpInGB: Int =
config.getOrElse("cloud-sdk-image-size-gb", 1)
config.getOrElse("cloud-sdk-image-url", "gcr.io/google.com/cloudsdktool/cloud-sdk:461.0.0-alpine")

/** Quotes a string such that it's compatible as a string argument in the shell. */
def shellEscaped(any: Any): String = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,23 @@ object ActionUtils {
/** Port mappings for the ssh container. */
val sshPortMappings = Map("22" -> Int.box(22))

/*
* At the moment, cloud-sdk (924MB for 276.0.0-slim) and stedolan/jq (182MB) decompressed ~= 1.1 GB
*/
val cromwellImagesSizeRoundedUpInGB = 1

private val config = ConfigFactory.load().getConfig("google")

/**
* An image with the Google Cloud SDK installed.
* http://gcr.io/google.com/cloudsdktool/cloud-sdk
*
* FYI additional older versions are available on DockerHub at:
* https://hub.docker.com/r/google/cloud-sdk
* When updating this value, also consider updating the `cromwellImagesSizeRoundedUpInGB` below.
*
* When updating this value, also consider updating the CromwellImagesSizeRoundedUpInGB below.
* Also update `cromwell.backend.google.batch.runnable.RunnableUtils`
*/
val CloudSdkImage: String =
config.getOrElse("cloud-sdk-image-url", "gcr.io/google.com/cloudsdktool/cloud-sdk:354.0.0-alpine")
config.getOrElse("cloud-sdk-image-url", "gcr.io/google.com/cloudsdktool/cloud-sdk:461.0.0-alpine")

/*
* At the moment, cloud-sdk (584MB for 354.0.0-alpine) and stedolan/jq (182MB) decompressed ~= 0.8 GB
* At the moment, cloud-sdk (955MB for 460.0.0-alpine) ~= 1.0 GB
*/
val CromwellImagesSizeRoundedUpInGB: Int =
config.getOrElse("cloud-sdk-image-size-gb", 1)
val cromwellImagesSizeRoundedUpInGB: Int = config.getOrElse("cloud-sdk-image-size-gb", 1)

/** Quotes a string such that it's compatible as a string argument in the shell. */
def shellEscaped(any: Any): String = {
Expand Down

0 comments on commit e246826

Please sign in to comment.